Skip to content

Commit 9448cfe

Browse files
committed
Simplify hello-world
1 parent 6801b76 commit 9448cfe

File tree

4 files changed

+0
-48
lines changed

4 files changed

+0
-48
lines changed

charts/hello-world/templates/_helpers.tpl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,6 @@ If release name contains chart name it will be used as a full name.
2323
{{- end }}
2424
{{- end }}
2525

26-
{{/*
27-
Create chart name and version as used by the chart label.
28-
*/}}
29-
{{- define "hello-world.chart" -}}
30-
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
31-
{{- end }}
32-
3326
{{/*
3427
Common labels
3528
*/}}

charts/hello-world/templates/deployment.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,12 @@ spec:
1111
{{- include "hello-world.selectorLabels" . | nindent 6 }}
1212
template:
1313
metadata:
14-
{{- with .Values.podAnnotations }}
15-
annotations:
16-
{{- toYaml . | nindent 8 }}
17-
{{- end }}
1814
labels:
1915
{{- include "hello-world.selectorLabels" . | nindent 8 }}
2016
spec:
21-
{{- with .Values.imagePullSecrets }}
22-
imagePullSecrets:
23-
{{- toYaml . | nindent 8 }}
24-
{{- end }}
2517
serviceAccountName: {{ include "hello-world.serviceAccountName" . }}
26-
securityContext:
27-
{{- toYaml .Values.podSecurityContext | nindent 8 }}
2818
containers:
2919
- name: {{ .Chart.Name }}
30-
securityContext:
31-
{{- toYaml .Values.securityContext | nindent 12 }}
3220
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
3321
imagePullPolicy: {{ .Values.image.pullPolicy }}
3422
ports:

charts/hello-world/templates/tests/test-connection.yaml

Lines changed: 0 additions & 15 deletions
This file was deleted.

charts/hello-world/values.yaml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ image:
1010
# Overrides the image tag whose default is the chart appVersion.
1111
tag: ""
1212

13-
imagePullSecrets: []
1413
nameOverride: ""
1514
fullnameOverride: ""
1615

@@ -23,19 +22,6 @@ serviceAccount:
2322
# If not set and create is true, a name is generated using the fullname template
2423
name: ""
2524

26-
podAnnotations: {}
27-
28-
podSecurityContext: {}
29-
# fsGroup: 2000
30-
31-
securityContext: {}
32-
# capabilities:
33-
# drop:
34-
# - ALL
35-
# readOnlyRootFilesystem: true
36-
# runAsNonRoot: true
37-
# runAsUser: 1000
38-
3925
service:
4026
type: ClusterIP
4127
port: 80

0 commit comments

Comments
 (0)