1
0
mirror of synced 2026-02-06 10:55:56 +00:00

Implement suspend, resume, reconcile image-update

.. and refactor. These are all amenable to the adapter refactoring
that has served well so far.

Signed-off-by: Michael Bridgen <michael@weave.works>
This commit is contained in:
Michael Bridgen
2020-12-08 11:26:31 +00:00
parent 2bb09697ce
commit d55d185044
16 changed files with 597 additions and 196 deletions

View File

@@ -26,4 +26,5 @@ The reconcile auto sub-commands trigger a reconciliation of automation objects.
* [flux reconcile](flux_reconcile.md) - Reconcile sources and resources
* [flux reconcile auto image-repository](flux_reconcile_auto_image-repository.md) - Reconcile an ImageRepository
* [flux reconcile auto image-update](flux_reconcile_auto_image-update.md) - Reconcile an ImageUpdateAutomation

View File

@@ -0,0 +1,40 @@
## flux reconcile auto image-update
Reconcile an ImageUpdateAutomation
### Synopsis
The reconcile auto image-update command triggers a reconciliation of an ImageUpdateAutomation resource and waits for it to finish.
```
flux reconcile auto image-update [name] [flags]
```
### Examples
```
# Trigger an automation run for an existing image update automation
flux reconcile 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")
--timeout duration timeout for this operation (default 5m0s)
--verbose print generated objects
```
### SEE ALSO
* [flux reconcile auto](flux_reconcile_auto.md) - Reconcile automation objects

View File

@@ -26,4 +26,5 @@ The resume auto sub-commands resume a suspended automation object.
* [flux resume](flux_resume.md) - Resume suspended resources
* [flux resume auto image-repository](flux_resume_auto_image-repository.md) - Resume a suspended ImageRepository
* [flux resume auto image-update](flux_resume_auto_image-update.md) - Resume a suspended ImageUpdateAutomation

View File

@@ -0,0 +1,40 @@
## flux resume auto image-update
Resume a suspended ImageUpdateAutomation
### Synopsis
The resume command marks a previously suspended ImageUpdateAutomation resource for reconciliation and waits for it to finish.
```
flux resume auto image-update [name] [flags]
```
### Examples
```
# Resume reconciliation for an existing ImageUpdateAutomation
flux resume 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")
--timeout duration timeout for this operation (default 5m0s)
--verbose print generated objects
```
### SEE ALSO
* [flux resume auto](flux_resume_auto.md) - Resume automation objects

View File

@@ -26,4 +26,5 @@ The suspend auto sub-commands suspend the reconciliation of an automation object
* [flux suspend](flux_suspend.md) - Suspend resources
* [flux suspend auto image-repository](flux_suspend_auto_image-repository.md) - Suspend reconciliation of an ImageRepository
* [flux suspend auto image-update](flux_suspend_auto_image-update.md) - Suspend reconciliation of an ImageUpdateAutomation

View File

@@ -0,0 +1,40 @@
## flux suspend auto image-update
Suspend reconciliation of an ImageUpdateAutomation
### Synopsis
The suspend command disables the reconciliation of a ImageUpdateAutomation resource.
```
flux suspend auto image-update [name] [flags]
```
### Examples
```
# Suspend reconciliation for an existing ImageUpdateAutomation
flux suspend 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")
--timeout duration timeout for this operation (default 5m0s)
--verbose print generated objects
```
### SEE ALSO
* [flux suspend auto](flux_suspend_auto.md) - Suspend automation objects