Skip to content

Commit

Permalink
Merge pull request #11 from thealtoclef/add-pod-container-security-co…
Browse files Browse the repository at this point in the history
…ntext

✨ chore: update chart version and add security contexts
  • Loading branch information
buu-nguyen authored Dec 16, 2024
2 parents 6f135cf + 46cf2f8 commit 4ca3165
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 1 deletion.
2 changes: 1 addition & 1 deletion helm-charts/doris/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ maintainers:
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.6.2-rc.1
version: 1.6.2-rc.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
40 changes: 40 additions & 0 deletions helm-charts/doris/templates/doriscluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,16 @@ spec:
{{- end }}
{{- end }}

{{- if .Values.feSpec.podSecurityContext }}
securityContext:
{{- toYaml .Values.feSpec.podSecurityContext | nindent 6 }}
{{- end }}

{{- if .Values.feSpec.containerSecurityContext }}
containerSecurityContext:
{{- toYaml .Values.feSpec.containerSecurityContext | nindent 6 }}
{{- end }}

{{- if .Values.feSpec.resource }}
{{- toYaml .Values.feSpec.resource | nindent 4 }}
{{- else }}
Expand Down Expand Up @@ -187,6 +197,16 @@ spec:
{{- end }}
{{- end }}

{{- if .Values.beSpec.podSecurityContext }}
securityContext:
{{- toYaml .Values.beSpec.podSecurityContext | nindent 6 }}
{{- end }}

{{- if .Values.beSpec.containerSecurityContext }}
containerSecurityContext:
{{- toYaml .Values.beSpec.containerSecurityContext | nindent 6 }}
{{- end }}

{{- if .Values.beSpec.resource }}
{{- toYaml .Values.beSpec.resource | nindent 4 }}
{{- else }}
Expand Down Expand Up @@ -287,6 +307,16 @@ spec:
{{- end }}
{{- end }}

{{- if .Values.cnSpec.podSecurityContext }}
securityContext:
{{- toYaml .Values.cnSpec.podSecurityContext | nindent 6 }}
{{- end }}

{{- if .Values.cnSpec.containerSecurityContext }}
containerSecurityContext:
{{- toYaml .Values.cnSpec.containerSecurityContext | nindent 6 }}
{{- end }}

{{- if .Values.cnSpec.resource }}
{{- toYaml .Values.cnSpec.resource | nindent 4 }}
{{- else }}
Expand Down Expand Up @@ -381,6 +411,16 @@ spec:
{{- end }}
{{- end }}

{{- if .Values.brokerSpec.podSecurityContext }}
securityContext:
{{- toYaml .Values.brokerSpec.podSecurityContext | nindent 6 }}
{{- end }}

{{- if .Values.brokerSpec.containerSecurityContext }}
containerSecurityContext:
{{- toYaml .Values.brokerSpec.containerSecurityContext | nindent 6 }}
{{- end }}

{{- if .Values.brokerSpec.resource }}
{{- toYaml .Values.brokerSpec.resource | nindent 4 }}
{{- else }}
Expand Down
12 changes: 12 additions & 0 deletions helm-charts/doris/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ feSpec:
# copy_file2: |
# text *** content

podSecurityContext: {}
containerSecurityContext: {}

# If configured separately here, it will overwrite the total resources configuration default.
# but the default configuration of other types will still take effect.
resource: {}
Expand Down Expand Up @@ -317,6 +320,9 @@ beSpec:
# copy_file2: |
# text *** content

podSecurityContext: {}
containerSecurityContext: {}

# If configured separately here, it will overwrite the total resources configuration default.
# but the default configuration of other types will still take effect.
resource: {}
Expand Down Expand Up @@ -488,6 +494,9 @@ cnSpec:
# copy_file2: |
# text *** content

podSecurityContext: {}
containerSecurityContext: {}

# If configured separately here, it will overwrite the total resources configuration default.
# but the default configuration of other types will still take effect.
resource: {}
Expand Down Expand Up @@ -652,6 +661,9 @@ brokerSpec:
# copy_file2: |
# text *** content

podSecurityContext: {}
containerSecurityContext: {}

# If configured separately here, it will overwrite the total resources configuration default.
# but the default configuration of other types will still take effect.
resource: {}
Expand Down

0 comments on commit 4ca3165

Please sign in to comment.