-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
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
fix lint errors #30
fix lint errors #30
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -14,10 +14,13 @@ spec: | |||
app: {{ template "hazelcast.name" . }} | ||||
release: "{{ .Release.Name }}" | ||||
role: hazelcast | ||||
serviceName: {{ template "hazelcast.fullname" . }} | ||||
template: | ||||
metadata: | ||||
labels: | ||||
app: {{ template "hazelcast.name" . }} | ||||
chart: {{ template "hazelcast.chart" . }} | ||||
heritage: "{{ .Release.Service }}" | ||||
release: "{{ .Release.Name }}" | ||||
role: hazelcast | ||||
spec: | ||||
|
@@ -83,11 +86,9 @@ spec: | |||
{{- end }} | ||||
- name: JAVA_OPTS | ||||
value: "-Dhazelcast.rest.enabled={{ .Values.hazelcast.rest }} -Dhazelcast.config=/data/hazelcast/hazelcast.xml -DserviceName={{ template "hazelcast.fullname" . }} -Dnamespace={{ .Release.Namespace }} -Dhazelcast.mancenter.enabled={{ .Values.mancenter.enabled }} -Dhazelcast.mancenter.url=http://{{ template "mancenter.fullname" . }}:{{ .Values.mancenter.service.port }}/hazelcast-mancenter {{ if .Values.gracefulShutdown.enabled }}-Dhazelcast.shutdownhook.policy=GRACEFUL -Dhazelcast.shutdownhook.enabled=true -Dhazelcast.graceful.shutdown.max.wait={{ .Values.gracefulShutdown.maxWaitSeconds }} {{ end }} {{ if .Values.metrics.enabled }}-Dhazelcast.jmx=true{{ end }} {{ .Values.hazelcast.javaOpts }}" | ||||
serviceAccountName: {{ template "hazelcast.serviceAccountName" . }} | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What service account it used if it's not specified here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. serviceAccountName is already being set at the Pod object level correctly here
serviceAccountName is not valid at the Container object level |
||||
{{- if .Values.securityContext.enabled }} | ||||
securityContext: | ||||
runAsUser: {{ .Values.securityContext.runAsUser }} | ||||
fsGroup: {{ .Values.securityContext.fsGroup }} | ||||
readOnlyRootFilesystem: true | ||||
allowPrivilegeEscalation: false | ||||
{{- if .Values.securityContext.runAsUser }} | ||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do you set the
fsGroup
then? Don't we have any case when it's useful to set it?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fsGroup is already being set at the Pod securityContext object level correctly here
charts/stable/hazelcast/templates/mancenter-deployment.yaml
Line 96 in ac807d6
fsGroup is not valid at the Container securityContext object level