Skip to content

Commit

Permalink
revert: additional hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbroks committed Jan 27, 2024
1 parent f246788 commit 4102c15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
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.10.37
version: 0.10.38
appVersion: 1.0.0
icon: https://wandb.ai/logo.svg

Expand Down
9 changes: 3 additions & 6 deletions charts/operator-wandb/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,22 +60,20 @@ metadata:
{{- toYaml .Values.ingress.annotations | nindent 4 }}
{{- end }}
spec:
{{- $defaultHost := replace "https://" "" (replace "http://" "" .Values.global.host) }}
ingressClassName: {{ .Values.ingress.class }}

{{- if .Values.ingress.issuer.create }}
{{- if ne .Values.ingress.issuer.provider "google" }}
tls:
- host: [{{ $defaultHost }}]
- host: [{{ replace "https://" "" (replace "http://" "" .Values.global.host) }}]
secretName: {{ .Release.Name }}-tls
{{- end }}
{{- else }}
tls: {{ toYaml .Values.ingress.tls | nindent 4 }}
{{- end }}

rules:
{{- range append .Values.ingress.additionalHosts (list $defaultHost) }}
- host: {{ . }}
- host: {{ replace "https://" "" (replace "http://" "" .Values.global.host) }}
http:
paths:
- pathType: Prefix
Expand All @@ -97,5 +95,4 @@ spec:
service:
name: {{ .Release.Name }}-console
port:
number: 8082
{{- end }}
number: 8082

0 comments on commit 4102c15

Please sign in to comment.