Skip to content

Commit a17d974

Browse files
author
iops
committed
move values to internal file
1 parent 04830c4 commit a17d974

File tree

4 files changed

+40
-18
lines changed

4 files changed

+40
-18
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.0.2
3+
version: 0.0.3

charts/webhook/templates/deployment.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
labels:
77
app: webhook
88
spec:
9-
replicas: {{ .Values.matrixWebHook.replicas }}
9+
replicas: {{ .Values.replicas }}
1010
selector:
1111
matchLabels:
1212
app: webhook
@@ -17,34 +17,34 @@ spec:
1717
spec:
1818
containers:
1919
- name: webhook
20-
image: {{ .Values.matrixWebHook.image.repository }}:{{ .Values.matrixWebHook.image.tag }}
21-
imagePullPolicy: {{ .Values.matrixWebHook.image.pullPolicy }}
20+
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
21+
imagePullPolicy: {{ .Values.image.pullPolicy }}
2222
resources:
23-
{{ toYaml .Values.matrixWebHook.resources | nindent 10 }}
23+
{{ toYaml .Values.resources | nindent 10 }}
2424
args: ["-vvvvvvvvvvvvvvvvvvvvv"]
2525
env:
2626
- name: MATRIX_URL
27-
value: "https://{{ .Values.server_name }}"
27+
value: "https://{{ .Values.ingress.host }}"
2828
- name: MATRIX_ID
29-
value: "{{ .Values.matrixWebHook.matrix.id }}"
29+
value: "{{ .Values.matrix.id }}"
3030
- name: MATRIX_PW
31-
value: "{{ .Values.matrixWebHook.matrix.password }}"
31+
value: "{{ .Values.matrix.password }}"
3232
- name: API_KEY
33-
value: "{{ .Values.matrixWebHook.matrix.apiKey }}"
33+
value: "{{ .Values.matrix.apiKey }}"
3434
ports:
3535
- containerPort: 4785
3636
name: webhook
3737
protocol: TCP
3838
terminationGracePeriodSeconds: 10
39-
{{- if .Values.matrixWebHook.nodeSelector }}
39+
{{- if .Values.nodeSelector }}
4040
nodeSelector:
41-
{{ toYaml .Values.matrixWebHook.nodeSelector | nindent 8 }}
41+
{{ toYaml .Values.nodeSelector | nindent 8 }}
4242
{{- end }}
43-
{{- if .Values.matrixWebHook.tolerations }}
43+
{{- if .Values.tolerations }}
4444
tolerations:
45-
{{ toYaml .Values.matrixWebHook.tolerations | nindent 8 }}
45+
{{ toYaml .Values.tolerations | nindent 8 }}
4646
{{- end }}
47-
{{- if .Values.matrixWebHook.affinity }}
47+
{{- if .Values.affinity }}
4848
affinity:
49-
{{ toYaml .Values.matrixWebHook.affinity | nindent 8 }}
49+
{{ toYaml .Values.affinity | nindent 8 }}
5050
{{- end }}

charts/webhook/templates/ingress.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ spec:
1010
ingressClassName: nginx
1111
tls:
1212
- hosts:
13-
- {{ .Values.server_name }}
14-
secretName: {{ .Values.server_name }}
13+
- {{ .Values.ingress.host }}
14+
secretName: {{ .Values.ingress.host }}
1515
rules:
16-
- host: {{ .Values.server_name }}
16+
- host: {{ .Values.ingress.host }}
1717
http:
1818
paths:
1919
- pathType: ImplementationSpecific

charts/webhook/values.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
replicas: 1
2+
image:
3+
repository: "zerodotfive/matrix-webhook"
4+
tag: "rawjson"
5+
pullPolicy: IfNotPresent
6+
resources:
7+
requests:
8+
memory: 1Gi
9+
cpu: 100m
10+
limits:
11+
memory: 1Gi
12+
cpu: 2
13+
nodeSelector: {}
14+
tolerations: []
15+
affinity: {}
16+
#integration parameters
17+
matrix:
18+
id: ""
19+
password: ""
20+
apiKey: ""
21+
ingress:
22+
host: ""

0 commit comments

Comments
 (0)