Unverified Commit 90681f8c authored by Yurii Matsiuk's avatar Yurii Matsiuk Committed by GitHub

[telegraf-operator] Fix deprecation warnings (#319)

parent 0b7a0a1c
...@@ -31,8 +31,8 @@ type: application ...@@ -31,8 +31,8 @@ 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.5 version: 1.2.0
# 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.
appVersion: v1.1.1 appVersion: v1.2.0
...@@ -63,13 +63,13 @@ Create the name of the service account to use ...@@ -63,13 +63,13 @@ Create the name of the service account to use
{{- end -}} {{- end -}}
{{/* {{/*
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.fullname" .) .Release.Namespace ) ( printf "%s.%s.svc" (include "telegraf-operator.fullname" .) .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.fullname" . ) nil $altNames 365 $ca -}} {{- $cert := genSignedCert ( include "telegraf-operator.fullname" . ) nil $altNames 365 $ca -}}
apiVersion: admissionregistration.k8s.io/v1beta1 apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration kind: MutatingWebhookConfiguration
metadata: metadata:
annotations: annotations:
...@@ -85,6 +85,9 @@ webhooks: ...@@ -85,6 +85,9 @@ webhooks:
path: /mutate-v1-pod path: /mutate-v1-pod
caBundle: {{ $ca.Cert | b64enc }} caBundle: {{ $ca.Cert | b64enc }}
failurePolicy: Ignore failurePolicy: Ignore
sideEffects: None
admissionReviewVersions:
- 'v1'
name: telegraf.influxdata.com name: telegraf.influxdata.com
rules: rules:
- apiGroups: - apiGroups:
......
apiVersion: rbac.authorization.k8s.io/v1beta1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding kind: ClusterRoleBinding
metadata: metadata:
labels: labels:
......
{{- if eq .Values.certManager.enable true -}} {{- if eq .Values.certManager.enable true -}}
apiVersion: admissionregistration.k8s.io/v1beta1 apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration kind: MutatingWebhookConfiguration
metadata: metadata:
annotations: annotations:
...@@ -14,6 +14,9 @@ webhooks: ...@@ -14,6 +14,9 @@ webhooks:
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
path: /mutate-v1-pod path: /mutate-v1-pod
failurePolicy: Ignore failurePolicy: Ignore
sideEffects: None
admissionReviewVersions:
- 'v1'
name: telegraf.influxdata.com name: telegraf.influxdata.com
rules: rules:
- apiGroups: - apiGroups:
......
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