Deployment template issue with affinity and nodeSelector values
Hello team! I'm getting issues trying to apply an affinity in the values.
unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(Deployment.spec.template.spec.nodeSelector.nodeAffinity): invalid type for io.k8s.api.core.v1.PodSpec.nodeSelector: got "map", expected "string"
checking the templates I noticed an issue here. https://gitlab.com/gitlab-org/charts/gitlab-agent/-/blob/main/templates/deployment.yaml#L76
{{- with .Values.affinity }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
It should be with .Values.nodeSelector instead of .Values.affinity
Thanks for your work! Let me know if you need a MR, I can create it without problems.