Skip to content

Commit

Permalink
Do not apply label with version to fix upgrade issues (#617)
Browse files Browse the repository at this point in the history
  • Loading branch information
alenkacz committed Jul 22, 2019
1 parent c7b29e7 commit 3c1b9e9
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/controller/planexecution/planexecution_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,14 +385,14 @@ func (r *ReconcilePlanExecution) Reconcile(request reconcile.Request) (reconcile
CommonLabels: map[string]string{
"heritage": "kudo",
"app": operatorVersion.Spec.Operator.Name,
"version": operatorVersion.Spec.Version,
"instance": instance.Name,
},
CommonAnnotations: map[string]string{
"planexecution": planExecution.Name,
"plan": planExecution.Spec.PlanName,
"phase": phase.Name,
"step": step.Name,
"version": operatorVersion.Spec.Version,
},
GeneratorOptions: &ktypes.GeneratorOptions{
DisableNameSuffixHash: true,
Expand Down
1 change: 0 additions & 1 deletion pkg/test/test_data/patch/00-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ metadata:
name: toy1-nginx-deployment
labels:
app: "toy"
version: "1.0.0"
instance: "toy1"
annotations:
plan: "deploy"
Expand Down
1 change: 0 additions & 1 deletion pkg/test/test_data/patch/01-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ metadata:
name: toy1-nginx-deployment
labels:
app: "toy"
version: "1.0.0"
instance: "toy1"
annotations:
plan: "scale"
Expand Down

0 comments on commit 3c1b9e9

Please sign in to comment.