UNCLASSIFIED - NO CUI

Skip to content

fix: Resolve "failed deployment due to invalid pod labels"

Christopher Kyle Galloway requested to merge 116-daemonset-label-fix into main

General MR

Summary

Fixes an issue created when kiali labelling changes was applied to only the deployment and not the daemonset.

Relevant logs/screenshots

When upgrading from bigbang 2.34.0 -> 2.35.0 (Velero 7.1.5-bb.0):

Helm upgrade failed for release velero/velero-velero with chart velero@7.1.5-bb.0: failed to create resource: DaemonSet.apps "node-agent" is invalid: [spec.template.labels: Invalid value: "{{ .Chart.Name }}": a valid label must be an empty string or consist of alphanumeric characters, '-', '' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9.])?[A-Za-z0-9])?'), spec.template.labels: Invalid value: "{{ .Chart.AppVersion }}": a valid label must be an empty string or consist of alphanumeric characters, '-', '' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9.])?[A-Za-z0-9])?')]

Linked Issue

Closes #116

Upgrade Notices

N/A

Edited by Christopher Kyle Galloway

Merge request reports