Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add crd-install helm hook to crds templates #375

Merged
merged 2 commits into from
Nov 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then this needs to be regenerated.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

"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