Skip to content

Commit

Permalink
ref(charts): add apiversion checks to helm charts
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryptophobia committed Oct 21, 2019
1 parent fd3feba commit 5930851
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 3 additions & 4 deletions charts/controller/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: controller
home: https://github.com/deisthree/controller
home: https://github.com/teamhephy/controller
version: <Will be populated by the ci before publishing the chart>
description: Deis Workflow Controller (API).
description: Hephy Workflow Controller (API).
maintainers:
- name: Deis Team
email: engineering@deis.com
- email: team@teamhephy.com
6 changes: 6 additions & 0 deletions charts/controller/templates/controller-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{{- if .Capabilities.APIVersions.Has "apps/v1" }}
apiVersion: apps/v1
{{- else if .Capabilities.APIVersions.Has "extensions/v1beta1" }}
apiVersion: extensions/v1beta1
{{- else }}
apiVersion: apps/v1
{{- end }}
kind: Deployment
metadata:
name: deis-controller
Expand Down

0 comments on commit 5930851

Please sign in to comment.