Skip to content

Standard-ddms: Removing version from selector label

Arturo Hernandez [EPAM] requested to merge ah/fix-sdms-selector into master

Currently when we bump up standard ddms appVersion the label selector will brake, I.E.:

https://community.opengroup.org/osdu/platform/domain-data-mgmt-services/reservoir/open-etp-server/-/jobs/1511121#L54

Error: UPGRADE FAILED: cannot patch "oetp" with kind Deployment: Deployment.apps "oetp" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app":"oetp", "app.kubernetes.io/instance":"oetp", "app.kubernetes.io/version":"0.18.0"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable

This might happen on all services which are using standard ddms, either, we can add a delete deploy step in pipelines or do the upgrade manually applying this fixed version of standard ddms to avoid this issue in the future.

Merge request reports