diff --git a/apps/charts/coder/values.yaml b/apps/charts/coder/values.yaml index 94c24ee..6ef465c 100644 --- a/apps/charts/coder/values.yaml +++ b/apps/charts/coder/values.yaml @@ -44,6 +44,7 @@ persistentVolumeClaims: # VirtualService configuration virtualService: enabled: true + allowWildcard: true gateways: public: false private: true @@ -55,6 +56,8 @@ env: CODER_OIDC_GROUP_FIELD: groups CODER_ACCESS_URL: value: "https://{subdomain}.{domain}" + CODER_WILDCARD_ACCESS_URL: + value: "*.{subdomain}.{domain}" CODER_OIDC_ICON_URL: "https://{subdomain}.{domain}/static/dist/assets/icons/icon.png" CODER_DISABLE_PASSWORD_AUTH: "true" CODER_OAUTH2_GITHUB_ALLOW_SIGNUPS: "false" diff --git a/apps/common/templates/_helpers.tpl b/apps/common/templates/_helpers.tpl index 34e3233..361e1d7 100644 --- a/apps/common/templates/_helpers.tpl +++ b/apps/common/templates/_helpers.tpl @@ -491,6 +491,9 @@ spec: {{- include "common.virtualServiceGatewaysPublic" . | nindent 4 }} hosts: - {{ include "common.domain" . }} + {{- if .Values.virtualService.allowWildcard }} + - "*.{{ include "common.domain" . }}" + {{- end }} - mesh http: - route: @@ -518,6 +521,9 @@ spec: {{- include "common.virtualServiceGatewaysPrivate" . | nindent 4 }} hosts: - {{ include "common.domain" . }} + {{- if .Values.virtualService.allowWildcard }} + - "*.{{ include "common.domain" . }}" + {{- end }} - mesh http: - route: