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

Additional Labels and Annotations #458

Merged
merged 1 commit into from
Feb 13, 2024
Merged

Additional Labels and Annotations #458

merged 1 commit into from
Feb 13, 2024

Conversation

gianlucam76
Copy link
Member

@gianlucam76 gianlucam76 commented Feb 13, 2024

ClusterProfile and Profile instances allow specifying extra labels and annotations. Sveltos will add these labels and annotations to all Kubernetes resources it deploys within a managed cluster based on this ClusterProfile/Profile configuration.

Fields are named:

  1. Spec.ExtraLabels
  2. Spec.ExtraAnnotations

Overrides:

  1. If a deployed resource already has a label with a key present in "ExtraLabels", Sveltos will replace the existing value with the one from "ExtraLabels".

  2. If a deployed resource already has an annotation with a key present in "ExtraAnnotations", Sveltos will replace the existing value with the one from "ExtraAnnotations".

Reconciliation and Update Behavior:

Adding or changing "Extra Labels and Annotations" won't trigger Sveltos to automatically redeploy affected resources. This means updating these values after deployment won't impact previously created resources.

ClusterProfile and Profile instances allow specifying extra labels and annotations.
Sveltos will add these labels and annotations to all Kubernetes resources
it deploys within a managed cluster based on this ClusterProfile/Profile configuration.

__Overrides__:

1. If a deployed resource already has a label with a key present in "ExtraLabels",
Sveltos will replace the existing value with the one from "ExtraLabels".

2. If a deployed resource already has an annotation with a key present in "ExtraAnnotations",
Sveltos will replace the existing value with the one from "ExtraAnnotations".

__Reconciliation and Update Behavior__:

Adding or changing "Extra Labels and Annotations" won't trigger Sveltos to automatically
redeploy affected resources. This means updating these values after deployment won't impact previously
created resources.
@gianlucam76 gianlucam76 merged commit d2a47da into projectsveltos:dev Feb 13, 2024
8 checks passed
@gianlucam76 gianlucam76 deleted the extra-labels-annotations branch February 13, 2024 12:18
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