Skip to content

Commit

Permalink
GOV-301: add ingress for mock payment schema (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadasfynarfin authored Aug 17, 2023
1 parent 739e451 commit 5aa4f63
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 0 deletions.
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 helm/ph-ee-engine/connector-mock-paymentschema/values.yaml
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

0 comments on commit 5aa4f63

Please sign in to comment.