Skip to content

Commit

Permalink
Add crd-install helm hook to crds templates
Browse files Browse the repository at this point in the history
  • Loading branch information
smoya authored and markmandel committed Nov 13, 2018
1 parent cf14773 commit 6cc1c20
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 3 deletions.
4 changes: 3 additions & 1 deletion install/helm/agones/templates/crds/fleet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ metadata:
chart: {{ template "agones.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
annotations:
"helm.sh/hook": "crd-install"
spec:
group: stable.agones.dev
version: v1alpha1
Expand Down Expand Up @@ -56,4 +58,4 @@ spec:
- Recreate
- RollingUpdate
template:
{{- include "gameserver.validation" . | indent 14 }}
{{- include "gameserver.validation" . | indent 14 }}
2 changes: 2 additions & 0 deletions install/helm/agones/templates/crds/fleetallocation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ metadata:
chart: {{ template "agones.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
annotations:
"helm.sh/hook": "crd-install"
spec:
group: stable.agones.dev
version: v1alpha1
Expand Down
2 changes: 2 additions & 0 deletions install/helm/agones/templates/crds/fleetautoscaler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ metadata:
chart: {{ template "agones.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
annotations:
"helm.sh/hook": "crd-install"
spec:
group: stable.agones.dev
version: v1alpha1
Expand Down
4 changes: 3 additions & 1 deletion install/helm/agones/templates/crds/gameserver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ metadata:
chart: {{ template "agones.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
annotations:
"helm.sh/hook": "crd-install"
spec:
group: stable.agones.dev
version: v1alpha1
Expand All @@ -34,4 +36,4 @@ spec:
singular: gameserver
validation:
openAPIV3Schema:
{{- include "gameserver.validation" . | indent 6 }}
{{- include "gameserver.validation" . | indent 6 }}
4 changes: 3 additions & 1 deletion install/helm/agones/templates/crds/gameserverset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ metadata:
chart: {{ template "agones.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
annotations:
"helm.sh/hook": "crd-install"
spec:
group: stable.agones.dev
version: v1alpha1
Expand Down Expand Up @@ -50,4 +52,4 @@ spec:
- Packed
- Distributed
template:
{{- include "gameserver.validation" . | indent 14 }}
{{- include "gameserver.validation" . | indent 14 }}
13 changes: 13 additions & 0 deletions install/yaml/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ metadata:
chart: agones-0.6.0-rc
release: agones-manual
heritage: Tiller
annotations:
"helm.sh/hook": "crd-install"
spec:
group: stable.agones.dev
version: v1alpha1
Expand Down Expand Up @@ -301,6 +303,7 @@ spec:
type: integer
minimum: 1
maximum: 2147483648

---
# Source: agones/templates/crds/fleetallocation.yaml
# Copyright 2018 Google Inc. All Rights Reserved.
Expand All @@ -327,6 +330,8 @@ metadata:
chart: agones-0.6.0-rc
release: agones-manual
heritage: Tiller
annotations:
"helm.sh/hook": "crd-install"
spec:
group: stable.agones.dev
version: v1alpha1
Expand Down Expand Up @@ -376,6 +381,8 @@ metadata:
chart: agones-0.6.0-rc
release: agones-manual
heritage: Tiller
annotations:
"helm.sh/hook": "crd-install"
spec:
group: stable.agones.dev
version: v1alpha1
Expand Down Expand Up @@ -444,6 +451,8 @@ metadata:
chart: agones-0.6.0-rc
release: agones-manual
heritage: Tiller
annotations:
"helm.sh/hook": "crd-install"
spec:
group: stable.agones.dev
version: v1alpha1
Expand Down Expand Up @@ -560,6 +569,7 @@ spec:
type: integer
minimum: 1
maximum: 2147483648

---
# Source: agones/templates/crds/gameserverset.yaml
# Copyright 2018 Google Inc. All Rights Reserved.
Expand All @@ -586,6 +596,8 @@ metadata:
chart: agones-0.6.0-rc
release: agones-manual
heritage: Tiller
annotations:
"helm.sh/hook": "crd-install"
spec:
group: stable.agones.dev
version: v1alpha1
Expand Down Expand Up @@ -718,6 +730,7 @@ spec:
type: integer
minimum: 1
maximum: 2147483648

---
# Source: agones/templates/service.yaml
# Copyright 2018 Google Inc. All Rights Reserved.
Expand Down

0 comments on commit 6cc1c20

Please sign in to comment.