Skip to content

Commit

Permalink
Add rollout namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Rizwana777 committed Mar 5, 2024
1 parent 0755e47 commit 38c9e70
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gather_gitops.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,11 @@ get_namespaces() {
local argocdInstances
argocdInstances=$(oc get ArgoCD --all-namespaces -o jsonpath='{.items[*].metadata.namespace}')

local rolloutNamespaces
argocdInstances=$(oc get RolloutManager --all-namespaces -o jsonpath='{.items[*].metadata.namespace}')

local total
total="${namespaces} ${argocdInstances}"
total="${namespaces} ${argocdInstances} ${rolloutNamespaces}"
echo "${total}"

NAMESPACES=$(echo "${total}" | tr ' ' '\n' | sort -u | tr '\n' ' ')
Expand Down

0 comments on commit 38c9e70

Please sign in to comment.