Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
gab-satchi committed Oct 14, 2021
1 parent 198d3a2 commit 03db3cd
Show file tree
Hide file tree
Showing 7 changed files with 1,700 additions and 81 deletions.
3 changes: 2 additions & 1 deletion hack/e2e.sh
Expand Up @@ -92,13 +92,14 @@ docker save gcr.io/k8s-staging-cluster-api/capv-manager:e2e -o "$DOCKER_IMAGE_TA
# store the image on gcs
login
E2E_IMAGE_SHA=$(docker inspect --format='{{index .Id}}' gcr.io/k8s-staging-cluster-api/capv-manager:e2e)
export E2E_IMAGE_SHA
gsutil cp "$ARTIFACTS"/tempContainers/image.tar gs://capv-ci/"$E2E_IMAGE_SHA"

echo "$E2E_IMAGE_SHA"

# Run e2e tests
# TODO: re-enable tests
#make e2e



echo "$E2E_IMAGE_SHA"
41 changes: 18 additions & 23 deletions test/e2e/config/vsphere-ci.yaml
Expand Up @@ -37,8 +37,6 @@ providers:
replacements:
- old: "imagePullPolicy: Always"
new: "imagePullPolicy: IfNotPresent"
- old: --metrics-bind-addr=127.0.0.1:8080
new: --metrics-bind-addr=:8080
- name: v0.4.4 # latest published release in the v1alpha4 series; this is used for v1alpha4 --> v1beta1 clusterctl upgrades test only.
contract: v1alpha4
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/v0.4.4/core-components.yaml"
Expand All @@ -48,8 +46,6 @@ providers:
replacements:
- old: "imagePullPolicy: Always"
new: "imagePullPolicy: IfNotPresent"
- old: --metrics-bind-addr=127.0.0.1:8080
new: --metrics-bind-addr=:8080
- name: v1.0.0
# Use manifest from source files
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.0.0/core-components.yaml"
Expand All @@ -59,8 +55,6 @@ providers:
replacements:
- old: "imagePullPolicy: Always"
new: "imagePullPolicy: IfNotPresent"
- old: --metrics-bind-addr=127.0.0.1:8080
new: --metrics-bind-addr=:8080

- name: kubeadm
type: BootstrapProvider
Expand All @@ -72,8 +66,8 @@ providers:
files:
- sourcePath: "../data/shared/metadata.yaml"
replacements:
- old: --metrics-addr=127.0.0.1:8080
new: --metrics-addr=:8080
- old: "imagePullPolicy: Always"
new: "imagePullPolicy: IfNotPresent"
- name: v0.4.4 # latest published release in the v1alpha4 series; this is used for v1alpha4 --> v1beta1 clusterctl upgrades test only.
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/v0.4.4/bootstrap-components.yaml"
type: "url"
Expand All @@ -83,8 +77,6 @@ providers:
replacements:
- old: "imagePullPolicy: Always"
new: "imagePullPolicy: IfNotPresent"
- old: --metrics-bind-addr=127.0.0.1:8080
new: --metrics-bind-addr=:8080
- name: v1.0.0
# Use manifest from source files
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.0.0/bootstrap-components.yaml"
Expand All @@ -94,8 +86,6 @@ providers:
replacements:
- old: "imagePullPolicy: Always"
new: "imagePullPolicy: IfNotPresent"
- old: --metrics-bind-addr=127.0.0.1:8080
new: --metrics-bind-addr=:8080

- name: kubeadm
type: ControlPlaneProvider
Expand All @@ -107,8 +97,8 @@ providers:
files:
- sourcePath: "../data/shared/metadata.yaml"
replacements:
- old: --metrics-addr=127.0.0.1:8080
new: --metrics-addr=:8080
- old: "imagePullPolicy: Always"
new: "imagePullPolicy: IfNotPresent"
- name: v0.4.4
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/v0.4.4/control-plane-components.yaml"
type: "url"
Expand All @@ -118,8 +108,6 @@ providers:
replacements:
- old: "imagePullPolicy: Always"
new: "imagePullPolicy: IfNotPresent"
- old: --metrics-bind-addr=127.0.0.1:8080
new: --metrics-bind-addr=:8080
- name: v1.0.0
# Use manifest from source files
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.0.0/control-plane-components.yaml"
Expand All @@ -129,12 +117,20 @@ providers:
replacements:
- old: "imagePullPolicy: Always"
new: "imagePullPolicy: IfNotPresent"
- old: --metrics-bind-addr=127.0.0.1:8080
new: --metrics-bind-addr=:8080

- name: vsphere
type: InfrastructureProvider
versions:
- name: v0.7.10
value: https://github.com/kubernetes-sigs/cluster-api-provider-vsphere/releases/download/v0.7.10/infrastructure-components.yaml
files:
- sourcePath: "../../../test/e2e/data/infrastructure-vsphere/capi-upgrades/v1alpha3/cluster-template.yaml"
- sourcePath: "../../../metadata.yaml"
- name: v0.8.1
value: https://github.com/kubernetes-sigs/cluster-api-provider-vsphere/releases/download/v0.8.1/infrastructure-components.yaml
files:
- sourcePath: "../../../test/e2e/data/infrastructure-vsphere/capi-upgrades/v1alpha4/cluster-template.yaml"
- sourcePath: "../../../metadata.yaml"
- name: v1.0.0
# Use manifest from source files
value: ../../../../cluster-api-provider-vsphere/config/default
Expand All @@ -143,11 +139,10 @@ providers:
new: gcr.io/k8s-staging-cluster-api/capv-manager:e2e
- old: "imagePullPolicy: Always"
new: "imagePullPolicy: IfNotPresent"

files:
# Add a cluster template
- sourcePath: "../../../test/e2e/data/infrastructure-vsphere/cluster-template.yaml"
- sourcePath: "../../../metadata.yaml"
files:
# Add a cluster template
- sourcePath: "../../../test/e2e/data/infrastructure-vsphere/cluster-template.yaml"
- sourcePath: "../../../metadata.yaml"

variables:
KUBERNETES_VERSION: "v1.19.1"
Expand Down
46 changes: 17 additions & 29 deletions test/e2e/config/vsphere-dev.yaml
Expand Up @@ -40,8 +40,6 @@ providers:
replacements:
- old: "imagePullPolicy: Always"
new: "imagePullPolicy: IfNotPresent"
- old: --metrics-bind-addr=127.0.0.1:8080
new: --metrics-bind-addr=:8080
- name: v0.4.4 # latest published release in the v1alpha4 series; this is used for v1alpha4 --> v1beta1 clusterctl upgrades test only.
contract: v1alpha4
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/v0.4.4/core-components.yaml"
Expand All @@ -51,8 +49,6 @@ providers:
replacements:
- old: "imagePullPolicy: Always"
new: "imagePullPolicy: IfNotPresent"
- old: --metrics-bind-addr=127.0.0.1:8080
new: --metrics-bind-addr=:8080
- name: v1.0.0
# Use manifest from source files
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.0.0/core-components.yaml"
Expand All @@ -62,8 +58,6 @@ providers:
replacements:
- old: "imagePullPolicy: Always"
new: "imagePullPolicy: IfNotPresent"
- old: --metrics-bind-addr=127.0.0.1:8080
new: --metrics-bind-addr=:8080

- name: kubeadm
type: BootstrapProvider
Expand All @@ -75,8 +69,8 @@ providers:
files:
- sourcePath: "../data/shared/metadata.yaml"
replacements:
- old: --metrics-addr=127.0.0.1:8080
new: --metrics-addr=:8080
- old: "imagePullPolicy: Always"
new: "imagePullPolicy: IfNotPresent"
- name: v0.4.4 # latest published release in the v1alpha4 series; this is used for v1alpha4 --> v1beta1 clusterctl upgrades test only.
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/v0.4.4/bootstrap-components.yaml"
type: "url"
Expand All @@ -86,8 +80,6 @@ providers:
replacements:
- old: "imagePullPolicy: Always"
new: "imagePullPolicy: IfNotPresent"
- old: --metrics-bind-addr=127.0.0.1:8080
new: --metrics-bind-addr=:8080
- name: v1.0.0
# Use manifest from source files
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.0.0/bootstrap-components.yaml"
Expand All @@ -98,8 +90,6 @@ providers:
replacements:
- old: "imagePullPolicy: Always"
new: "imagePullPolicy: IfNotPresent"
- old: --metrics-bind-addr=127.0.0.1:8080
new: --metrics-bind-addr=:8080

- name: kubeadm
type: ControlPlaneProvider
Expand All @@ -111,8 +101,8 @@ providers:
files:
- sourcePath: "../data/shared/metadata.yaml"
replacements:
- old: --metrics-addr=127.0.0.1:8080
new: --metrics-addr=:8080
- old: "imagePullPolicy: Always"
new: "imagePullPolicy: IfNotPresent"
- name: v0.4.4
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/v0.4.4/control-plane-components.yaml"
type: "url"
Expand All @@ -122,8 +112,6 @@ providers:
replacements:
- old: "imagePullPolicy: Always"
new: "imagePullPolicy: IfNotPresent"
- old: --metrics-bind-addr=127.0.0.1:8080
new: --metrics-bind-addr=:8080
- name: v1.0.0
# Use manifest from source files
value: "https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.0.0/control-plane-components.yaml"
Expand All @@ -133,19 +121,20 @@ providers:
replacements:
- old: "imagePullPolicy: Always"
new: "imagePullPolicy: IfNotPresent"
- old: --metrics-bind-addr=127.0.0.1:8080
new: --metrics-bind-addr=:8080

- name: vsphere
type: InfrastructureProvider
versions:
- name: v0.7.10 # latest published release in the v1alpha3 series; this is used for v1alpha3 --> v1beta1 clusterctl upgrades test only.
- name: v0.7.10
value: https://github.com/kubernetes-sigs/cluster-api-provider-vsphere/releases/download/v0.7.10/infrastructure-components.yaml
type: url
contract: v1alpha3
files:
- sourcePath: "../data/shared/metadata.yaml"
- sourcePath: "../../../test/e2e/data/infrastructure-vsphere/cluster-template.yaml"
- sourcePath: "../../../test/e2e/data/infrastructure-vsphere/capi-upgrades/v1alpha3/cluster-template.yaml"
- sourcePath: "../../../metadata.yaml"
- name: v0.8.1
value: https://github.com/kubernetes-sigs/cluster-api-provider-vsphere/releases/download/v0.8.1/infrastructure-components.yaml
files:
- sourcePath: "../../../test/e2e/data/infrastructure-vsphere/capi-upgrades/v1alpha4/cluster-template.yaml"
- sourcePath: "../../../metadata.yaml"
- name: v1.0.0
# Use manifest from source files
value: ../../../../cluster-api-provider-vsphere/config/default
Expand All @@ -154,14 +143,13 @@ providers:
new: gcr.io/k8s-staging-cluster-api/capv-manager:e2e
- old: "imagePullPolicy: Always"
new: "imagePullPolicy: IfNotPresent"

files:
# Add a cluster template
- sourcePath: "../../../test/e2e/data/infrastructure-vsphere/cluster-template.yaml"
- sourcePath: "../../../metadata.yaml"
files:
# Add a cluster template
- sourcePath: "../../../test/e2e/data/infrastructure-vsphere/cluster-template.yaml"
- sourcePath: "../../../metadata.yaml"

variables:
KUBERNETES_VERSION: "v1.18.2"
KUBERNETES_VERSION: "v1.19.1"
CNI: "./data/cni/calico/calico.yaml"
#CNI: "./data/cni/kindnet/kindnet.yaml"
EXP_CLUSTER_RESOURCE_SET: "true"
Expand Down

0 comments on commit 03db3cd

Please sign in to comment.