Add delete, export, get image-update
This uses the established abstractions to implement the usual subcommands for the ImageUpdateAutomation type. I've called the sub-subcommand in each case `image-update`, as a fairly safe shorthand for the much longer `image-update-automation`. Signed-off-by: Michael Bridgen <michael@weave.works>
This commit is contained in:
@@ -28,4 +28,5 @@ The delete auto sub-commands delete automation objects.
|
||||
* [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 auto image-repository](flux_delete_auto_image-repository.md) - Delete an ImageRepository object
|
||||
* [flux delete auto image-update](flux_delete_auto_image-update.md) - Delete an ImageUpdateAutomation object
|
||||
|
||||
|
||||
41
docs/cmd/flux_delete_auto_image-update.md
Normal file
41
docs/cmd/flux_delete_auto_image-update.md
Normal file
@@ -0,0 +1,41 @@
|
||||
## flux delete auto image-update
|
||||
|
||||
Delete an ImageUpdateAutomation object
|
||||
|
||||
### Synopsis
|
||||
|
||||
The delete auto image-update command deletes the given ImageUpdateAutomation from the cluster.
|
||||
|
||||
```
|
||||
flux delete auto image-update [name] [flags]
|
||||
```
|
||||
|
||||
### Examples
|
||||
|
||||
```
|
||||
# Delete an image update automation
|
||||
flux delete auto image-update latest-images
|
||||
|
||||
```
|
||||
|
||||
### Options
|
||||
|
||||
```
|
||||
-h, --help help for image-update
|
||||
```
|
||||
|
||||
### Options inherited from parent commands
|
||||
|
||||
```
|
||||
--context string kubernetes context to use
|
||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||
-s, --silent delete resource without asking for confirmation
|
||||
--timeout duration timeout for this operation (default 5m0s)
|
||||
--verbose print generated objects
|
||||
```
|
||||
|
||||
### SEE ALSO
|
||||
|
||||
* [flux delete auto](flux_delete_auto.md) - Delete automation objects
|
||||
|
||||
@@ -28,4 +28,5 @@ The export auto sub-commands export automation object in YAML format.
|
||||
* [flux export](flux_export.md) - Export resources in YAML format
|
||||
* [flux export auto image-policy](flux_export_auto_image-policy.md) - Export ImagePolicy resources in YAML format
|
||||
* [flux export auto image-repository](flux_export_auto_image-repository.md) - Export ImageRepository resources in YAML format
|
||||
* [flux export auto image-update](flux_export_auto_image-update.md) - Export ImageUpdateAutomation resources in YAML format
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ flux export auto image-policy [name] [flags]
|
||||
# Export all ImagePolicy resources
|
||||
flux export auto image-policy --all > image-policies.yaml
|
||||
|
||||
# Export a Provider
|
||||
# Export a specific policy
|
||||
flux export auto image-policy alpine1x > alpine1x.yaml
|
||||
|
||||
```
|
||||
|
||||
44
docs/cmd/flux_export_auto_image-update.md
Normal file
44
docs/cmd/flux_export_auto_image-update.md
Normal file
@@ -0,0 +1,44 @@
|
||||
## flux export auto image-update
|
||||
|
||||
Export ImageUpdateAutomation resources in YAML format
|
||||
|
||||
### Synopsis
|
||||
|
||||
The export image-update command exports one or all ImageUpdateAutomation resources in YAML format.
|
||||
|
||||
```
|
||||
flux export auto image-update [name] [flags]
|
||||
```
|
||||
|
||||
### Examples
|
||||
|
||||
```
|
||||
# Export all ImageUpdateAutomation resources
|
||||
flux export auto image-update --all > updates.yaml
|
||||
|
||||
# Export a specific automation
|
||||
flux export auto image-update latest-images > latest.yaml
|
||||
|
||||
```
|
||||
|
||||
### Options
|
||||
|
||||
```
|
||||
-h, --help help for image-update
|
||||
```
|
||||
|
||||
### Options inherited from parent commands
|
||||
|
||||
```
|
||||
--all select all resources
|
||||
--context string kubernetes context to use
|
||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||
--timeout duration timeout for this operation (default 5m0s)
|
||||
--verbose print generated objects
|
||||
```
|
||||
|
||||
### SEE ALSO
|
||||
|
||||
* [flux export auto](flux_export_auto.md) - Export automation objects
|
||||
|
||||
@@ -28,4 +28,5 @@ The get auto sub-commands print the statuses of the automation objects.
|
||||
* [flux get](flux_get.md) - Get sources and resources
|
||||
* [flux get auto image-policy](flux_get_auto_image-policy.md) - Get ImagePolicy statuses
|
||||
* [flux get auto image-repository](flux_get_auto_image-repository.md) - Get ImageRepository statuses
|
||||
* [flux get auto image-update](flux_get_auto_image-update.md) - Get ImageUpdateAutomation statuses
|
||||
|
||||
|
||||
44
docs/cmd/flux_get_auto_image-update.md
Normal file
44
docs/cmd/flux_get_auto_image-update.md
Normal file
@@ -0,0 +1,44 @@
|
||||
## flux get auto image-update
|
||||
|
||||
Get ImageUpdateAutomation statuses
|
||||
|
||||
### Synopsis
|
||||
|
||||
The get auto image-update command prints the status of ImageUpdateAutomation objects.
|
||||
|
||||
```
|
||||
flux get auto image-update [flags]
|
||||
```
|
||||
|
||||
### Examples
|
||||
|
||||
```
|
||||
# List all image update automation object and their status
|
||||
flux get auto image-update
|
||||
|
||||
# List image update automations from all namespaces
|
||||
flux get auto image-update --all-namespaces
|
||||
|
||||
```
|
||||
|
||||
### Options
|
||||
|
||||
```
|
||||
-h, --help help for image-update
|
||||
```
|
||||
|
||||
### Options inherited from parent commands
|
||||
|
||||
```
|
||||
-A, --all-namespaces list the requested object(s) across all namespaces
|
||||
--context string kubernetes context to use
|
||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||
--timeout duration timeout for this operation (default 5m0s)
|
||||
--verbose print generated objects
|
||||
```
|
||||
|
||||
### SEE ALSO
|
||||
|
||||
* [flux get auto](flux_get_auto.md) - Get automation statuses
|
||||
|
||||
Reference in New Issue
Block a user