generated from openMF/payment-hub-ee
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GOV-301: add ingress for mock payment schema (#208)
- Loading branch information
1 parent
739e451
commit 5aa4f63
Showing
2 changed files
with
88 additions
and
0 deletions.
There are no files selected for viewing
50 changes: 50 additions & 0 deletions
50
helm/ph-ee-engine/connector-mock-paymentschema/templates/ingress.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{{- if .Values.ingress.enabled -}} | ||
{{- $pathtype := .Values.ingress.pathtype -}} | ||
{{- $ingressPath := .Values.ingress.path -}} | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: "ph-ee-connector-mock-payment-schema" | ||
labels: | ||
app: {{ .Chart.Name }} | ||
release: {{ .Release.Name }} | ||
heritage: {{ .Release.Service }} | ||
{{- with .Values.ingress.annotations }} | ||
annotations: | ||
{{ toYaml . | indent 4 }} | ||
{{- end }} | ||
spec: | ||
{{- if .Values.ingress.className }} | ||
ingressClassName: {{ .Values.ingress.className | quote }} | ||
{{- end }} | ||
{{- if .Values.ingress.tls }} | ||
tls: | ||
{{- if .ingressPath }} | ||
{{- range .Values.ingress.tls }} | ||
- hosts: | ||
{{- range .hosts }} | ||
- {{ . }} | ||
{{- end }} | ||
secretName: {{ .secretName }} | ||
{{- end }} | ||
{{- else }} | ||
{{ toYaml .Values.ingress.tls | indent 4 }} | ||
{{- end }} | ||
{{- end}} | ||
rules: | ||
{{- range .Values.ingress.hosts }} | ||
- host: {{ .host }} | ||
http: | ||
paths: | ||
{{- range .paths }} | ||
- path: {{ .path }} | ||
pathType: {{ $pathtype }} | ||
backend: | ||
service: | ||
name: {{ .backend.service.name}} | ||
port: | ||
number: {{ .backend.service.port.number}} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
|
38 changes: 38 additions & 0 deletions
38
helm/ph-ee-engine/connector-mock-paymentschema/values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
service: | ||
apiversion: "v1" | ||
|
||
secret: | ||
apiversion: "v1" | ||
|
||
configmap: | ||
apiversion: "v1" | ||
|
||
mockpayment: | ||
enabled: false | ||
replicas: 1 | ||
image: docker.io/openmf/ph-ee-connector-mock-payment-schema:v1.0.0 | ||
imagePullPolicy: "Always" | ||
SPRING_PROFILES_ACTIVE: "" | ||
LOGGING_LEVEL_ROOT: "INFO" | ||
DFSPIDS: "" | ||
limits: | ||
memory: "512M" | ||
cpu: "500m" | ||
requests: | ||
memory: "512M" | ||
cpu: "100m" | ||
deployment: | ||
annotations: { } | ||
ingress: | ||
enabled: true | ||
annotations: { } | ||
# kubernetes.io/ingress.class: "nginx" | ||
pathtype: ImplementationSpecific | ||
hosts: | ||
- host: "" | ||
paths: | ||
- path: / | ||
tls: [ ] | ||
# - secretName: sandbox-secret | ||
# hosts: | ||
# - chart-example.local |