Skip to content

Commit

Permalink
Simplify hello-world
Browse files Browse the repository at this point in the history
  • Loading branch information
adamreese committed Mar 2, 2021
1 parent 6801b76 commit 9448cfe
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 48 deletions.
7 changes: 0 additions & 7 deletions charts/hello-world/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@ If release name contains chart name it will be used as a full name.
{{- end }}
{{- end }}

{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "hello-world.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Common labels
*/}}
Expand Down
12 changes: 0 additions & 12 deletions charts/hello-world/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,12 @@ spec:
{{- include "hello-world.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "hello-world.selectorLabels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "hello-world.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
Expand Down
15 changes: 0 additions & 15 deletions charts/hello-world/templates/tests/test-connection.yaml

This file was deleted.

14 changes: 0 additions & 14 deletions charts/hello-world/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ image:
# Overrides the image tag whose default is the chart appVersion.
tag: ""

imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

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

podAnnotations: {}

podSecurityContext: {}
# fsGroup: 2000

securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000

service:
type: ClusterIP
port: 80

0 comments on commit 9448cfe

Please sign in to comment.