github.com/argoproj-labs/argocd-operator@v0.10.0/tests/k8s/1-004_validate_namespace_scoped_install/02-check-cluster-secret.yaml (about)

     1  # This test step ensures that the cluster secret only contains the installation
     2  # namespace after managed-by label has been removed from other-managed-namespace
     3  apiVersion: kuttl.dev/v1beta1
     4  kind: TestStep
     5  commands:
     6  - script: |
     7      namespaces=$(kubectl get secret -n $NAMESPACE argocd-default-cluster-config -o jsonpath='{.data.namespaces}' | base64 -d)
     8      if test "$namespaces" != "$NAMESPACE"; then
     9        echo "Assertion for cluster secret failed!"
    10        exit 1
    11      fi
    12      exit 0