diff --git a/aws/fiware/orion-ld-sm/charts/orion-ld/templates/certificate.yaml b/aws/fiware/orion-ld-sm/charts/orion-ld/templates/certificate.yaml index 133b5e72..c25978a4 100644 --- a/aws/fiware/orion-ld-sm/charts/orion-ld/templates/certificate.yaml +++ b/aws/fiware/orion-ld-sm/charts/orion-ld/templates/certificate.yaml @@ -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" \ No newline at end of file + - "smart-data-models.fiware.dev" \ No newline at end of file diff --git a/aws/fiware/orion-ld-sm/charts/orion-ld/templates/route.yaml b/aws/fiware/orion-ld-sm/charts/orion-ld/templates/route.yaml index 695e9a52..f79a6727 100644 --- a/aws/fiware/orion-ld-sm/charts/orion-ld/templates/route.yaml +++ b/aws/fiware/orion-ld-sm/charts/orion-ld/templates/route.yaml @@ -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 }} \ No newline at end of file + name: orion-ld-sm \ No newline at end of file