Skip to content

Commit 2cb15fb

Browse files
committed
[rollout-operator] Unset default webhooks.selfSignedCertSecretName and use chart's fullname
Signed-off-by: tanner <[email protected]>
1 parent f1d9e74 commit 2cb15fb

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

charts/rollout-operator/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: rollout-operator
33
description: "Grafana rollout-operator"
44
type: application
5-
version: 0.37.1
5+
version: 0.38.0
66
appVersion: v0.32.0
77
home: https://github.com/grafana/rollout-operator
88
kubeVersion: ^1.10.0-0

charts/rollout-operator/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Helm chart for deploying [Grafana rollout-operator](https://github.com/grafana/r
44

55
# rollout-operator
66

7-
![Version: 0.37.1](https://img.shields.io/badge/Version-0.37.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.32.0](https://img.shields.io/badge/AppVersion-v0.32.0-informational?style=flat-square)
7+
![Version: 0.38.0](https://img.shields.io/badge/Version-0.38.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.32.0](https://img.shields.io/badge/AppVersion-v0.32.0-informational?style=flat-square)
88

99
Grafana rollout-operator
1010

@@ -85,4 +85,4 @@ Manually applying these CRDs is only required if upgrading from a chart <= v0.32
8585
| tolerations | list | `[]` | |
8686
| webhooks.enabled | bool | `true` | Enable the rollout-operator webhooks. See https://github.com/grafana/rollout-operator/#webhooks. Note that the webhooks require custom resource definitions. If upgrading, manually apply the files in the `crds` directory. |
8787
| webhooks.failurePolicy | string | `"Fail"` | Validating and mutating webhook failure policy. `Ignore` or `Fail`. |
88-
| webhooks.selfSignedCertSecretName | string | `"certificate"` | Secret resource name for the TLS certificate to be used with the webhooks |
88+
| webhooks.selfSignedCertSecretName | string | `""` | Secret resource name for the TLS certificate to be used with the webhooks |

charts/rollout-operator/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ spec:
5353
- -kubernetes.namespace={{ .Release.Namespace }}
5454
{{- if .Values.webhooks.enabled }}
5555
- -server-tls.enabled=true
56-
- -server-tls.self-signed-cert.secret-name={{ .Values.webhooks.selfSignedCertSecretName }}
56+
- -server-tls.self-signed-cert.secret-name={{ .Values.webhooks.selfSignedCertSecretName | default (include "rollout-operator.fullname" . ) }}
5757
- -server-tls.self-signed-cert.dns-name={{ include "rollout-operator.fullname" . }}.{{ .Release.Namespace }}.svc
5858
{{- end }}
5959
{{- range .Values.extraArgs }}

charts/rollout-operator/templates/webhook-role.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ rules:
1313
- update
1414
- get
1515
resourceNames:
16-
- {{ .Values.webhooks.selfSignedCertSecretName }}
16+
- {{ .Values.webhooks.selfSignedCertSecretName | default (include "rollout-operator.fullname" . ) }}
1717
- apiGroups:
1818
- ""
1919
resources:

charts/rollout-operator/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,4 @@ webhooks:
107107
# -- Validating and mutating webhook failure policy. `Ignore` or `Fail`.
108108
failurePolicy: "Fail"
109109
# -- Secret resource name for the TLS certificate to be used with the webhooks
110-
selfSignedCertSecretName: "certificate"
110+
selfSignedCertSecretName: ""

0 commit comments

Comments
 (0)