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

(feat) add patches to ResourceSummary #341

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

gianlucam76
Copy link
Member

When creating Profile/ClusterProfile with syncMode set to ContinuousWithDriftDetection user will have the ability to specify set of paths for certain resources that need to be ignored during configuration drift evaluation.
User can use the field DriftExclusions.

This is helpful for instance when a Deployment is deployed by Sveltos along an autoscaler. Autoscaler will scale replicas up and down. So we don't want a replicas change to be seen as a configuration drift.

addon-manager will pass resources that need to be watched for configuration drift and will transform DriftExclusions into a slices of Patch.
Operation is always set to remove as the goal of a DriftExclusion is to not consider, so to remove, a path during configuration drift evaluation.

Patch (as the whole ResourceSummary instance) will be consumed by drift-detection-manager.

When creating Profile/ClusterProfile with syncMode set to
`ContinuousWithDriftDetection` user will have the ability
to specify set of paths for certain resources that need to
be ignored during configuration drift evaluation.
User can use the field `DriftExclusions`.

This is helpful for instance when a Deployment is deployed
by Sveltos along an autoscaler. Autoscaler will scale `replicas`
up and down. So we don't want a replicas change to be seen as
a configuration drift.

addon-manager will pass resources that need to be watched for
configuration drift and will transform DriftExclusions into a
slices of `Patch`.
Operation is always set to remove as the goal of a DriftExclusion
is to not consider, so to remove, a path during configuration drift
evaluation.

Patch (as the whole ResourceSummary instance) will be consumed
by drift-detection-manager.
@gianlucam76 gianlucam76 merged commit 0659845 into projectsveltos:dev Jul 31, 2024
2 checks passed
@gianlucam76 gianlucam76 deleted the ignore-drift branch July 31, 2024 17:37
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