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

EventTrigger: referenced resource names as template #223

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

gianlucam76
Copy link
Member

@gianlucam76 gianlucam76 commented Jul 18, 2024

EventTrigger can reference resources in the PolicyRefs section:

  • namespace of each of those resources can either be set or left
    empty (in which case the cluster's namespace will be used);
  • name of each of those resources can be expressed as a template
    using .Cluster.metadata.namespace, .Cluster.metadata.name and
    .Cluster.metedata.kind

HelmCharts are also instantiated. If an Helm chart is referencing
one or more ConfigMap/Secret instances via ValuesFrom, those are
instantiated if referenced resource contains the annotation
projectsveltos.io/template

Same applies to KustomizationRefs, which are also instantiated.
If a KustomizationRef is referencing one or more ConfigMap/Secret
instances via ValuesFrom, those are instantiated if referenced
resource contains the annotation projectsveltos.io/template

@gianlucam76 gianlucam76 force-pushed the templating-names branch 2 times, most recently from 8f37514 to 83710d0 Compare July 18, 2024 12:34
EventTrigger can reference resources in the PolicyRefs section:

- namespace of each of those resources can either be set or left
empty (in which case the cluster's namespace will be used);
- name of each of those resources can be expressed as a template
using `.Cluster.metadata.namespace`, `.Cluster.metadata.name` and
`.Cluster.metedata.kind`

HelmCharts are also instantiated. If an Helm chart is referencing
one or more ConfigMap/Secret instances via ValuesFrom, those are
instantiated if referenced resource contains the annotation
`projectsveltos.io/template`

Same applies to KustomizationRefs, which are also instantiated.
If a KustomizationRef is referencing one or more ConfigMap/Secret
instances via ValuesFrom, those are instantiated if referenced
resource contains the annotation `projectsveltos.io/template`
@gianlucam76 gianlucam76 merged commit d5db7b0 into projectsveltos:dev Jul 18, 2024
8 checks passed
@gianlucam76 gianlucam76 deleted the templating-names branch July 18, 2024 14:00
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