tjungbauer / openshift-clusterconfig-gitops

:white_check_mark: OpenShift Cluster GitOps Bootstrap
https://charts.stderr.at/
4 stars 2 forks source link

Namespaces require an appproject stanza and every namespace renders a appproject stanza #2

Open tosmi opened 6 months ago

tosmi commented 6 months ago

we would like to implement the following:

currently you have to copy the full appproject config to every namespace. when you render the template you get multiple appproject instances with the same settings. this works, but triggers a warning in argo (multiple resources).

we could to the following

https://github.com/tjungbauer/openshift-clusterconfig-gitops/blob/a9c5435d88a186daa9f7dd2e91c2600b529b5032/tenants/tenant1/in-cluster/values.yaml#L49

tjungbauer commented 6 months ago

Actually it is possible to define multiple AppProject in the same namespaces block, even for other namespaces. see:

https://github.com/tjungbauer/openshift-clusterconfig-gitops/blob/a22535b1d2887f0c1c659b0fa34b0d1cc4b1fafe/tenants/tenant1/in-cluster/values.yaml#L117

A warning should not happen in Argo CD. can you share the objects and warnings that are shown?