-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy path13-shoot-testrun.yaml
More file actions
74 lines (66 loc) · 1.68 KB
/
13-shoot-testrun.yaml
File metadata and controls
74 lines (66 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Gardener contributors
#
# SPDX-License-Identifier: Apache-2.0
# Testrun CRs will be created by Testmachinery controllers, by CI/CD jobs or manually to run e.g. single tests.
apiVersion: testmachinery.sapcloud.io/v1beta1
kind: Testrun
metadata:
generateName: integration-
namespace: default
spec:
locationSets:
- name: default
default: true
locations:
- type: git
repo: https://github.com/gardener/gardener.git
revision: master
- type: git
repo: https://github.com/your/git/repo.git
revision: master
kubeconfigs:
gardener: #base64 heredoc kubeconfig
config:
- name: PROJECT_NAMESPACE
type: env
value: garden-core
- name: SHOOT_NAME
type: env
value: my-shoot-name
- name: CLOUDPROVIDER
type: env
value: gcp
- name: K8S_VERSION
type: env
value: 1.14.3
# the execution flow:
testflow:
- name: create-shoot
definition:
name: create-shoot
config: # for more options see https://github.com/gardener/gardener/blob/master/.test-defs/cmd/create-shoot/main.go
- name: CLOUDPROFILE
type: env
value: gcp
- name: SECRET_BINDING
type: env
value: core-gcp-gcp
- name: REGION
type: env
value: europe-west1
- name: ZONE
type: env
value: europe-west1-a
- name: test
dependsOn: [ create-shoot ]
definition:
name: your-testdef-name
- name: delete-shoot
dependsOn: [ tests ]
definition:
name: delete-shoot
onExit:
- name: delete-shoot
definition:
name: delete-shoot
condition: error