/
gcp-ci.yaml
126 lines (121 loc) · 5.44 KB
/
gcp-ci.yaml
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
---
# E2E test scenario using local dev images and manifests built from the source tree for following providers:
# - cluster-api
# - bootstrap kubeadm
# - control-plane kubeadm
# - gcp
managementClusterName: capg-e2e
images:
# Use local dev images built source tree;
- name: gcr.io/k8s-staging-cluster-api-gcp/cluster-api-gcp-controller:e2e
loadBehavior: mustLoad
providers:
- name: cluster-api
type: CoreProvider
versions:
- name: v1.6.2
value: https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.6.2/core-components.yaml
type: url
files:
- sourcePath: "../data/shared/v1beta1/metadata.yaml"
replacements:
- old: "imagePullPolicy: Always"
new: "imagePullPolicy: IfNotPresent"
- old: "--leader-elect"
new: "--leader-elect=false"
- name: kubeadm
type: BootstrapProvider
versions:
- name: v1.6.2
value: https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.6.2/bootstrap-components.yaml
type: url
files:
- sourcePath: "../data/shared/v1beta1/metadata.yaml"
replacements:
- old: "imagePullPolicy: Always"
new: "imagePullPolicy: IfNotPresent"
- old: "--leader-elect"
new: "--leader-elect=false"
- name: kubeadm
type: ControlPlaneProvider
versions:
- name: v1.6.2
value: https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.6.2/control-plane-components.yaml
type: url
files:
- sourcePath: "../data/shared/v1beta1/metadata.yaml"
replacements:
- old: "imagePullPolicy: Always"
new: "imagePullPolicy: IfNotPresent"
- old: "--leader-elect"
new: "--leader-elect=false"
- name: gcp
type: InfrastructureProvider
versions:
- name: v1.6.99 # next; use manifest from source files
value: "${PWD}/config/default"
files:
- sourcePath: "${PWD}/metadata.yaml"
targetName: "metadata.yaml"
- sourcePath: "${PWD}/test/e2e/data/infrastructure-gcp/cluster-template-ci.yaml"
targetName: "cluster-template.yaml"
- sourcePath: "${PWD}/test/e2e/data/infrastructure-gcp/cluster-template-prow-ci-version.yaml"
targetName: "cluster-template-conformance-ci-artifacts.yaml"
- sourcePath: "${PWD}/test/e2e/data/infrastructure-gcp/cluster-template-upgrades.yaml"
- sourcePath: "${PWD}/test/e2e/data/infrastructure-gcp/cluster-template-md-remediation.yaml"
- sourcePath: "${PWD}/test/e2e/data/infrastructure-gcp/cluster-template-kcp-remediation.yaml"
- sourcePath: "${PWD}/test/e2e/data/infrastructure-gcp/cluster-template-topology.yaml"
- sourcePath: "${PWD}/test/e2e/data/infrastructure-gcp/clusterclass-quick-start.yaml"
- sourcePath: "${PWD}/test/e2e/data/infrastructure-gcp/cluster-template-ci-with-creds.yaml"
- sourcePath: "${PWD}/test/e2e/data/infrastructure-gcp/cluster-template-ci-gke.yaml"
- sourcePath: "${PWD}/test/e2e/data/infrastructure-gcp/cluster-template-ci-gke-autopilot.yaml"
- sourcePath: "${PWD}/test/e2e/data/infrastructure-gcp/cluster-template-ci-gke-custom-subnet.yaml"
variables:
KUBERNETES_VERSION: "${KUBERNETES_VERSION:-v1.28.3}"
KUBERNETES_VERSION_MANAGEMENT: "v1.28.0"
ETCD_VERSION_UPGRADE_TO: "3.5.1-0"
COREDNS_VERSION_UPGRADE_TO: "v1.8.6"
KUBERNETES_IMAGE_UPGRADE_FROM: "projects/k8s-staging-cluster-api-gcp/global/images/cluster-api-ubuntu-2204-v1-27-3-nightly"
KUBERNETES_IMAGE_UPGRADE_TO: "projects/k8s-staging-cluster-api-gcp/global/images/cluster-api-ubuntu-2204-v1-28-3-nightly"
CONTROL_PLANE_MACHINE_TEMPLATE_UPGRADE_TO: "cp-k8s-upgrade-and-conformance"
WORKERS_MACHINE_TEMPLATE_UPGRADE_TO: "worker-k8s-upgrade-and-conformance"
KUBERNETES_VERSION_UPGRADE_TO: "${KUBERNETES_VERSION_UPGRADE_TO:-v1.28.3}"
KUBERNETES_VERSION_UPGRADE_FROM: "${KUBERNETES_VERSION_UPGRADE_FROM:-v1.27.3}"
EXP_CLUSTER_RESOURCE_SET: "true"
CLUSTER_TOPOLOGY: "true"
# Cluster Addons
CNI: "${PWD}/test/e2e/data/cni/calico/calico.yaml"
CCM: "${PWD}/test/e2e/data/ccm/gce-cloud-controller-manager.yaml"
GCP_CONTROL_PLANE_MACHINE_TYPE: n1-standard-2
GCP_NODE_MACHINE_TYPE: n1-standard-2
CONFORMANCE_WORKER_MACHINE_COUNT: "2"
CONFORMANCE_CONTROL_PLANE_MACHINE_COUNT: "${CONFORMANCE_CONTROL_PLANE_MACHINE_COUNT:-1}"
CONFORMANCE_NODES: "${CONFORMANCE_NODES:-4}"
KUBETEST_CONFIGURATION: "${PWD}/test/e2e/data/kubetest/conformance.yaml"
IMAGE_ID: "${IMAGE_ID}"
IP_FAMILY: "IPv4"
EXP_CAPG_GKE: "true"
EXP_MACHINE_POOL: "true"
GKE_MACHINE_POOL_MIN: "1"
GKE_MACHINE_POOL_MAX: "2"
CAPG_LOGLEVEL: "4"
intervals:
default/wait-controllers: ["5m", "10s"]
default/wait-cluster: ["20m", "10s"]
default/wait-private-cluster: ["30m", "10s"]
default/wait-control-plane: ["20m", "10s"]
default/wait-control-plane-ha: ["30m", "10s"]
default/wait-worker-nodes: ["25m", "10s"]
default/wait-gpu-nodes: ["30m", "10s"]
default/wait-delete-cluster: ["30m", "10s"]
default/wait-machine-upgrade: ["60m", "10s"]
default/wait-machine-pool-upgrade: ["60m", "10s"]
default/wait-machine-remediation: ["30m", "10s"]
default/wait-deployment: ["15m", "10s"]
default/wait-daemonset: ["15m", "10s"]
default/wait-deployment-available: ["15m", "10s"]
default/wait-job: ["5m", "10s"]
default/wait-service: ["15m", "10s"]
default/wait-machine-pool-nodes: ["30m", "10s"]
default/wait-nsg-update: ["20m", "10s"]
node-drain/wait-machine-deleted: ["10m", "10s"]