argoworkflow-status-addon

module
v0.0.0-...-263f077 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2023 License: Apache-2.0

README

argoworkflow-status-addon

** Now bundled in https://github.com/mikeshng/argo-workflow-multicluster **

The Argo Workflow Status Addon is an OCM add-on that helps sync the status of the managed cluster Workflow to the hub cluster. This is an optional addon meant to be used along with https://github.com/mikeshng/argo-workflow-multicluster By using this add-on, the full status of the managed cluster Workflow can be sync back to the hub cluster Workflow.

The Workflow object on the managed cluster must be annotated with:

workflows.argoproj.io/ocm-hub-workflow-uid: "xxxxx" # where xxxxx is the first 5 characters of the dormant Workflow hub UID.

The above annotation should be inserted automatically by the controller in the argo-workflow-multicluster project.

Install the argoworkflow-status-addon to the Hub cluster

Switch context to Hub cluster.

make deploy

You can check the addon manager status by:

$ kubectl -n open-cluster-management get deploy argoworkflow-status-addon-manager
NAME                       READY   UP-TO-DATE   AVAILABLE   AGE
argoworkflow-status-addon-manager   1/1     1            1           2m17s

$ kubectl -n cluster1 get managedclusteraddon argoworkflow-status-addon # Replace 'cluster1' with the managed cluster name
NAME               AVAILABLE   DEGRADED   PROGRESSING
argoworkflow-status-addon   True                   

Verify the argoworkflow-status-addon agent is installed on the Managed cluster and create a Workflow CR

Switch context to Managed cluster.

$ kubectl -n open-cluster-management-agent-addon get deploy argoworkflow-status-addon-agent
NAME                     READY   UP-TO-DATE   AVAILABLE   AGE
argoworkflow-status-addon-agent   1/1     1            1           4m23s
make deploy-argoworkflow-cr-sample

Verify the Workflow CR is created on the Hub cluster

Switch context to Hub cluster.

$ kubectl -n cluster1 get workflow # Replace 'cluster1' with the managed cluster name
NAME                            STATUS      AGE     MESSAGE
hello-world-status-sync-06565   Succeeded   2m8s    

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL