Skip to content

Commit

Permalink
Fixed test-install-yaml.
Browse files Browse the repository at this point in the history
  • Loading branch information
EricFortin committed Dec 2, 2018
1 parent 435f878 commit fbdb3fa
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ push-agones-sdk-image: $(ensure-build-image)
gen-install: $(ensure-build-image)
docker run --rm $(common_mounts) $(DOCKER_RUN_ARGS) $(build_tag) bash -c \
'helm template --name=agones-manual --namespace agones-system $(mount_path)/install/helm/agones \
--set agones.controller.generateTLS=false \
--set agones.controller.generateTLS=false --set agones.enableHelmCleanupHooks=false \
> $(mount_path)/install/yaml/install.yaml'

# Generate the SDK gRPC server and client code
Expand Down
4 changes: 3 additions & 1 deletion install/helm/agones/templates/hooks/post_delete_hook.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.agones.enableHelmCleanupHooks }}
# Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -44,4 +45,5 @@ spec:
volumes:
- name: script
configMap:
name: delete-crds
name: delete-crds
{{- end }}
4 changes: 3 additions & 1 deletion install/helm/agones/templates/hooks/pre_delete_hook.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.agones.enableHelmCleanupHooks }}
# Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -49,4 +50,5 @@ spec:
volumes:
- name: script
configMap:
name: delete-agones-resources
name: delete-agones-resources
{{- end }}
2 changes: 2 additions & 0 deletions install/helm/agones/templates/hooks/sa.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.agones.enableHelmCleanupHooks }}
# Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -75,3 +76,4 @@ roleRef:
kind: ClusterRole
name: helm-hook-cleanup
{{- end }}
{{- end }}
4 changes: 3 additions & 1 deletion install/helm/agones/templates/hooks/scripts.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.agones.enableHelmCleanupHooks }}
# Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -42,4 +43,5 @@ metadata:
"helm.sh/hook-delete-policy": before-hook-creation
data:
delete_agones_resources.sh: |
{{ .Files.Get "scripts/delete_agones_resources.sh" | indent 4 }}
{{ .Files.Get "scripts/delete_agones_resources.sh" | indent 4 }}
{{- end }}
1 change: 1 addition & 0 deletions install/helm/agones/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

agones:
rbacEnabled: true
enableHelmCleanupHooks: true
serviceaccount:
controller: agones-controller
sdk: agones-sdk
Expand Down
12 changes: 12 additions & 0 deletions install/yaml/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,18 @@ spec:
secret:
secretName: agones-manual-cert

---
# Source: agones/templates/hooks/post_delete_hook.yaml

---
# Source: agones/templates/hooks/pre_delete_hook.yaml

---
# Source: agones/templates/hooks/sa.yaml

---
# Source: agones/templates/hooks/scripts.yaml

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

0 comments on commit fbdb3fa

Please sign in to comment.