Skip to content

Commit f8e7c88

Browse files
authored
Move config secret to be created in the chart (#17)
1 parent 4f27bd7 commit f8e7c88

File tree

6 files changed

+33
-19
lines changed

6 files changed

+33
-19
lines changed

charts/azdo-proxy/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ apiVersion: v2
22
name: azdo-proxy
33
description: A Helm chart for azdo-proxy
44
type: application
5-
version: v0.3.2
6-
appVersion: v0.3.2
5+
version: v0.3.3
6+
appVersion: v0.3.3

charts/azdo-proxy/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ spec:
5656
volumes:
5757
- name: config
5858
secret:
59-
secretName: {{ .Values.configSecretName }}
59+
secretName: {{ include "azdo-proxy.fullname" . }}
6060
{{- with .Values.nodeSelector }}
6161
nodeSelector:
6262
{{- toYaml . | nindent 8 }}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{{- if .Values.networkPolicy.enabled }}
2+
apiVersion: networking.k8s.io/v1
3+
kind: NetworkPolicy
4+
metadata:
5+
name: {{ include "azdo-proxy.fullname" . }}-deny-ingress
6+
labels:
7+
{{- include "azdo-proxy.labels" . | nindent 4 }}
8+
spec:
9+
policyTypes:
10+
- Ingress
11+
- Egress
12+
ingress:
13+
- from:
14+
- podSelector: {}
15+
egress:
16+
- {}
17+
podSelector: {}
18+
{{- end }}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: v1
2+
kind: Secret
3+
metadata:
4+
name: {{ include "azdo-proxy.fullname" . }}
5+
labels:
6+
{{- include "azdo-proxy.labels" . | nindent 4 }}
7+
data:
8+
config.json: {{ required "Config has to be set." .Values.config }}

charts/azdo-proxy/templates/tests/test-connection.yaml

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

charts/azdo-proxy/values.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,7 @@ tolerations: []
4444

4545
affinity: {}
4646

47-
configSecretName: ""
47+
networkPolicy:
48+
enabled: false
49+
50+
config: ""

0 commit comments

Comments
 (0)