agones.dev/agones@v1.53.0/install/helm/agones/templates/tests/test-runner.yaml (about) 1 {{- if .Values.helm.installTests }} 2 # Copyright 2020 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: Pod 18 metadata: 19 name: "{{ .Release.Name }}-test" 20 namespace: agones-system 21 annotations: 22 "helm.sh/hook": test-success 23 "helm.sh/hook-delete-policy": hook-succeeded 24 spec: 25 serviceAccountName: agones-controller 26 containers: 27 - name: create-gameserver 28 image: us-docker.pkg.dev/agones-images/examples/crd-client:0.22 29 imagePullPolicy: Always 30 env: 31 - name: GAMESERVER_IMAGE 32 value: "us-docker.pkg.dev/agones-images/examples/simple-game-server:0.39" 33 - name: IS_HELM_TEST 34 value: "true" 35 - name: GAMESERVERS_NAMESPACE 36 value: "{{ index .Values.gameservers.namespaces 0 }}" 37 restartPolicy: Never 38 {{- end }}