Skip to content

Commit 5d52916

Browse files
mprahlopenshift-merge-robot
authored andcommitted
Stop overriding default annotations when IV annotation is set
If the policy uses templates with encryption, the desired replicated policy should not get its default annotations overridden. Relates: https://issues.redhat.com/browse/ACM-1690 Signed-off-by: mprahl <[email protected]>
1 parent 6138fbf commit 5d52916

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/propagator/propagation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ func (r *PolicyReconciler) handleDecision(
808808
if policyHasTemplates(desiredReplicatedPolicy) {
809809
// If the replicated policy has an initialization vector specified, set it for processing
810810
if initializationVector, ok := replicatedPlc.Annotations[IVAnnotation]; ok {
811-
tempAnnotations := replicatedPlc.GetAnnotations()
811+
tempAnnotations := desiredReplicatedPolicy.GetAnnotations()
812812
if tempAnnotations == nil {
813813
tempAnnotations = make(map[string]string)
814814
}

0 commit comments

Comments
 (0)