From 0b0b1dde5972a5441bab0571d5b2a2fad0e58708 Mon Sep 17 00:00:00 2001 From: Jeremy Gustie Date: Fri, 1 Jul 2022 14:40:18 -0400 Subject: [PATCH] Change the app.kubernetes.io/name label from optimize to optimize-controller This is done to match the Git repository, Docker image, and Helm chart. --- cli/internal/commands/initialize/initialize.go | 2 +- config/default/kustomization.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/internal/commands/initialize/initialize.go b/cli/internal/commands/initialize/initialize.go index 5718b94fd..8cf2ce0be 100644 --- a/cli/internal/commands/initialize/initialize.go +++ b/cli/internal/commands/initialize/initialize.go @@ -57,7 +57,7 @@ func (o *Options) Initialize(ctx context.Context) error { } // Run `kubectl apply` to install the product - // TODO Handle upgrades with "--prune", "--selector", "app.kubernetes.io/name=optimize,app.kubernetes.io/managed-by=%s" + // TODO Handle upgrades with "--prune", "--selector", "app.kubernetes.io/name=optimize-controller,app.kubernetes.io/managed-by=%s" kubectlApply, err := o.Config.Kubectl(ctx, "apply", "-f", "-") if err != nil { return err diff --git a/config/default/kustomization.yaml b/config/default/kustomization.yaml index d2869d312..d06ce30cf 100644 --- a/config/default/kustomization.yaml +++ b/config/default/kustomization.yaml @@ -10,7 +10,7 @@ namePrefix: optimize- # Labels to add to all resources and selectors. commonLabels: - app.kubernetes.io/name: optimize + app.kubernetes.io/name: optimize-controller resources: - ../crd