Skip to content

Commit 2c4eefb

Browse files
author
Sylvain Rabot
committed
Remove revision from field-manager
Signed-off-by: Sylvain Rabot <[email protected]>
1 parent 569edbc commit 2c4eefb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

controllers/kustomization_controller.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -682,8 +682,7 @@ func (r *KustomizationReconciler) apply(kustomization kustomizev1.Kustomization,
682682
timeout := kustomization.GetTimeout() + (time.Second * 1)
683683
ctx, cancel := context.WithTimeout(context.Background(), timeout)
684684
defer cancel()
685-
source, err := r.getSource(ctx, kustomization)
686-
fieldManager := fmt.Sprintf("%s/%s", "kustomize-controller", source.GetArtifact().Revision[:8])
685+
fieldManager := "kustomize-controller"
687686

688687
cmd := fmt.Sprintf("cd %s && kubectl apply --field-manager=%s -f %s.yaml --timeout=%s --cache-dir=/tmp",
689688
dirPath, fieldManager, kustomization.GetUID(), kustomization.Spec.Interval.Duration.String())

0 commit comments

Comments
 (0)