Skip to content

Commit

Permalink
add-custom-cluster-issuer (#3961)
Browse files Browse the repository at this point in the history
  • Loading branch information
calvix authored Dec 16, 2022
1 parent 91ba57b commit e64f8d1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions helm/happa/templates/happaapi-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ metadata:
nginx.ingress.kubernetes.io/cors-allow-headers: DNT, X-CustomHeader, Keep-Alive, User-Agent, X-Requested-With, If-Modified-Since, Cache-Control, Content-Type, Authorization, Impersonate-User, Impersonate-Group
nginx.ingress.kubernetes.io/enable-cors: "true"

{{- if .Values.happaapi.letsencrypt }}
kubernetes.io/tls-acme: "true"
{{- if .Values.ingress.tls.letsencrypt }}
cert-manager.io/cluster-issuer: "letsencrypt-giantswarm"
{{- else if ne .Values.ingress.tls.clusterIssuer "" }}
cert-manager.io/cluster-issuer: {{ .Values.ingress.tls.clusterIssuer }}
{{- end }}

{{- if .Values.security.restrictAccess.api }}
Expand Down
5 changes: 3 additions & 2 deletions helm/happa/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ metadata:
labels:
app: happa
annotations:
{{- if .Values.happa.letsencrypt }}
kubernetes.io/tls-acme: "true"
{{- if .Values.ingress.tls.letsencrypt }}
cert-manager.io/cluster-issuer: "letsencrypt-giantswarm"
{{- else if ne .Values.ingress.tls.clusterIssuer "" }}
cert-manager.io/cluster-issuer: {{ .Values.ingress.tls.clusterIssuer }}
{{- end }}
{{- if .Values.security.restrictAccess.api }}
nginx.ingress.kubernetes.io/whitelist-source-range: {{ template "whitelistCIDR" . }}
Expand Down
4 changes: 2 additions & 2 deletions helm/happa/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ gcp:

ingress:
tls:
letsencrypt: false
clusterIssuer: ""
crtPemB64: ""
keyPemB64: ""

Expand All @@ -57,7 +59,6 @@ kubernetes:
happa:
address: ""
host: ""
letsencrypt: false
featureFlags:
mapiAuth: false
mapiClusters: false
Expand All @@ -66,7 +67,6 @@ happa:
happaapi:
address: ""
host: ""
letsencrypt: false

athena:
address: ""
Expand Down

0 comments on commit e64f8d1

Please sign in to comment.