-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
e2e framework: Add conformance testing to test framework
- Loading branch information
Naadir Jeewa
committed
Sep 3, 2020
1 parent
3462a5c
commit 73e9d34
Showing
61 changed files
with
2,655 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
--- | ||
# E2E test scenario using local dev images and manifests built from the source tree for following providers: | ||
# - cluster-api | ||
# - bootstrap kubeadm | ||
# - control-plane kubeadm | ||
# - docker | ||
|
||
# For creating local dev images built from the source tree; | ||
# - `make docker-build REGISTRY=gcr.io/k8s-staging-cluster-api` to build the cluster-api, bootstrap kubeadm, control-plane kubeadm provider images. | ||
# - `make -C test/infrastructure/docker docker-build REGISTRY=gcr.io/k8s-staging-cluster-api` to build the docker provider images. | ||
|
||
images: | ||
# Use local dev images built source tree; | ||
- name: gcr.io/k8s-staging-cluster-api/cluster-api-controller-amd64:dev | ||
loadBehavior: mustLoad | ||
- name: gcr.io/k8s-staging-cluster-api/kubeadm-bootstrap-controller-amd64:dev | ||
loadBehavior: mustLoad | ||
- name: gcr.io/k8s-staging-cluster-api/kubeadm-control-plane-controller-amd64:dev | ||
loadBehavior: mustLoad | ||
- name: gcr.io/k8s-staging-cluster-api/capd-manager-amd64:dev | ||
loadBehavior: mustLoad | ||
- name: quay.io/jetstack/cert-manager-cainjector:v0.16.1 | ||
loadBehavior: tryLoad | ||
- name: quay.io/jetstack/cert-manager-webhook:v0.16.1 | ||
loadBehavior: tryLoad | ||
- name: quay.io/jetstack/cert-manager-controller:v0.16.1 | ||
loadBehavior: tryLoad | ||
# If using Calico uncomment following lines to speed up test by pre-loading required images on nodes | ||
# - name: calico/kube-controllers:v3.13.1 | ||
# loadBehavior: tryLoad | ||
# - name: calico/cni:v3.13.1 | ||
# loadBehavior: tryLoad | ||
# - name: calico/pod2daemon-flexvol:v3.13.1 | ||
# loadBehavior: tryLoad | ||
# - name: calico/node:v3.13.1 | ||
# loadBehavior: tryLoad | ||
|
||
providers: | ||
|
||
- name: cluster-api | ||
type: CoreProvider | ||
versions: | ||
- name: v0.3.0 | ||
# Use manifest from source files | ||
value: ../../../config | ||
replacements: | ||
- old: "imagePullPolicy: Always" | ||
new: "imagePullPolicy: IfNotPresent" | ||
- old: "--enable-leader-election" | ||
new: "--enable-leader-election=false" | ||
- old: --metrics-addr=127.0.0.1:8080 | ||
new: --metrics-addr=:8080 | ||
|
||
- name: kubeadm | ||
type: BootstrapProvider | ||
versions: | ||
- name: v0.3.0 | ||
# Use manifest from source files | ||
value: ../../../bootstrap/kubeadm/config | ||
replacements: | ||
- old: "imagePullPolicy: Always" | ||
new: "imagePullPolicy: IfNotPresent" | ||
- old: "--enable-leader-election" | ||
new: "--enable-leader-election=false" | ||
- old: --metrics-addr=127.0.0.1:8080 | ||
new: --metrics-addr=:8080 | ||
|
||
- name: kubeadm | ||
type: ControlPlaneProvider | ||
versions: | ||
- name: v0.3.0 | ||
# Use manifest from source files | ||
value: ../../../controlplane/kubeadm/config | ||
replacements: | ||
- old: "imagePullPolicy: Always" | ||
new: "imagePullPolicy: IfNotPresent" | ||
- old: "--enable-leader-election" | ||
new: "--enable-leader-election=false" | ||
- old: --metrics-addr=127.0.0.1:8080 | ||
new: --metrics-addr=:8080 | ||
|
||
- name: docker | ||
type: InfrastructureProvider | ||
versions: | ||
- name: v0.3.0 | ||
# Use manifest from source files | ||
value: ../../../test/infrastructure/docker/config | ||
replacements: | ||
- old: "imagePullPolicy: Always" | ||
new: "imagePullPolicy: IfNotPresent" | ||
- old: "--enable-leader-election" | ||
new: "--enable-leader-election=false" | ||
- old: --metrics-addr=127.0.0.1:8080 | ||
new: --metrics-addr=:8080 | ||
files: | ||
# Add a metadata for docker provider | ||
- sourcePath: "../data/infrastructure-docker/metadata.yaml" | ||
# Add cluster templates | ||
- sourcePath: "../data/infrastructure-docker/cluster-template.yaml" | ||
- sourcePath: "../data/infrastructure-docker/cluster-template-kcp-adoption.yaml" | ||
|
||
variables: | ||
KUBERNETES_VERSION: "v1.19.0" | ||
ETCD_VERSION_UPGRADE_TO: "3.4.3-0" | ||
COREDNS_VERSION_UPGRADE_TO: "1.6.7" | ||
KUBERNETES_VERSION_UPGRADE_TO: "v1.18.2" | ||
KUBERNETES_VERSION_UPGRADE_FROM: "v1.17.2" | ||
KUBERNETES_CI_ARTIFACTS_START_VERSION: "v1.19.0" | ||
DOCKER_SERVICE_DOMAIN: "cluster.local" | ||
DOCKER_SERVICE_CIDRS: "10.128.0.0/12" | ||
# IMPORTANT! This values should match the one used by the CNI provider | ||
DOCKER_POD_CIDRS: "192.168.0.0/16" | ||
#CNI: "./data/cni/calico/calico.yaml" | ||
CNI: "../data/cni/kindnet/kindnet.yaml" | ||
EXP_CLUSTER_RESOURCE_SET: "true" | ||
|
||
intervals: | ||
default/wait-controllers: ["3m", "10s"] | ||
default/wait-cluster: ["3m", "10s"] | ||
default/wait-control-plane: ["10m", "10s"] | ||
default/wait-worker-nodes: ["5m", "10s"] | ||
default/wait-delete-cluster: ["3m", "10s"] | ||
default/wait-machine-upgrade: ["20m", "10s"] | ||
default/wait-machine-remediation: ["5m", "10s"] |
Oops, something went wrong.