Skip to content

Commit b1b2a6f

Browse files
authored
feat(cert-manager-webhook): support dual stack clusters (#23)
1 parent 710d423 commit b1b2a6f

File tree

3 files changed

+32
-20
lines changed

3 files changed

+32
-20
lines changed

charts/scaleway-certmanager-webhook/README.md

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,25 @@ Configuration parameters.
3434

3535
Common parameters.
3636

37-
| Name | Description | Value |
38-
| ------------------------ | ------------------------------------------------------------------ | ---------------------------------------- |
39-
| `nameOverride` | Override charts name | `""` |
40-
| `fullnameOverride` | Override charts and release name | `""` |
41-
| `replicaCount` | Number of replica | `1` |
42-
| `image.repository` | Repository for the webhook image | `scaleway/cert-manager-webhook-scaleway` |
43-
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
44-
| `image.imagePullSecrets` | Image pull secrets | `[]` |
45-
| `image.tag` | Tag for the webhook image, defaults to AppVersion | `""` |
46-
| `extraEnv` | Additional environment variables to pass to the webhook deployment | `[]` |
47-
| `service.type` | Service type exposing the webhook | `ClusterIP` |
48-
| `service.port` | Service port exposing the webhook | `443` |
49-
| `listenPort` | Port the webhook listens on | `443` |
50-
| `resources` | Resources definition | `{}` |
51-
| `podLabels` | Pod labels | `{}` |
52-
| `nodeSelector` | Node selector | `{}` |
53-
| `tolerations` | Tolerations | `[]` |
54-
| `affinity` | Affinities | `{}` |
55-
| `securityContext` | Container securityContext | `{}` |
56-
| `podSecurityContext` | Pod securityContext | `{}` |
37+
| Name | Description | Value |
38+
| ------------------------ | ----------------------------------------------------------------------- | ---------------------------------------- |
39+
| `nameOverride` | Override charts name | `""` |
40+
| `fullnameOverride` | Override charts and release name | `""` |
41+
| `replicaCount` | Number of replica | `1` |
42+
| `image.repository` | Repository for the webhook image | `scaleway/cert-manager-webhook-scaleway` |
43+
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
44+
| `image.imagePullSecrets` | Image pull secrets | `[]` |
45+
| `image.tag` | Tag for the webhook image, defaults to AppVersion | `""` |
46+
| `extraEnv` | Additional environment variables to pass to the webhook deployment | `[]` |
47+
| `service.type` | Service type exposing the webhook | `ClusterIP` |
48+
| `service.port` | Service port exposing the webhook | `443` |
49+
| `listenPort` | Port the webhook listens on | `443` |
50+
| `service.ipFamilyPolicy` | Service ipFamilyPolicy set the ip family policy to configure dual-stack | `""` |
51+
| `service.ipFamilies` | Service ipFamilies. Can be IPv4 and/or IPv6. | `[]` |
52+
| `resources` | Resources definition | `{}` |
53+
| `podLabels` | Pod labels | `{}` |
54+
| `nodeSelector` | Node selector | `{}` |
55+
| `tolerations` | Tolerations | `[]` |
56+
| `affinity` | Affinities | `{}` |
57+
| `securityContext` | Container securityContext | `{}` |
58+
| `podSecurityContext` | Pod securityContext | `{}` |

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ metadata:
99
heritage: {{ .Release.Service }}
1010
spec:
1111
type: {{ .Values.service.type }}
12+
{{- if .Values.service.ipFamilyPolicy }}
13+
ipFamilyPolicy: {{ .Values.service.ipFamilyPolicy }}
14+
{{- end }}
15+
{{- if .Values.service.ipFamilies }}
16+
ipFamilies: {{ .Values.service.ipFamilies | toYaml | nindent 2 }}
17+
{{- end }}
1218
ports:
1319
- port: {{ .Values.service.port }}
1420
targetPort: https

charts/scaleway-certmanager-webhook/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,13 @@ listenPort: 443
6161

6262
## @param service.type Service type exposing the webhook
6363
## @param service.port Service port exposing the webhook
64+
## @param service.ipFamilyPolicy Service ipFamilyPolicy set the ip family policy to configure dual-stack
65+
## @param service.ipFamilyPolicy Service ipFamilies. Can be IPv4 and/or IPv6.
6466
service:
6567
type: ClusterIP
6668
port: 443
69+
ipFamilyPolicy: ""
70+
ipFamilies: []
6771

6872
## @param resources Resources definition
6973
resources: {}

0 commit comments

Comments
 (0)