Skip to content

Commit d1fa8c2

Browse files
chore: convert chart to a simple one chart for all proxies
1 parent 47b7f23 commit d1fa8c2

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

helm-charts/simplejson-proxy/templates/_helpers.tpl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{/*
22
Expand the name of the chart.
33
*/}}
4-
{{- define "ical-simplejson-proxy.name" -}}
4+
{{- define "simplejson-proxy.name" -}}
55
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
66
{{- end }}
77

@@ -10,7 +10,7 @@ Create a default fully qualified app name.
1010
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
1111
If release name contains chart name it will be used as a full name.
1212
*/}}
13-
{{- define "ical-simplejson-proxy.fullname" -}}
13+
{{- define "simplejson-proxy.fullname" -}}
1414
{{- if .Values.fullnameOverride }}
1515
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
1616
{{- else }}
@@ -26,16 +26,16 @@ If release name contains chart name it will be used as a full name.
2626
{{/*
2727
Create chart name and version as used by the chart label.
2828
*/}}
29-
{{- define "ical-simplejson-proxy.chart" -}}
29+
{{- define "simplejson-proxy.chart" -}}
3030
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
3131
{{- end }}
3232

3333
{{/*
3434
Common labels
3535
*/}}
36-
{{- define "ical-simplejson-proxy.labels" -}}
37-
helm.sh/chart: {{ include "ical-simplejson-proxy.chart" . }}
38-
{{ include "ical-simplejson-proxy.selectorLabels" . }}
36+
{{- define "simplejson-proxy.labels" -}}
37+
helm.sh/chart: {{ include "simplejson-proxy.chart" . }}
38+
{{ include "simplejson-proxy.selectorLabels" . }}
3939
{{- if .Chart.AppVersion }}
4040
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
4141
{{- end }}
@@ -45,7 +45,7 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
4545
{{/*
4646
Selector labels
4747
*/}}
48-
{{- define "ical-simplejson-proxy.selectorLabels" -}}
49-
app.kubernetes.io/name: {{ include "ical-simplejson-proxy.name" . }}
48+
{{- define "simplejson-proxy.selectorLabels" -}}
49+
app.kubernetes.io/name: {{ include "simplejson-proxy.name" . }}
5050
app.kubernetes.io/instance: {{ .Release.Name }}
5151
{{- end }}

helm-charts/simplejson-proxy/templates/deployment.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
apiVersion: apps/v1
22
kind: Deployment
33
metadata:
4-
name: {{ include "ical-simplejson-proxy.fullname" . }}
4+
name: {{ include "simplejson-proxy.fullname" . }}
55
labels:
6-
{{- include "ical-simplejson-proxy.labels" . | nindent 4 }}
6+
{{- include "simplejson-proxy.labels" . | nindent 4 }}
77
spec:
88
replicas: {{ .Values.replicaCount }}
99
selector:
1010
matchLabels:
11-
{{- include "ical-simplejson-proxy.selectorLabels" . | nindent 6 }}
11+
{{- include "simplejson-proxy.selectorLabels" . | nindent 6 }}
1212
template:
1313
metadata:
1414
labels:
15-
{{- include "ical-simplejson-proxy.selectorLabels" . | nindent 8 }}
15+
{{- include "simplejson-proxy.selectorLabels" . | nindent 8 }}
1616
spec:
1717
{{- with .Values.imagePullSecrets }}
1818
imagePullSecrets:

helm-charts/simplejson-proxy/templates/service.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
apiVersion: v1
22
kind: Service
33
metadata:
4-
name: {{ include "ical-simplejson-proxy.fullname" . }}
4+
name: {{ include "simplejson-proxy.fullname" . }}
55
spec:
66
type: ClusterIP
77
selector:
8-
{{- include "ical-simplejson-proxy.selectorLabels" . | nindent 4 }}
8+
{{- include "simplejson-proxy.selectorLabels" . | nindent 4 }}
99
ports:
1010
- name: http
1111
protocol: TCP

helm-charts/simplejson-proxy/values.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Default values for ical-simplejson-proxy
1+
# Default values for simplejson-proxy
22
# This is a YAML-formatted file.
33
# Declare variables to be passed into your templates.
44

@@ -10,8 +10,8 @@ image:
1010
tag: ""
1111

1212
imagePullSecrets: []
13-
nameOverride: ""
14-
fullnameOverride: ""
13+
nameOverride: "ical-simplejson-proxy"
14+
fullnameOverride: "ical-simplejson-proxy"
1515

1616
resources: {}
1717
# We usually recommend not to specify default resources and to leave this as a conscious

0 commit comments

Comments
 (0)