mirror of
				https://github.com/fluxcd/flux2.git
				synced 2025-10-31 16:26:36 +08:00 
			
		
		
		
	Rename flux delete auto to flux delete image
This slipped through the auto->image change made in the course of preparing #538. Signed-off-by: Michael Bridgen <michael@weave.works>
This commit is contained in:
		| @ -20,12 +20,12 @@ import ( | |||||||
| 	"github.com/spf13/cobra" | 	"github.com/spf13/cobra" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| var deleteAutoCmd = &cobra.Command{ | var deleteImageCmd = &cobra.Command{ | ||||||
| 	Use:   "auto", | 	Use:   "image", | ||||||
| 	Short: "Delete automation objects", | 	Short: "Delete image automation objects", | ||||||
| 	Long:  "The delete auto sub-commands delete automation objects.", | 	Long:  "The delete image sub-commands delete image automation objects.", | ||||||
| } | } | ||||||
|  |  | ||||||
| func init() { | func init() { | ||||||
| 	deleteCmd.AddCommand(deleteAutoCmd) | 	deleteCmd.AddCommand(deleteImageCmd) | ||||||
| } | } | ||||||
|  | |||||||
| @ -23,11 +23,11 @@ import ( | |||||||
| ) | ) | ||||||
|  |  | ||||||
| var deleteImagePolicyCmd = &cobra.Command{ | var deleteImagePolicyCmd = &cobra.Command{ | ||||||
| 	Use:   "image-policy [name]", | 	Use:   "policy [name]", | ||||||
| 	Short: "Delete an ImagePolicy object", | 	Short: "Delete an ImagePolicy object", | ||||||
| 	Long:  "The delete auto image-policy command deletes the given ImagePolicy from the cluster.", | 	Long:  "The delete image policy command deletes the given ImagePolicy from the cluster.", | ||||||
| 	Example: `  # Delete an image policy | 	Example: `  # Delete an image policy | ||||||
|   flux delete auto image-policy alpine3.x |   flux delete image policy alpine3.x | ||||||
| `, | `, | ||||||
| 	RunE: deleteCommand{ | 	RunE: deleteCommand{ | ||||||
| 		apiType: imagePolicyType, | 		apiType: imagePolicyType, | ||||||
| @ -36,5 +36,5 @@ var deleteImagePolicyCmd = &cobra.Command{ | |||||||
| } | } | ||||||
|  |  | ||||||
| func init() { | func init() { | ||||||
| 	deleteAutoCmd.AddCommand(deleteImagePolicyCmd) | 	deleteImageCmd.AddCommand(deleteImagePolicyCmd) | ||||||
| } | } | ||||||
|  | |||||||
| @ -23,11 +23,11 @@ import ( | |||||||
| ) | ) | ||||||
|  |  | ||||||
| var deleteImageRepositoryCmd = &cobra.Command{ | var deleteImageRepositoryCmd = &cobra.Command{ | ||||||
| 	Use:   "image-repository [name]", | 	Use:   "repository [name]", | ||||||
| 	Short: "Delete an ImageRepository object", | 	Short: "Delete an ImageRepository object", | ||||||
| 	Long:  "The delete auto image-repository command deletes the given ImageRepository from the cluster.", | 	Long:  "The delete image repository command deletes the given ImageRepository from the cluster.", | ||||||
| 	Example: `  # Delete an image repository | 	Example: `  # Delete an image repository | ||||||
|   flux delete auto image-repository alpine |   flux delete image repository alpine | ||||||
| `, | `, | ||||||
| 	RunE: deleteCommand{ | 	RunE: deleteCommand{ | ||||||
| 		apiType: imageRepositoryType, | 		apiType: imageRepositoryType, | ||||||
| @ -36,5 +36,5 @@ var deleteImageRepositoryCmd = &cobra.Command{ | |||||||
| } | } | ||||||
|  |  | ||||||
| func init() { | func init() { | ||||||
| 	deleteAutoCmd.AddCommand(deleteImageRepositoryCmd) | 	deleteImageCmd.AddCommand(deleteImageRepositoryCmd) | ||||||
| } | } | ||||||
|  | |||||||
| @ -23,11 +23,11 @@ import ( | |||||||
| ) | ) | ||||||
|  |  | ||||||
| var deleteImageUpdateCmd = &cobra.Command{ | var deleteImageUpdateCmd = &cobra.Command{ | ||||||
| 	Use:   "image-update [name]", | 	Use:   "update [name]", | ||||||
| 	Short: "Delete an ImageUpdateAutomation object", | 	Short: "Delete an ImageUpdateAutomation object", | ||||||
| 	Long:  "The delete auto image-update command deletes the given ImageUpdateAutomation from the cluster.", | 	Long:  "The delete image update command deletes the given ImageUpdateAutomation from the cluster.", | ||||||
| 	Example: `  # Delete an image update automation | 	Example: `  # Delete an image update automation | ||||||
|   flux delete auto image-update latest-images |   flux delete image update latest-images | ||||||
| `, | `, | ||||||
| 	RunE: deleteCommand{ | 	RunE: deleteCommand{ | ||||||
| 		apiType: imageUpdateAutomationType, | 		apiType: imageUpdateAutomationType, | ||||||
| @ -36,5 +36,5 @@ var deleteImageUpdateCmd = &cobra.Command{ | |||||||
| } | } | ||||||
|  |  | ||||||
| func init() { | func init() { | ||||||
| 	deleteAutoCmd.AddCommand(deleteImageUpdateCmd) | 	deleteImageCmd.AddCommand(deleteImageUpdateCmd) | ||||||
| } | } | ||||||
|  | |||||||
| @ -28,8 +28,8 @@ The delete sub-commands delete sources and resources. | |||||||
| * [flux](flux.md)	 - Command line utility for assembling Kubernetes CD pipelines | * [flux](flux.md)	 - Command line utility for assembling Kubernetes CD pipelines | ||||||
| * [flux delete alert](flux_delete_alert.md)	 - Delete a Alert resource | * [flux delete alert](flux_delete_alert.md)	 - Delete a Alert resource | ||||||
| * [flux delete alert-provider](flux_delete_alert-provider.md)	 - Delete a Provider resource | * [flux delete alert-provider](flux_delete_alert-provider.md)	 - Delete a Provider resource | ||||||
| * [flux delete auto](flux_delete_auto.md)	 - Delete automation objects |  | ||||||
| * [flux delete helmrelease](flux_delete_helmrelease.md)	 - Delete a HelmRelease resource | * [flux delete helmrelease](flux_delete_helmrelease.md)	 - Delete a HelmRelease resource | ||||||
|  | * [flux delete image](flux_delete_image.md)	 - Delete image automation objects | ||||||
| * [flux delete kustomization](flux_delete_kustomization.md)	 - Delete a Kustomization resource | * [flux delete kustomization](flux_delete_kustomization.md)	 - Delete a Kustomization resource | ||||||
| * [flux delete receiver](flux_delete_receiver.md)	 - Delete a Receiver resource | * [flux delete receiver](flux_delete_receiver.md)	 - Delete a Receiver resource | ||||||
| * [flux delete source](flux_delete_source.md)	 - Delete sources | * [flux delete source](flux_delete_source.md)	 - Delete sources | ||||||
|  | |||||||
| @ -1,15 +1,15 @@ | |||||||
| ## flux delete auto | ## flux delete image | ||||||
| 
 | 
 | ||||||
| Delete automation objects | Delete image automation objects | ||||||
| 
 | 
 | ||||||
| ### Synopsis | ### Synopsis | ||||||
| 
 | 
 | ||||||
| The delete auto sub-commands delete automation objects. | The delete image sub-commands delete image automation objects. | ||||||
| 
 | 
 | ||||||
| ### Options | ### Options | ||||||
| 
 | 
 | ||||||
| ``` | ``` | ||||||
|   -h, --help   help for auto |   -h, --help   help for image | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| ### Options inherited from parent commands | ### Options inherited from parent commands | ||||||
| @ -26,7 +26,7 @@ The delete auto sub-commands delete automation objects. | |||||||
| ### SEE ALSO | ### SEE ALSO | ||||||
| 
 | 
 | ||||||
| * [flux delete](flux_delete.md)	 - Delete sources and resources | * [flux delete](flux_delete.md)	 - Delete sources and resources | ||||||
| * [flux delete auto image-policy](flux_delete_auto_image-policy.md)	 - Delete an ImagePolicy object | * [flux delete image policy](flux_delete_image_policy.md)	 - Delete an ImagePolicy object | ||||||
| * [flux delete auto image-repository](flux_delete_auto_image-repository.md)	 - Delete an ImageRepository object | * [flux delete image repository](flux_delete_image_repository.md)	 - Delete an ImageRepository object | ||||||
| * [flux delete auto image-update](flux_delete_auto_image-update.md)	 - Delete an ImageUpdateAutomation object | * [flux delete image update](flux_delete_image_update.md)	 - Delete an ImageUpdateAutomation object | ||||||
| 
 | 
 | ||||||
| @ -1,27 +1,27 @@ | |||||||
| ## flux delete auto image-policy | ## flux delete image policy | ||||||
| 
 | 
 | ||||||
| Delete an ImagePolicy object | Delete an ImagePolicy object | ||||||
| 
 | 
 | ||||||
| ### Synopsis | ### Synopsis | ||||||
| 
 | 
 | ||||||
| The delete auto image-policy command deletes the given ImagePolicy from the cluster. | The delete image policy command deletes the given ImagePolicy from the cluster. | ||||||
| 
 | 
 | ||||||
| ``` | ``` | ||||||
| flux delete auto image-policy [name] [flags] | flux delete image policy [name] [flags] | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| ### Examples | ### Examples | ||||||
| 
 | 
 | ||||||
| ``` | ``` | ||||||
|   # Delete an image policy |   # Delete an image policy | ||||||
|   flux delete auto image-policy alpine3.x |   flux delete image policy alpine3.x | ||||||
| 
 | 
 | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| ### Options | ### Options | ||||||
| 
 | 
 | ||||||
| ``` | ``` | ||||||
|   -h, --help   help for image-policy |   -h, --help   help for policy | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| ### Options inherited from parent commands | ### Options inherited from parent commands | ||||||
| @ -37,5 +37,5 @@ flux delete auto image-policy [name] [flags] | |||||||
| 
 | 
 | ||||||
| ### SEE ALSO | ### SEE ALSO | ||||||
| 
 | 
 | ||||||
| * [flux delete auto](flux_delete_auto.md)	 - Delete automation objects | * [flux delete image](flux_delete_image.md)	 - Delete image automation objects | ||||||
| 
 | 
 | ||||||
| @ -1,27 +1,27 @@ | |||||||
| ## flux delete auto image-repository | ## flux delete image repository | ||||||
| 
 | 
 | ||||||
| Delete an ImageRepository object | Delete an ImageRepository object | ||||||
| 
 | 
 | ||||||
| ### Synopsis | ### Synopsis | ||||||
| 
 | 
 | ||||||
| The delete auto image-repository command deletes the given ImageRepository from the cluster. | The delete image repository command deletes the given ImageRepository from the cluster. | ||||||
| 
 | 
 | ||||||
| ``` | ``` | ||||||
| flux delete auto image-repository [name] [flags] | flux delete image repository [name] [flags] | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| ### Examples | ### Examples | ||||||
| 
 | 
 | ||||||
| ``` | ``` | ||||||
|   # Delete an image repository |   # Delete an image repository | ||||||
|   flux delete auto image-repository alpine |   flux delete image repository alpine | ||||||
| 
 | 
 | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| ### Options | ### Options | ||||||
| 
 | 
 | ||||||
| ``` | ``` | ||||||
|   -h, --help   help for image-repository |   -h, --help   help for repository | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| ### Options inherited from parent commands | ### Options inherited from parent commands | ||||||
| @ -37,5 +37,5 @@ flux delete auto image-repository [name] [flags] | |||||||
| 
 | 
 | ||||||
| ### SEE ALSO | ### SEE ALSO | ||||||
| 
 | 
 | ||||||
| * [flux delete auto](flux_delete_auto.md)	 - Delete automation objects | * [flux delete image](flux_delete_image.md)	 - Delete image automation objects | ||||||
| 
 | 
 | ||||||
| @ -1,27 +1,27 @@ | |||||||
| ## flux delete auto image-update | ## flux delete image update | ||||||
| 
 | 
 | ||||||
| Delete an ImageUpdateAutomation object | Delete an ImageUpdateAutomation object | ||||||
| 
 | 
 | ||||||
| ### Synopsis | ### Synopsis | ||||||
| 
 | 
 | ||||||
| The delete auto image-update command deletes the given ImageUpdateAutomation from the cluster. | The delete image update command deletes the given ImageUpdateAutomation from the cluster. | ||||||
| 
 | 
 | ||||||
| ``` | ``` | ||||||
| flux delete auto image-update [name] [flags] | flux delete image update [name] [flags] | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| ### Examples | ### Examples | ||||||
| 
 | 
 | ||||||
| ``` | ``` | ||||||
|   # Delete an image update automation |   # Delete an image update automation | ||||||
|   flux delete auto image-update latest-images |   flux delete image update latest-images | ||||||
| 
 | 
 | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| ### Options | ### Options | ||||||
| 
 | 
 | ||||||
| ``` | ``` | ||||||
|   -h, --help   help for image-update |   -h, --help   help for update | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| ### Options inherited from parent commands | ### Options inherited from parent commands | ||||||
| @ -37,5 +37,5 @@ flux delete auto image-update [name] [flags] | |||||||
| 
 | 
 | ||||||
| ### SEE ALSO | ### SEE ALSO | ||||||
| 
 | 
 | ||||||
| * [flux delete auto](flux_delete_auto.md)	 - Delete automation objects | * [flux delete image](flux_delete_image.md)	 - Delete image automation objects | ||||||
| 
 | 
 | ||||||
		Reference in New Issue
	
	Block a user
	 Michael Bridgen
					Michael Bridgen