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
# 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.
version: 1.1.5
version: 1.2.0
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: v1.1.1
appVersion: v1.2.0
......@@ -69,7 +69,7 @@ Generate certificates for telegraf-operator mutating webhook
{{- $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 -}}
{{- $cert := genSignedCert ( include "telegraf-operator.fullname" . ) nil $altNames 365 $ca -}}
apiVersion: admissionregistration.k8s.io/v1beta1
apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
metadata:
annotations:
......@@ -85,6 +85,9 @@ webhooks:
path: /mutate-v1-pod
caBundle: {{ $ca.Cert | b64enc }}
failurePolicy: Ignore
sideEffects: None
admissionReviewVersions:
- 'v1'
name: telegraf.influxdata.com
rules:
- apiGroups:
......
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
labels:
......
{{- if eq .Values.certManager.enable true -}}
apiVersion: admissionregistration.k8s.io/v1beta1
apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
metadata:
annotations:
......@@ -14,6 +14,9 @@ webhooks:
namespace: {{ .Release.Namespace }}
path: /mutate-v1-pod
failurePolicy: Ignore
sideEffects: None
admissionReviewVersions:
- 'v1'
name: telegraf.influxdata.com
rules:
- 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