Skip to content

Commit 5930851

Browse files
committed
ref(charts): add apiversion checks to helm charts
1 parent fd3feba commit 5930851

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

charts/controller/Chart.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: controller
2-
home: https://github.com/deisthree/controller
2+
home: https://github.com/teamhephy/controller
33
version: <Will be populated by the ci before publishing the chart>
4-
description: Deis Workflow Controller (API).
4+
description: Hephy Workflow Controller (API).
55
maintainers:
6-
- name: Deis Team
7-
email: engineering@deis.com
6+
- email: team@teamhephy.com

charts/controller/templates/controller-deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1+
{{- if .Capabilities.APIVersions.Has "apps/v1" }}
12
apiVersion: apps/v1
3+
{{- else if .Capabilities.APIVersions.Has "extensions/v1beta1" }}
4+
apiVersion: extensions/v1beta1
5+
{{- else }}
6+
apiVersion: apps/v1
7+
{{- end }}
28
kind: Deployment
39
metadata:
410
name: deis-controller

0 commit comments

Comments
 (0)