You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generate FilterSystemTags and mirrorAWSTags in controllers (#568)
Issue [#2248](aws-controllers-k8s/community#2248)
Description of changes:
By generating these two functions, we ensure that AWS tags will not
be present in resource Spec during adoption/regular reconciliations.
FilterSystemTags will be called right after the ReadOne operation during
adoption, and it will ensure we don't patch AWS (aws:cloudformation..)
or Controller tags (services.aws.k8s/...) into the resource.
MirrowAWSTags instead, is called during the regular reconciliation loop,
after each ReadOne operation. It ensures that if the resource in AWS has
AWS tags, they need to be reflected in the desired Spec. This will ensure
that those tags will not be detected in the Delta and trigger an update.
Since the controller only patches the difference between the latest and
desired resource, mirroring the AWS tags ensures we don't include them
in our Spec.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
0 commit comments