File tree Expand file tree Collapse file tree 4 files changed +33
-9
lines changed
charts/git-auth-proxy/templates Expand file tree Collapse file tree 4 files changed +33
-9
lines changed Original file line number Diff line number Diff line change 14
14
template :
15
15
metadata :
16
16
annotations :
17
- checksum/config : {{ include (print $.Template.BasePath "/configmap .yaml") . | sha256sum }}
17
+ checksum/config : {{ include (print $.Template.BasePath "/secret .yaml") . | sha256sum }}
18
18
{{- with .Values.podAnnotations }}
19
19
{{- toYaml . | nindent 8 }}
20
20
{{- end }}
38
38
{{- toYaml .Values.securityContext | nindent 12 }}
39
39
image : " {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
40
40
imagePullPolicy : {{ .Values.image.pullPolicy }}
41
+ args :
42
+ - " --config=/var/config.json"
41
43
ports :
42
44
- name : http
43
45
containerPort : 8080
@@ -57,12 +59,12 @@ spec:
57
59
{{- toYaml .Values.resources | nindent 12 }}
58
60
volumeMounts :
59
61
- name : config
60
- mountPath : " /var/ "
62
+ mountPath : " /var"
61
63
readOnly : true
62
64
volumes :
63
65
- name : config
64
- configMap :
65
- name : {{ include "git-auth-proxy.fullname" . }}
66
+ secret :
67
+ secretName : {{ include "git-auth-proxy.fullname" . }}
66
68
{{- if .Values.priorityClassName }}
67
69
priorityClassName : {{ .Values.priorityClassName }}
68
70
{{- end }}
Original file line number Diff line number Diff line change 1
1
apiVersion : v1
2
- kind : ConfigMap
2
+ kind : Secret
3
3
metadata :
4
4
name : {{ include "git-auth-proxy.fullname" . }}
5
5
labels :
6
6
{{- include "git-auth-proxy.labels" . | nindent 4 }}
7
- data :
7
+ stringData :
8
8
config.json : {{ required "Config has to be set." .Values.config | quote }}
Original file line number Diff line number Diff line change 17
17
name : metrics
18
18
selector :
19
19
{{- include "git-auth-proxy.selectorLabels" . | nindent 4 }}
20
+ ---
21
+ # This service is left for legacy reasons as the project used to be called azdo-proxy.
22
+ # The service should be removed eventually as all applications change the service name they use.
23
+ apiVersion : v1
24
+ kind : Service
25
+ metadata :
26
+ name : azdo-proxy
27
+ labels :
28
+ {{- include "git-auth-proxy.labels" . | nindent 4 }}
29
+ spec :
30
+ type : {{ .Values.service.type }}
31
+ ports :
32
+ - port : {{ .Values.service.port }}
33
+ targetPort : http
34
+ protocol : TCP
35
+ name : http
36
+ - port : {{ .Values.service.metricsPort }}
37
+ targetPort : metrics
38
+ protocol : TCP
39
+ name : metrics
40
+ selector :
41
+ {{- include "git-auth-proxy.selectorLabels" . | nindent 4 }}
Original file line number Diff line number Diff line change @@ -29,10 +29,10 @@ import (
29
29
)
30
30
31
31
type cfg struct {
32
- Addr string `flag:"addr" default:":8080"`
33
- MetricsAddr string `flag:"metrics-addr" default:":9090"`
32
+ Addr string `flag:"addr" default:":8080" required:"true"`
33
+ MetricsAddr string `flag:"metrics-addr" default:":9090" required:"true"`
34
+ ConfigPath string `flag:"config" required:"true"`
34
35
KubeconfigPath string `flag:"kubeconfig"`
35
- ConfigPath string `flag:"config"`
36
36
}
37
37
38
38
func main () {
You can’t perform that action at this time.
0 commit comments