cloud-native-toolkit / multi-tenancy-gitops

Provides our opinionated point of view on how GitOps can be used to manage the infrastructure, services and application layers of K8s based systems
https://cloudnativetoolkit.dev/adopting/use-cases/gitops/gitops-ibm-cloud-paks/
Apache License 2.0
113 stars 729 forks source link

[bug] secret yaml names mismatch #223

Open mkz100 opened 2 years ago

mkz100 commented 2 years ago

secret yaml names mismatch -

  1. Gitops expects ibm-entitled-registry-credentials-secret.yaml
    
    multi-tenancy-gitops-apps/apic/environments/single-cluster/config/kustomization.yaml:

multi-tenancy-gitops-apps/apic/environments/single-cluster/config/secrets/ibm-entitlement-key-secret.sh:kubeseal -n tools --controller-name=${SEALED_SECRET_CONTOLLER_NAME} --controller-namespace=${SEALED_SECRET_NAMESPACE} -o yaml < delete-ibm-entitlement-key-secret.yaml > ibm-entitlement-key-secret.yaml multi-tenancy-gitops-apps/apic/environments/single-cluster/config/secrets/ibm-entitlement-key-secret.sh:rm delete-ibm-entitlement-key-secret.yaml multi-tenancy-gitops-apps/ace/environments/ci/secrets/ibm-entitlement-key-secret.sh: -o yaml > ibm-entitlement-key-secret.yaml multi-tenancy-gitops-apps/ace/environments/base/secrets/ibm-entitlement-key-secret.sh: -o yaml > ibm-entitlement-key-secret.yaml


As a result, ArgoCD application `apic-config-prod` won't be created properly, instead, showing an error indicating the file `ibm-entitled-registry-credentials-secret.yaml` is not found.
mkz100 commented 2 years ago

Actually should open this issue in https://github.com/cloud-native-toolkit/multi-tenancy-gitops-apps.

Will open one there. You can close this one if needed.