Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5029910

Browse files
authoredMay 14, 2024
Merge pull request #535 from jetstack/add-httpproxy
feat(httpproxy): Update chart to support httproxy
2 parents 47b26b5 + 41a9bf6 commit 5029910

File tree

2 files changed

+29
-7
lines changed

2 files changed

+29
-7
lines changed
 

‎deploy/charts/venafi-kubernetes-agent/templates/deployment.yaml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,20 @@ spec:
3232
{{- toYaml .Values.securityContext | nindent 12 }}
3333
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
3434
imagePullPolicy: {{ .Values.image.pullPolicy }}
35-
{{- if eq .Values.authentication.type "token" }}
35+
{{- if or .Values.http_proxy .Values.https_proxy .Values.no_proxy }}
3636
env:
37-
- name: API_TOKEN
38-
valueFrom:
39-
secretKeyRef:
40-
name: {{ default "agent-credentials" .Values.authentication.secretName }}
41-
key: {{ default "apitoken" .Values.authentication.secretKey }}
37+
{{- with .Values.http_proxy }}
38+
- name: HTTP_PROXY
39+
value: {{ . }}
40+
{{- end }}
41+
{{- with .Values.https_proxy }}
42+
- name: HTTPS_PROXY
43+
value: {{ . }}
44+
{{- end }}
45+
{{- with .Values.no_proxy }}
46+
- name: NO_PROXY
47+
value: {{ . }}
48+
{{- end }}
4249
{{- end }}
4350
{{- if not (empty .Values.command) }}
4451
command:

‎deploy/charts/venafi-kubernetes-agent/values.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ image:
1111
# -- Defaults to only pull if not already present
1212
pullPolicy: IfNotPresent
1313
# -- Overrides the image tag whose default is the chart appVersion
14-
tag: "v0.1.45"
14+
tag: "v0.1.47"
1515

1616
# -- Specify image pull credentials if using a private registry
1717
# example: - name: my-pull-secret
@@ -41,6 +41,21 @@ podSecurityContext: {}
4141
# runAsGroup: 3000
4242
# fsGroup: 2000
4343

44+
# Use these variables to configure the HTTP_PROXY environment variables.
45+
46+
# Configures the HTTP_PROXY environment variable where a HTTP proxy is required.
47+
# +docs:property
48+
# http_proxy: "http://proxy:8080"
49+
50+
# Configures the HTTPS_PROXY environment variable where a HTTP proxy is required.
51+
# +docs:property
52+
# https_proxy: "https://proxy:8080"
53+
54+
# Configures the NO_PROXY environment variable where a HTTP proxy is required,
55+
# but certain domains should be excluded.
56+
# +docs:property
57+
# no_proxy: 127.0.0.1,localhost
58+
4459
# -- Add Container specific SecurityContext settings to the container. Takes precedence over `podSecurityContext` when set. See https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-capabilities-for-a-container
4560
securityContext:
4661
capabilities:

0 commit comments

Comments
 (0)
Please sign in to comment.