Skip to content

Commit fc01279

Browse files
committed
webhook name override {{ .Values.name }}
1 parent 68eff1e commit fc01279

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

charts/webhook/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
22
name: webhook
3-
version: 0.1.0
3+
version: 0.2.0

charts/webhook/templates/deployment.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
apiVersion: apps/v1
33
kind: Deployment
44
metadata:
5-
name: webhook
5+
name: {{ .Values.name }}
66
labels:
7-
app: webhook
7+
app: {{ .Values.name }}
88
spec:
99
replicas: {{ .Values.replicas }}
1010
selector:
1111
matchLabels:
12-
app: webhook
12+
app: {{ .Values.name }}
1313
template:
1414
metadata:
1515
labels:
16-
app: webhook
16+
app: {{ .Values.name }}
1717
spec:
1818
containers:
1919
- name: webhook

charts/webhook/templates/ingress.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: networking.k8s.io/v1
33
kind: Ingress
44
metadata:
5-
name: webhook
5+
name: {{ .Values.name }}
66
annotations:
77
nginx.ingress.kubernetes.io/use-regex: "true"
88
nginx.ingress.kubernetes.io/rewrite-target: /$1
@@ -23,7 +23,7 @@ spec:
2323
- pathType: ImplementationSpecific
2424
backend:
2525
service:
26-
name: webhook
26+
name: {{ .Values.name }}
2727
port:
2828
number: 80
2929
path: /webhook/(.*)

charts/webhook/templates/service.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
apiVersion: v1
33
kind: Service
44
metadata:
5-
name: webhook
5+
name: {{ .Values.name }}
66
annotations:
77
cloud.google.com/neg: '{"ingress":false}'
88
spec:
99
selector:
10-
app: webhook
10+
app: {{ .Values.name }}
1111
ports:
1212
- name: webhook
1313
port: 80

charts/webhook/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
name: webhook
12
replicas: 1
23
image:
34
repository: "ghcr.io/code-tool/matrix-stack/webhook"

0 commit comments

Comments
 (0)