Skip to content

Commit 41a9bf6

Browse files
author
Oluwole Fadeyi
committed
feat(httpproxy): Update chart to support httproxy
Updates the helm chart to include the HTTPS_PROXY and HTTP_PROXY env vars. Signed-off-by: Oluwole Fadeyi <[email protected]>
1 parent c7a5b6b commit 41a9bf6

File tree

3 files changed

+31
-9
lines changed

3 files changed

+31
-9
lines changed

deploy/charts/venafi-kubernetes-agent/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ name: venafi-kubernetes-agent
33
description: |-
44
The Venafi Kubernetes Agent connects your Kubernetes or Openshift cluster to the Venafi Control Plane.
55
type: application
6-
version: 0.1.46
7-
appVersion: "v0.1.46"
6+
version: 0.1.47
7+
appVersion: "v0.1.47"

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)