Skip to content

Commit b16bbb9

Browse files
committed
fix: duplicate externally managed annotation value
Signed-off-by: Carlos Salas <[email protected]>
1 parent 85d33ac commit b16bbb9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

internal/controllers/helpers.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ const (
5454
v1ClusterMigrated = "cluster-api.cattle.io/migrated"
5555
fleetNamespaceMigrated = "cluster-api.cattle.io/fleet-namespace-migrated"
5656
fleetDisabledLabel = "cluster-api.cattle.io/disable-fleet-auto-import"
57-
externalFleetAnnotation = "provisioning.cattle.io/externally-managed"
5857

5958
defaultRequeueDuration = 1 * time.Minute
6059
trueValue = "true"

internal/controllers/import_controller_v3.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,8 +591,8 @@ func (r *CAPIImportManagementV3Reconciler) optOutOfFleetManagement(ctx context.C
591591
annotations = map[string]string{}
592592
}
593593

594-
if _, found := annotations[externalFleetAnnotation]; !found {
595-
annotations[externalFleetAnnotation] = trueValue
594+
if _, found := annotations[turtlesannotations.ExternalFleetAnnotation]; !found {
595+
annotations[turtlesannotations.ExternalFleetAnnotation] = trueValue
596596
rancherCluster.SetAnnotations(annotations)
597597

598598
log.Info("Added fleet annotation to Rancher cluster")

0 commit comments

Comments
 (0)