Unverified Commit 7443f364 authored by Dominik Rosiek's avatar Dominik Rosiek Committed by GitHub

Use fullname template for certificate name (#168)

parent 31885898
...@@ -31,7 +31,7 @@ type: application ...@@ -31,7 +31,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes # This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version. # to the chart and its templates, including the app version.
version: 1.1.0 version: 1.1.1
# This is the version number of the application being deployed. This version number should be # This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. # incremented each time you make changes to the application.
......
...@@ -66,9 +66,9 @@ Create the name of the service account to use ...@@ -66,9 +66,9 @@ Create the name of the service account to use
Generate certificates for telegraf-operator mutating webhook Generate certificates for telegraf-operator mutating webhook
*/}} */}}
{{- define "telegraf-operator.non_certmanager" -}} {{- define "telegraf-operator.non_certmanager" -}}
{{- $altNames := list ( printf "%s.%s" (include "telegraf-operator.name" .) .Release.Namespace ) ( printf "%s.%s.svc" (include "telegraf-operator.name" .) .Release.Namespace ) -}} {{- $altNames := list ( printf "%s.%s" (include "telegraf-operator.fullname" .) .Release.Namespace ) ( printf "%s.%s.svc" (include "telegraf-operator.fullname" .) .Release.Namespace ) -}}
{{- $ca := genCA "telegraf-operator-ca" 365 -}} {{- $ca := genCA "telegraf-operator-ca" 365 -}}
{{- $cert := genSignedCert ( include "telegraf-operator.name" . ) nil $altNames 365 $ca -}} {{- $cert := genSignedCert ( include "telegraf-operator.fullname" . ) nil $altNames 365 $ca -}}
apiVersion: admissionregistration.k8s.io/v1beta1 apiVersion: admissionregistration.k8s.io/v1beta1
kind: MutatingWebhookConfiguration kind: MutatingWebhookConfiguration
metadata: metadata:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment