Skip to content

Commit

Permalink
[stable/chaoskube] Support K8S older then 1.9 (helm#7195)
Browse files Browse the repository at this point in the history
* Support K8S older then 1.9

* Use APIVersion

* Go the other direction

Signed-off-by: Marek Bartik <mab@revolgy.com>
Signed-off-by: Marek Bartik <bartimar6@gmail.com>
  • Loading branch information
shaikatz authored and marekaf committed Sep 4, 2018
1 parent 9ccff56 commit 341cedd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/chaoskube/Chart.yaml
@@ -1,6 +1,6 @@
apiVersion: v1
name: chaoskube
version: 0.9.0
version: 0.9.1
appVersion: 0.9.0
description: Chaoskube periodically kills random pods in your Kubernetes cluster.
home: https://github.com/linki/chaoskube
Expand Down
4 changes: 4 additions & 0 deletions stable/chaoskube/templates/deployment.yaml
@@ -1,4 +1,8 @@
{{- if .Capabilities.APIVersions.Has "apps/v1beta1" }}
apiVersion: apps/v1beta1
{{- else }}
apiVersion: apps/v1
{{- end }}
kind: Deployment
metadata:
name: {{ include "chaoskube.fullname" . }}
Expand Down

0 comments on commit 341cedd

Please sign in to comment.