We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The standard convention of using podSecurityContext and securityContext from values.yaml in deployment/statefulset spec seems to be as follows:
securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} containers: - name: {{ .Chart.Name }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }}
While, the same is not followed in many cases - vmalert, vmcluster, alertmanager etc. for e.g. in file: https://github.com/VictoriaMetrics/helm-charts/blob/master/charts/victoria-metrics-alert/templates/alertmanager-deployment.yaml
{{- with .Values.alertmanager.securityContext }} securityContext: {{- toYaml .| nindent 8 }} {{- end }} containers: - name: {{ template "vmalert.name" . }}-alertmanager securityContext: {{- toYaml .Values.alertmanager.podSecurityContext | nindent 12 }}
While in the case the vmagent, it is rightly used: https://github.com/VictoriaMetrics/helm-charts/blob/master/charts/victoria-metrics-agent/templates/deployment.yaml
The text was updated successfully, but these errors were encountered:
@srihas Thanks for the report! Feel free to pull a request if you like)
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
The standard convention of using podSecurityContext and securityContext from values.yaml in deployment/statefulset spec seems to be as follows:
While, the same is not followed in many cases - vmalert, vmcluster, alertmanager etc.
for e.g. in file:
https://github.com/VictoriaMetrics/helm-charts/blob/master/charts/victoria-metrics-alert/templates/alertmanager-deployment.yaml
While in the case the vmagent, it is rightly used:
https://github.com/VictoriaMetrics/helm-charts/blob/master/charts/victoria-metrics-agent/templates/deployment.yaml
The text was updated successfully, but these errors were encountered: