Skip to content

Commit 7fb489b

Browse files
committed
feat: Added e2e test for capx cluster
We need to set following vars in either env or caren.yaml NUTANIX_ENDPOINT: x.x.x.x NUTANIX_USER: admin NUTANIX_PASSWORD: “” NUTANIX_INSECURE: true NUTANIX_PORT: 9440 CONTROL_PLANE_ENDPOINT_IP: x.x.x.x CONTROL_PLANE_ENDPOINT_PORT: 6443 NUTANIX_PRISM_ELEMENT_CLUSTER_NAME: "" NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME: "" NUTANIX_SUBNET_NAME: "" DOCKER_HUB_USERNAME: “” NUTANIX_PRISM_ELEMENT_ENDPOINT: x.x.x.x NUTANIX_STORAGE_CONTAINER_NAME: “”
1 parent 86b23e7 commit 7fb489b

File tree

3 files changed

+66
-1
lines changed

3 files changed

+66
-1
lines changed

test/e2e/config/caren.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,29 @@ providers:
9393
- old: --metrics-addr=127.0.0.1:8080
9494
new: --metrics-addr=:8080
9595

96+
- name: nutanix
97+
type: InfrastructureProvider
98+
versions:
99+
- name: "${CAPX_VERSION}"
100+
value: "https://github.com/nutanix-cloud-native/cluster-api-provider-nutanix/releases/download/${CAPX_VERSION}/infrastructure-components.yaml"
101+
type: "url"
102+
contract: v1beta1
103+
files:
104+
- sourcePath: "../data/shared/v1beta1-capx/metadata.yaml"
105+
- sourcePath: "../../../charts/cluster-api-runtime-extensions-nutanix/defaultclusterclasses/docker-cluster-class.yaml"
106+
targetName: clusterclass-nutanix-quick-start.yaml
107+
- sourcePath: "../../../examples/capi-quick-start/nutanix-cluster-cilium-helm-addon.yaml"
108+
targetName: cluster-template-topology-cilium-helm-addon.yaml
109+
- sourcePath: "../../../examples/capi-quick-start/nutanix-cluster-cilium-crs.yaml"
110+
targetName: cluster-template-topology-cilium-crs.yaml
111+
- sourcePath: "../../../examples/capi-quick-start/nutanix-cluster-calico-helm-addon.yaml"
112+
targetName: cluster-template-topology-calico-helm-addon.yaml
113+
- sourcePath: "../../../examples/capi-quick-start/nutanix-cluster-calico-crs.yaml"
114+
targetName: cluster-template-topology-calico-crs.yaml
115+
replacements:
116+
- old: --metrics-addr=127.0.0.1:8080
117+
new: --metrics-addr=:8080
118+
96119
- name: helm
97120
type: AddonProvider
98121
versions:
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# maps release series of major.minor to cluster-api contract version
2+
# the contract version may change between minor or major versions, but *not*
3+
# between patch versions.
4+
#
5+
# TODO(release-blocker): update this file only when a new major or minor version is released
6+
7+
apiVersion: clusterctl.cluster.x-k8s.io/v1alpha3
8+
kind: Metadata
9+
releaseSeries:
10+
- major: 0
11+
minor: 1
12+
contract: v1alpha4
13+
- major: 0
14+
minor: 2
15+
contract: v1beta1
16+
- major: 0
17+
minor: 3
18+
contract: v1beta1
19+
- major: 0
20+
minor: 4
21+
contract: v1beta1
22+
- major: 0
23+
minor: 5
24+
contract: v1beta1
25+
- major: 1
26+
minor: 0
27+
contract: v1beta1
28+
- major: 1
29+
minor: 1
30+
contract: v1beta1
31+
- major: 1
32+
minor: 2
33+
contract: v1beta1
34+
- major: 1
35+
minor: 3
36+
contract: v1beta1
37+
- major: 1
38+
minor: 4
39+
contract: v1beta1
40+
- major: 0
41+
minor: 0
42+
contract: v1beta1

test/e2e/quick_start_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
)
2323

2424
var _ = Describe("Quick start", Serial, func() {
25-
for _, provider := range []string{"Docker", "AWS"} {
25+
for _, provider := range []string{"Docker", "AWS", "Nutanix"} {
2626
lowercaseProvider := strings.ToLower(provider)
2727
for _, cniProvider := range []string{"Cilium", "Calico"} {
2828
for _, addonStrategy := range []string{"HelmAddon", "ClusterResourceSet"} {

0 commit comments

Comments
 (0)