Skip to content

Commit

Permalink
feat: Adding console proxy config
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyblasczyk committed Feb 27, 2025
1 parent dbc87fa commit 4ad585e
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/operator-wandb/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: operator-wandb
description: A Helm chart for deploying W&B to Kubernetes
type: application
version: 0.26.9
version: 0.27.0
appVersion: 1.0.0
icon: https://wandb.ai/logo.svg

Expand Down
16 changes: 16 additions & 0 deletions charts/operator-wandb/charts/console/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,22 @@ spec:
fieldRef:
fieldPath: status.hostIP

# Optional HTTP proxy configuration
{{- if .Values.proxy }}
{{- if .Values.proxy.httpProxy }}
- name: HTTP_PROXY
value: {{ .Values.proxy.httpProxy | quote }}
{{- end }}
{{- if .Values.proxy.httpsProxy }}
- name: HTTPS_PROXY
value: {{ .Values.proxy.httpsProxy | quote }}
{{- end }}
{{- if .Values.proxy.noProxy }}
- name: NO_PROXY
value: {{ .Values.proxy.noProxy | quote }}
{{- end }}
{{- end }}

{{- include "console.extraEnv" (dict "global" .Values.global "local" .Values) | nindent 12 }}
{{- include "wandb.extraEnvFrom" (dict "root" $ "local" .) | nindent 12 }}
livenessProbe:
Expand Down
5 changes: 5 additions & 0 deletions charts/operator-wandb/charts/console/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ enabled: true
nameOverride: ""
fullnameOverride: ""

proxy:
httpProxy: ""
httpsProxy: ""
noProxy: ""

image:
repository: wandb/console
tag: latest
Expand Down
4 changes: 4 additions & 0 deletions charts/operator-wandb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,10 @@ console:
image:
repository: wandb/console
tag: latest
proxy:
httpProxy: ""
httpsProxy: ""
noProxy: ""
extraEnv:
# This value is used to expose the IAM identity (of the app) to the user in console for
# adding the correct cross account permissions
Expand Down

0 comments on commit 4ad585e

Please sign in to comment.