Skip to content

Commit

Permalink
Merge branch 'master' of github.com:FIWARE-Ops/fiware-gitops
Browse files Browse the repository at this point in the history
  • Loading branch information
dwendland committed Jul 6, 2023
2 parents 8ac6947 + e5d040f commit 6c3b8ec
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 25 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: orion-ld-sm
name: smart-data-models-cert
spec:
## secret the certificate should be stored to, will be referenced by the route
secretName: orion-ld-sm
secretName: smart-data-models
issuerRef:
## certificate issuer, as created in the cert-manager installation step
kind: ClusterIssuer
name: letsencrypt-aws-prod
commonName: "smartdatamodels.fiware.dev"
commonName: "smart-data-models.fiware.dev"
dnsNames:
- "smartdatamodels.fiware.dev"
- "smart-data-models.fiware.dev"
32 changes: 11 additions & 21 deletions aws/fiware/orion-ld-sm/charts/orion-ld/templates/route.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,16 @@
{{- if .Values.route.enabled -}}
{{- $fullName := include "orion.fullname" . -}}
apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: {{ include "orion.fullname" . }}
labels:
{{ include "orion.labels" . | nindent 4 }}
{{- if .Values.route.annotations }}
annotations:
{{- with .Values.route.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
annotations:
cert-utils-operator.redhat-cop.io/certs-from-secret: smart-data-models
name: orion-ld-sm-route
spec:
host: {{ .Values.route.host}}
to:
host: smart-data-models.fiware.dev
port:
targetPort: 1026
tls:
termination: edge
insecureEdgeTerminationPolicy: Redirect
to:
kind: Service
name: {{ $fullName }}
{{- if .Values.route.tls }}
tls:
{{- with .Values.route.tls }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
{{- end }}
name: orion-ld-sm

0 comments on commit 6c3b8ec

Please sign in to comment.