From 32e94860de0f209e6a3011d7b2d15b5238b362dd Mon Sep 17 00:00:00 2001 From: disposab1e <48065501+disposab1e@users.noreply.github.com> Date: Thu, 31 Oct 2019 23:35:28 +0100 Subject: [PATCH] Proposal to support OpenShift Routes --- .../templates/argocd-server-route.yaml | 25 +++++++++++++++++++ charts/argo-cd/values.yaml | 9 +++++++ 2 files changed, 34 insertions(+) create mode 100644 charts/argo-cd/templates/argocd-server-route.yaml diff --git a/charts/argo-cd/templates/argocd-server-route.yaml b/charts/argo-cd/templates/argocd-server-route.yaml new file mode 100644 index 00000000..dbc6e15f --- /dev/null +++ b/charts/argo-cd/templates/argocd-server-route.yaml @@ -0,0 +1,25 @@ +{{- if .Values.route.enabled -}} +apiVersion: route.openshift.io/v1 +kind: Route +metadata: + name: argocd-server + labels: + app.kubernetes.io/name: {{ include "argo-cd.name" . }} + helm.sh/chart: {{ include "argo-cd.chart" . }} + app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/managed-by: {{ .Release.Service }} + app.kubernetes.io/part-of: {{ include "argo-cd.name" . }} +spec: + host: {{ .Values.route.hostname | default "" | quote }} + subdomain: '' + to: + kind: Service + name: argocd-server + weight: 100 + port: + targetPort: https + tls: + termination: passthrough + insecureEdgeTerminationPolicy: None + wildcardPolicy: None +{{- end }} diff --git a/charts/argo-cd/values.yaml b/charts/argo-cd/values.yaml index 8b64ab8d..9aa091d9 100644 --- a/charts/argo-cd/values.yaml +++ b/charts/argo-cd/values.yaml @@ -70,6 +70,7 @@ dexServer: volumes: [] # terminate tls at ArgoCD level +# Consider using 'route.enabled: true' if you want to access Argo CD from inside OpenShift ingress: enabled: false annotations: @@ -85,6 +86,14 @@ ingress: # hosts: # - chart-example.local +# Create a OpenShift Route with SSL passthrough for UI and CLI +# Consider setting 'hostname' e.g. https://argocd.apps-crc.testing/ using your Default Ingress Controller Domain +# Find your domain with: kubectl describe --namespace=openshift-ingress-operator ingresscontroller/default | grep Domain: +# If 'hostname' is an empty string "" OpenShift will create a hostname for you. +route: + enabled: false + hostname: "" + certificate: enabled: false issuer: