Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Version label prevents normal helm upgrades #482

Open
LincolnBryant opened this issue Apr 27, 2021 · 0 comments
Open

Version label prevents normal helm upgrades #482

LincolnBryant opened this issue Apr 27, 2021 · 0 comments
Assignees

Comments

@LincolnBryant
Copy link
Contributor

LincolnBryant commented Apr 27, 2021

The OSG folks are having issues doing upgrades using the Helm operator for Flux - specifically it seems to be a problem with having the Chart version in the label of our applications.

The errors are something like this:

ts=2021-04-26T22:48:56.5489564Z caller=release.go:357 component=release release=osgdev-chtc-itb-slurm-ce targetNamespace=osgdev resource=osgdev:helmrelease/chtc-itb-slurm-ce helmVersion=v3 error="upgrade failed: cannot patch \"osg-hosted-ce-chtc-itb-slurm\" with kind Deployment: Deployment.apps \"osg-hosted-ce-chtc-itb-slurm\" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{\"app\":\"chtc-itb-slurm\", \"chart\":\"osg-hosted-ce-3.8.2\", \"instance\":\"chtc-itb-slurm\", \"release\":\"osgdev-chtc-itb-slurm-ce\"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable" action=upgrade

I think Helm cannot upgrade because we have the Chart version baked into the chart. Updating the Chart changes the value and breaks the selector, as I understand it.

Can we remove it?

@LincolnBryant LincolnBryant self-assigned this Apr 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant