Skip to content

Commit b944765

Browse files
CryptophobiaKingdon Barrett
authored andcommitted
ref(charts): add apiversion checks to helm charts
1 parent 77c6da2 commit b944765

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

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: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
apiVersion: {{ .Values.global.api_group }}
1+
{{- if .Capabilities.APIVersions.Has "apps/v1" }}
2+
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)