topologySpreadConstraints not working
I'm trying to set the topologySpreadConstraints
in the auto-deploy-values.yaml, and its not working because when doing the semverCompare in deployment.yaml template
{{- if and (semverCompare ">= 1.19.x" .Capabilities.KubeVersion.Version) (.Values.topologySpreadConstraints) }}
it doesnt account for KubeVersions that are not the traditional 1.19.x format, our format for our cluster is from GKE with a string of v1.21.14-gke.2700
I believe the fix for this could be {{- if (semverCompare ">= 1.19.x || >= 1.19.0-x" .Capabilities.KubeVersion.Version) }}