agones.dev/agones@v1.53.0/install/helm/agones/templates/hooks/scripts.yaml (about) 1 {{- if .Values.agones.crds.cleanupOnDelete }} 2 # Copyright 2018 Google LLC All Rights Reserved. 3 # 4 # Licensed under the Apache License, Version 2.0 (the "License"); 5 # you may not use this file except in compliance with the License. 6 # You may obtain a copy of the License at 7 # 8 # http://www.apache.org/licenses/LICENSE-2.0 9 # 10 # Unless required by applicable law or agreed to in writing, software 11 # distributed under the License is distributed on an "AS IS" BASIS, 12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 # See the License for the specific language governing permissions and 14 # limitations under the License. 15 16 apiVersion: v1 17 kind: ConfigMap 18 metadata: 19 name: delete-agones-resources 20 namespace: {{ .Release.Namespace }} 21 labels: 22 app.kubernetes.io/managed-by: {{.Release.Service | quote }} 23 app.kubernetes.io/instance: {{.Release.Name | quote }} 24 helm.sh/chart: "{{.Chart.Name}}-{{.Chart.Version}}" 25 annotations: 26 "helm.sh/hook": pre-delete 27 "helm.sh/hook-weight": "-3" 28 "helm.sh/hook-delete-policy": before-hook-creation 29 data: 30 delete_agones_resources.sh: | 31 {{ .Files.Get "scripts/delete_agones_resources.sh" | indent 4 }} 32 {{- end }}