Skip to content

Commit

Permalink
feat: adds outbound proxy variable support for windows pod (#1106)
Browse files Browse the repository at this point in the history
Signed-off-by: Nilekh Chaudhari <1626598+nilekhc@users.noreply.github.com>
  • Loading branch information
nilekhc committed Apr 5, 2023
1 parent d3bc4c3 commit 6becac0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
Expand Up @@ -62,7 +62,7 @@ windows:
pullPolicy: IfNotPresent
nodeSelector: {}
tolerations: []
enabled: false
enabled: true
resources:
requests:
cpu: 100m
Expand Down Expand Up @@ -132,7 +132,7 @@ secrets-store-csi-driver:
prometheus.io/port: "8080"

windows:
enabled: false
enabled: true
kubeletRootDir: C:\var\lib\kubelet
metricsAddr: ":8080"
image:
Expand Down
Expand Up @@ -17,9 +17,17 @@ spec:
{{- if .Values.windows.podLabels }}
{{- toYaml .Values.windows.podLabels | nindent 8 }}
{{- end }}
{{- if .Values.windows.podAnnotations }}
{{- if or .Values.windows.podAnnotations .Values.enableArcExtension }}
annotations:
{{- if .Values.windows.podAnnotations}}
{{- toYaml .Values.windows.podAnnotations | nindent 8 }}
{{- end }}
{{- if .Values.enableArcExtension }}
{{- if .Values.arc.enableMonitoring }}
prometheus.io/scrape: "true"
prometheus.io/port: "8898"
{{- end }}
{{- end }}
{{- end }}
spec:
{{- if .Values.imagePullSecrets }}
Expand Down Expand Up @@ -61,6 +69,13 @@ spec:
periodSeconds: 30
resources:
{{ toYaml .Values.windows.resources | indent 12 }}
{{- if .Values.enableArcExtension }}
{{- if .Values.Azure.proxySettings.isProxyEnabled }}
envFrom:
- secretRef:
name: arc-proxy-config
{{- end }}
{{- end }}
volumeMounts:
- name: provider-vol
mountPath: "C:\\provider"
Expand Down

0 comments on commit 6becac0

Please sign in to comment.