Skip to content

Commit 710d423

Browse files
authored
feat(cert-manager-webhook): add listenport variable (#20)
* feat(cert-manager-webhook): add listenPort variable
1 parent 6cc0561 commit 710d423

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

charts/scaleway-certmanager-webhook/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ apiVersion: v2
22
appVersion: "v0.1.0"
33
description: Cert-Manager webhook for Scaleway
44
name: scaleway-certmanager-webhook
5-
version: 0.3.0
5+
version: 0.4.0

charts/scaleway-certmanager-webhook/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Common parameters.
4646
| `extraEnv` | Additional environment variables to pass to the webhook deployment | `[]` |
4747
| `service.type` | Service type exposing the webhook | `ClusterIP` |
4848
| `service.port` | Service port exposing the webhook | `443` |
49+
| `listenPort` | Port the webhook listens on | `443` |
4950
| `resources` | Resources definition | `{}` |
5051
| `podLabels` | Pod labels | `{}` |
5152
| `nodeSelector` | Node selector | `{}` |

charts/scaleway-certmanager-webhook/templates/deployment.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ spec:
3434
args:
3535
- --tls-cert-file=/tls/tls.crt
3636
- --tls-private-key-file=/tls/tls.key
37+
- --secure-port={{ .Values.listenPort }}
3738
env:
3839
- name: GROUP_NAME
3940
value: {{ .Values.groupName | quote }}
@@ -47,7 +48,7 @@ spec:
4748
{{- end }}
4849
ports:
4950
- name: https
50-
containerPort: 443
51+
containerPort: {{ .Values.listenPort }}
5152
protocol: TCP
5253
livenessProbe:
5354
httpGet:

charts/scaleway-certmanager-webhook/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ extraEnv: []
5656
# - name: SOME_VAR
5757
# value: 'some value'
5858

59+
## @param listenPort Port the webhook listens on
60+
listenPort: 443
61+
5962
## @param service.type Service type exposing the webhook
6063
## @param service.port Service port exposing the webhook
6164
service:

0 commit comments

Comments
 (0)