Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ kubectl delete rolebinding license-leader-election-rolebinding -n account-system
kubectl delete clusterrole license-manager-role --ignore-not-found
kubectl delete clusterrole license-metrics-reader --ignore-not-found
kubectl delete clusterrole license-proxy-role --ignore-not-found
kubectl delete clusterrole license-controller-clusterrole --ignore-not-found
kubectl delete role license-leader-election-role -n account-system --ignore-not-found
kubectl delete serviceaccount license-controller-manager -n account-system --ignore-not-found
helm upgrade -i license -n license-system --create-namespace ./charts/license-controller ${HELM_OPTS}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@ data:
regionUID: "{{ .Values.desktopConfig.regionUID }}"
certSecretName: "{{ .Values.desktopConfig.certSecretName }}"
proxyDomain: "{{ .Values.desktopConfig.cloudDomain }}"
allowedAllOrigins: {{ .Values.desktopConfig.allowedAllOrigins | default false }}
allowedOrigins:
{{- if .Values.desktopConfig.allowedAllOrigins }}
- "*"
{{- else }}
{{- $defaultAllowedOrigins := list "costcenter" "license" -}}
{{- $allowedOrigins := .Values.desktopConfig.allowedOrigins | default $defaultAllowedOrigins -}}
{{- range $origin := $allowedOrigins }}
- "https://{{ $origin }}.{{ $.Values.desktopConfig.cloudDomain }}"
{{- end }}
{{- end }}

common:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ desktopConfig:
billingUrl: "http://account-service.account-system.svc:2333"
billingToken: ""

allowedAllOrigins: false
allowedOrigins:
- "costcenter"
- "license"
Expand Down
2 changes: 2 additions & 0 deletions frontend/providers/license/deploy/Kubefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ USER 65532:65532
COPY registry registry
COPY manifests manifests

COPY install.sh install.sh

ENV certSecretName="wildcard-cert"
ENV cloudDomain="127.0.0.1.nip.io"
ENV cloudPort=""
Expand Down
4 changes: 4 additions & 0 deletions frontend/providers/license/deploy/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

kubectl delete clusterrolebinding license-frontend-role-binding --ignore-not-found
kubectl apply -f manifests
1 change: 1 addition & 0 deletions service/account/deploy/account-service-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ if ! helm status "${RELEASE_NAME}" -n "${RELEASE_NAMESPACE}" >/dev/null 2>&1; th
adopt_namespaced_resource configmap region-info
adopt_namespaced_resource service account-service
adopt_namespaced_resource deployment account-service
adopt_namespaced_resource ingress account-service
fi

# Build helm set args from ConfigMap
Expand Down
Loading