Skip to content

Commit

Permalink
[incubator/fluentd-cloudwatch] update apiVersion to be compatible wit…
Browse files Browse the repository at this point in the history
…h k8s >= 1.16 (helm#21660)

* update apiVersion in fluentd-cloudwatch helm to be compatible with k8s >= 1.16

Signed-off-by: Simone Marcato <simone@hevelop.com>

* fixed copy/paste error

Signed-off-by: Simone Marcato <simone@hevelop.com>
Signed-off-by: camelusluo <camelusluo@tencent.com>
  • Loading branch information
marcatos authored and camelusluo committed Jul 6, 2020
1 parent bdd68cb commit 18a8f07
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion incubator/fluentd-cloudwatch/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: fluentd-cloudwatch
version: 0.12.3
version: 0.13.0
appVersion: v1.7.3-debian-cloudwatch-1.0
description: A Fluentd CloudWatch Helm chart for Kubernetes.
home: https://www.fluentd.org/
Expand Down
4 changes: 4 additions & 0 deletions incubator/fluentd-cloudwatch/templates/daemonset.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{{- if .Capabilities.APIVersions.Has "apps/v1" }}
apiVersion: apps/v1
{{- else }}
apiVersion: extensions/v1beta1
{{- end }}
kind: DaemonSet
metadata:
name: {{ template "fluentd-cloudwatch.fullname" . }}
Expand Down
4 changes: 4 additions & 0 deletions incubator/fluentd-cloudwatch/templates/psp.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{{- if .Values.rbac.pspEnabled }}
{{- if .Capabilities.APIVersions.Has "policy/v1beta1" }}
apiVersion: policy/v1beta1
{{- else }}
apiVersion: extensions/v1beta1
{{- end }}
kind: PodSecurityPolicy
metadata:
name: {{ template "fluentd-cloudwatch.fullname" . }}
Expand Down

0 comments on commit 18a8f07

Please sign in to comment.