Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Referenced resource names can be expressed as templates #610

Merged
merged 1 commit into from
Jun 29, 2024

Conversation

gianlucam76
Copy link
Member

For following fields:

  • PolicyRef
  • KustomizationRef
  • ValueFrom

name can be expressed as a template and instantiate using

  • cluster namespace: .Cluster.metadata.namespace
  • cluster name: .Cluster.metadata.name
  • cluster type: .Cluster.kind

It was already possible to leave namespace empty, in which case cluster namespace was used.

Sveltos will instantiate name at run-time. This allows different resources to be fetched for different cluster, all while using a single ClusterProfile/Profile

For following fields:

- PolicyRef
- KustomizationRef
- ValueFrom

name can be expressed as a template and instantiate using

- cluster namespace: .Cluster.metadata.namespace
- cluster name: .Cluster.metadata.name
- cluster type: .Cluster.kind

It was already possible to leave namespace empty, in which case
cluster namespace was used.

Sveltos will instantiate name at run-time. This allows different
resources to be fetched for different cluster, all while using a
single ClusterProfile/Profile
@gianlucam76 gianlucam76 merged commit 9d37ff6 into projectsveltos:dev Jun 29, 2024
5 checks passed
@gianlucam76 gianlucam76 deleted the templates branch June 29, 2024 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant