mirror of
https://github.com/bitnami/charts.git
synced 2026-03-16 06:47:30 +08:00
Chart cleanup: template/CHART_NAME template chart (#9469)
* Fix some typos for MAIN_OBJECT_BLOCK in the template chart Signed-off-by: Brad Solomon <81818815+brsolomon-deloitte@users.noreply.github.com> * Remove extraneous character from template string Signed-off-by: Brad Solomon <81818815+brsolomon-deloitte@users.noreply.github.com> * Add missing closing bracket to ingress template Signed-off-by: Brad Solomon <81818815+brsolomon-deloitte@users.noreply.github.com> * Fix link for containerSecurityContext Signed-off-by: Brad Solomon <81818815+brsolomon-deloitte@users.noreply.github.com>
This commit is contained in:
@@ -25,7 +25,7 @@ $ helm install my-release bitnami/%%CHART_NAME%%
|
||||
To install the chart with the release name `my-release`:
|
||||
|
||||
```console
|
||||
helm install my-release bitnami/%%CHART_NAME%%s
|
||||
helm install my-release bitnami/%%CHART_NAME%%
|
||||
```
|
||||
|
||||
The command deploys %%CHART_NAME%% on the Kubernetes cluster in the default configuration. The [Parameters](#parameters) section lists the parameters that can be configured during installation.
|
||||
|
||||
@@ -115,9 +115,9 @@ spec:
|
||||
{{- end }}
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: {{ .Values.%MAIN_OBJECT_BLOCK%%.containerPorts.http }}
|
||||
containerPort: {{ .Values.%%MAIN_OBJECT_BLOCK%%.containerPorts.http }}
|
||||
- name: https
|
||||
containerPort: {{ .Values.%MAIN_OBJECT_BLOCK%%.containerPorts.https }}
|
||||
containerPort: {{ .Values.%%MAIN_OBJECT_BLOCK%%.containerPorts.https }}
|
||||
{{- if not .Values.diagnosticMode.enabled }}
|
||||
{{- if .Values.%%MAIN_OBJECT_BLOCK%%.livenessProbe.enabled }}
|
||||
livenessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.%%MAIN_OBJECT_BLOCK%%.livenessProbe "enabled") "context" $) | nindent 12 }}
|
||||
|
||||
@@ -9,7 +9,7 @@ metadata:
|
||||
{{- if .Values.commonLabels }}
|
||||
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- if or .Values.ingress.annotations .Values.commonAnnotations }
|
||||
{{- if or .Values.ingress.annotations .Values.commonAnnotations }}
|
||||
annotations:
|
||||
{{- if .Values.ingress.annotations }}
|
||||
{{- include "common.tplvalues.render" ( dict "value" .Values.ingress.annotations "context" $) | nindent 4 }}
|
||||
|
||||
@@ -118,9 +118,9 @@ spec:
|
||||
{{- end }}
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: {{ .Values.%MAIN_OBJECT_BLOCK%%.containerPorts.http }}
|
||||
containerPort: {{ .Values.%%MAIN_OBJECT_BLOCK%%.containerPorts.http }}
|
||||
- name: https
|
||||
containerPort: {{ .Values.%MAIN_OBJECT_BLOCK%%.containerPorts.https }}
|
||||
containerPort: {{ .Values.%%MAIN_OBJECT_BLOCK%%.containerPorts.https }}
|
||||
{{- if not .Values.diagnosticMode.enabled }}
|
||||
{{- if .Values.%%MAIN_OBJECT_BLOCK%%.livenessProbe.enabled }}
|
||||
livenessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.%%MAIN_OBJECT_BLOCK%%.livenessProbe "enabled") "context" $) | nindent 12 }}
|
||||
|
||||
@@ -168,7 +168,7 @@ diagnosticMode:
|
||||
enabled: true
|
||||
fsGroup: 1001
|
||||
## Configure Container Security Context
|
||||
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
|
||||
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
|
||||
## @param %%MAIN_OBJECT_BLOCK%%.containerSecurityContext.enabled Enabled %%MAIN_CONTAINER_NAME%% containers' Security Context
|
||||
## @param %%MAIN_OBJECT_BLOCK%%.containerSecurityContext.runAsUser Set %%MAIN_CONTAINER_NAME%% containers' Security Context runAsUser
|
||||
## @param %%MAIN_OBJECT_BLOCK%%.containerSecurityContext.runAsNonRoot Set %%MAIN_CONTAINER_NAME%% containers' Security Context runAsNonRoot
|
||||
|
||||
Reference in New Issue
Block a user