Files
cf61c74192 feat: enable metadata to be set on namespaces (#10672)
* namespace labels

Signed-off-by: pashavictorovich <[email protected]>

* create namespace should support annotations

Signed-off-by: pashavictorovich <[email protected]>

* handle also modification hook

Signed-off-by: pashavictorovich <[email protected]>

* regenerate entity on modify hook

Signed-off-by: pashavictorovich <[email protected]>

* manifests

Signed-off-by: pashavictorovich <[email protected]>

* feat: enable metadata to be set on namespaces

This builds upon the work that @pasha-codefresh did in #10288.

The main differences between this PR and the previous one is that we use
SSA to diff between different versions of the namespace, as well as
having a slightly different API in gitops-engine for setting the
namespace modifier.

We now also set the ownership of the namespace in ArgoCD.

Closes #4628
Closes #6215
Closes #7799

Signed-off-by: Blake Pettersson <[email protected]>

* fix: don't always track namespaces

For now, only allow namespaces managed with `managedNamespaceMetadata`
to have tracking set by Argo. Ideally we'd like new namespaces to also
be tracked by Argo, but there's currently an issue with a failing
integration test.

Also wrap error message if setting the app instance errors on the
namespace.

Signed-off-by: Blake Pettersson <[email protected]>

* fix: always return true with `hasManagedMetadata`

If `hasManagedMetadata` is set, `true` should always be returned.

Signed-off-by: Blake Pettersson <[email protected]>

* docs: add clarifying docs on resource tracking

Signed-off-by: Blake Pettersson <[email protected]>

* style: pr tweaks

Signed-off-by: Blake Pettersson <[email protected]>

* fix: re-add label unsetting

Signed-off-by: Blake Pettersson <[email protected]>

* Update gitops-engine to current master

Signed-off-by: Leonardo Luz Almeida <[email protected]>

Signed-off-by: pashavictorovich <[email protected]>
Signed-off-by: Blake Pettersson <[email protected]>
Signed-off-by: Leonardo Luz Almeida <[email protected]>
Co-authored-by: pashavictorovich <[email protected]>
Co-authored-by: Leonardo Luz Almeida <[email protected]>
2022-11-04 08:59:16 -04:00

8 lines
173 B
YAML

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./guestbook-ui-namespace.yaml
- ./guestbook-ui-deployment.yaml
- ./guestbook-ui-svc.yaml