Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/portal/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "5.4"
description: CA API Developer Portal
name: portal
version: 2.3.21
version: 2.3.22
type: application
home: https://github.com/CAAPIM/apim-charts
maintainers:
Expand Down
1 change: 1 addition & 0 deletions charts/portal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ This section describes configurable parameters in **values.yaml**, there is also
| `ingress.type.kubernetes` | Create a Kubernetes Ingress Object | `true` |
| `ingress.type.openshift` | Create Openshift Services | `false` |
| `ingress.type.secretName` | Certificate Secret Name to be created | `dispatcher-tls` |
| `ingress.tls` | Enable or disable tls on the ingress rule | `true` |
| `ingress.create` | Deploy the Nginx subchart as part of this deployment. ***Note:-*** This is a third-party sub chart which is not supported/maintained by Layer7. Included only for reference/sample | `false` |
| `ingress.class.name` | Deploy the Nginx subchart with the specified name | `nginx` |
| `ingress.class.enabled` | Deploy the Nginx subchart with the specified name , if the flag is enabled | `true` |
Expand Down
4 changes: 1 addition & 3 deletions charts/portal/templates/dispatcher/dispatcher-tls.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{if not .Values.ingress.existingSecret}}
{{if and .Values.ingress.tls (not .Values.ingress.existingSecret) }}
apiVersion: v1
kind: Secret
metadata:
Expand All @@ -17,5 +17,3 @@ data:
tls.key: {{ include "dispatcher-ssl-key" . | b64enc | quote }}
{{ end }}
{{ end }}


4 changes: 3 additions & 1 deletion charts/portal/templates/ingress/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ metadata:
spec:
{{- if and (semverCompare ">=1.19-0" $kubeTargetVersion) (.Values.ingress.class.enabled) }}
ingressClassName: {{ .Values.ingress.class.name }}
{{- end }}
{{- end }}
{{- if .Values.ingress.tls }}
tls:
- secretName: {{ .Values.ingress.secretName }}
hosts:
- {{ include "get-ingress-hosts" . | quote }}
{{- end }}
rules:
- host: {{ include "default-tenant-host" . | quote }}
http:
Expand Down
6 changes: 4 additions & 2 deletions charts/portal/values-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ ingress:
type:
kubernetes: true
openshift: false
# enable/disable tls on ingress rule
tls: true
# existingSecret:
secretName: dispatcher-tls
## To install ingress-nginx controller during Portal deployment set to true and see Subcharts section for configuration options
Expand Down Expand Up @@ -346,8 +348,8 @@ dispatcher:
# values:
# - dispatcher
# topologyKey: "kubernetes.io/hostname"
# If you want to specify Probe - readiness and/or liveness probe, uncomment below sections and update.
# If none specified, default HTTP GET request is used for both readiness and liveness probe
# If you want to specify Probe - readiness and/or liveness probe, uncomment below sections and update.
# If none specified, default HTTP GET request is used for both readiness and liveness probe
# readinessProbe:
# exec:
# command: [sh, /opt/diagnostic/health_check.sh]
Expand Down
2 changes: 2 additions & 0 deletions charts/portal/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ ingress:
type:
kubernetes: true
openshift: false
# enable/disable tls on ingress rule
tls: true
# existingSecret:
secretName: dispatcher-tls
## Deploy an nginx-ingress controller as part of this deployment. See Subcharts section for configuration options
Expand Down