projectsveltos / addon-controller

Sveltos Kubernetes add-on controller programmatically deploys add-ons and applications in tens of clusters. Support for ClusterAPI powered clusters, Helm charts, kustomize ,YAMLs. Sveltos has built-in support for multi-tenancy.
https://projectsveltos.github.io/sveltos/
Apache License 2.0
252 stars 17 forks source link

TemplateResourceRefs: name #592

Closed gianlucam76 closed 3 months ago

gianlucam76 commented 3 months ago

TemplateResourceRefs can be expressed as a template and instantiated at run-time using matching cluster namespace/name.

Before this PR:

This is off with rest of templating where:

This PR allows .Cluster.metadata.namespace and .Cluster.metadata.name to be also used. This will be the documented way.

In order not to break existing deployment, .ClusterNamespace and .ClusterName can still be used.