Skip to content

Commit

Permalink
Revert "feat: add annotations to operator" (#2001)
Browse files Browse the repository at this point in the history
Revert "feat: add annotations to operator (#1914)"

This reverts commit bb43a3e.
  • Loading branch information
dvaldivia authored Feb 27, 2024
1 parent 1be6cd1 commit 4a18b9b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions pkg/controller/main-controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,15 +266,6 @@ func NewController(
}
}
}
if len(oprImg) > 0 {
imageInfo := strings.Split(oprImg, ":")
if len(imageInfo) == 2 {
_, err = kubeClientSet.AppsV1().Deployments(ns).Patch(ctx, getOperatorDeploymentName(), types.MergePatchType, []byte(`{"metadata":{"annotations":{"min.io/operator":"`+imageInfo[1]+`"}}}`), metav1.PatchOptions{})
if err != nil {
klog.Errorf("Patch operator deployments annotations['min.io/operator':'%s'] err: %s", imageInfo[1], err)
}
}
}

oprImg = env.Get(DefaultOperatorImageEnv, oprImg)

Expand Down

0 comments on commit 4a18b9b

Please sign in to comment.