33# #################################################################################################
44# This template can be used to tweak the environment variables needed to run the E2E tests locally #
55# Default behavior:
6- # Runs test on an existing cluster in dev0-iad
6+ # Runs test on an existing cluster
7+ # Note: All variables that have comment as "# Mandatory" need to be filled with appropriate values for the tests to run correctly.
78
89# To run the tests:
9- # 1. Change the FOCUS variable here to specify the subset of E2E tests to run
10+ # 1. Change the FOCUS valiable here to specify the subset of E2E tests to run
1011# 2. Set CLUSTER_KUBECONFIG and CLOUD_CONFIG if needed
11- # 3. run 'source existing-cluster-dev0 -env-template.sh' to set the variables
12+ # 3. run 'source existing-standalone-cluster -env-template.sh' to set the variables
1213# 4. run 'make run-ccm-e2e-tests-local`
1314# #################################################################################################
1415
1516# The test suites to run (can replace or add tags)
16- export FOCUS=" \[test1 \]"
17+ export FOCUS=" \[cloudprovider \]"
1718
1819# The test suites to skip (can replace or add tags)
1920export FOCUS_SKIP=" "
2021
21- # Run E2Es in parallel. # of ginkgo "nodes" will be decided automatically based on CPU cores.
22- export ENABLE_PARALLEL_RUN=true
22+ # Scope can be ARM / AMD / BOTH
23+ # Mandatory
24+ export SCOPE=" BOTH"
2325
24- # This variable tells the test not to install oci cli and wipe out your .oci/config
25- export LOCAL_RUN=1
26- export TC_BUILD=0
26+ # A Reserved IP in your compartment for testing LB creation with Reserved IP
27+ # Create a public reserved IP in your compartment using the following link:
28+ # https://docs.oracle.com/en-us/iaas/Content/Network/Tasks/managingpublicIPs.htm#console-reserved
29+ # Set the public reserved IP in the following env-variable:
30+ # Mandatory
31+ export RESERVED_IP=" "
2732
28- # This allows you to use your existing cluster
29- export ENABLE_CREATE_CLUSTER=false
33+ # Set path to kubeconfig of existing cluster if it does not exist in default path. Defaults to $HOME/.kube/config.
34+ # Mandatory
35+ export CLUSTER_KUBECONFIG=$HOME /.kube/config
3036
31- # Set path to kubeconfig of existing cluster if it does not exist in default path. Defaults to $HOME/.kube/config_*
32- export CLUSTER_KUBECONFIG=/Users/ypgohoka/.e2e_ccm_csi/oss-1-31.kubeconfig
37+ # Set path to cloud_config of existing cluster if it does not exist in default path. Defaults to $HOME/cloudconfig.
38+ # Mandatory
39+ export CLOUD_CONFIG=$HOME /cloudconfig
3340
34- # Set path to cloud_config of existing cluster if it does not exist in default path. Defaults to $HOME/cloudconfig_*
35- export CLOUD_CONFIG=/Users/ypgohoka/go/src/github.com/oracle/oci-cloud-controller-manager/manifests/provider-config-example.yaml
41+ # ADLOCATION example is IqDk:US-ASHBURN-AD-1
42+ # Mandatory
43+ export ADLOCATION=" "
3644
45+ # KMS key for CMEK testing
46+ # CMEK KEY example "ocid1.key.relm.region.bb..cc.aaa...aa"
47+ # Mandatory
48+ export CMEK_KMS_KEY=" "
3749
38- export IMAGE_PULL_REPO=" iad.ocir.io/okedev/e2e-tests/"
39- export ADLOCATION=" Ddfp:US-ASHBURN-AD-2"
40- 41- # KMS key for CMEK testing
42- export CMEK_KMS_KEY=" ocid1.key.oc1.iad.b5r7iu5xaagy2.abuwcljsizwczmdfnitnxaruykluz3p6kwprasd2l7ebfvbkxbytvuumg4cq"
43- 44- # NSG Network security group created in cluster's VCN
45- export NSG_OCIDS=" ocid1.networksecuritygroup.oc1.iad.aaaaaaaarqaak4vupqsxits6crgsxu5p65eh7p422iry6qttvafn5jvhsmva,ocid1.networksecuritygroup.oc1.iad.aaaaaaaaie4b3quurf3b5sgwz7lwmygii65k3yvlhkyakqacu74xowe3763q"
50+ # NSG Network security group created in cluster's VCN
51+ # CCM E2E tests require two NSGs to run successfully. Please create two NSGs in the cluster's VCN and set NSG_OCIDS
52+ # NSG_OCIDS example ocid1.networksecuritygroup.relm.region.aa...aa,ocid1.networksecuritygroup.relm.region.aa...aa
53+ # Mandatory
54+ export NSG_OCIDS=" ,"
4655
4756# NSG Network security group created in cluster's VCN for backend management, this NSG will have to be attached to the nodes manually for tests to pass
48- export BACKEND_NSG_OCIDS=" ocid1.networksecuritygroup.oc1.iad.aaaaaaaaie4b3quurf3b5sgwz7lwmygii65k3yvlhkyakqacu74xowe3763q"
49- 50- # Reserved IP created in e2e test compartment
51- export RESERVED_IP=" 169.155.149.109"
57+ export BACKEND_NSG_OCIDS=" "
5258
53- # Architecture to run tests on
54- export ARCHITECTURE_AMD=" AMD"
55- export ARCHITECTURE_ARM=" ARM"
56- 57- # Focus the tests : ARM, AMD or BOTH
58- export SCOPE=" AMD"
59+ # FSS VOLUME HANDLE in the format filesystem_ocid:mountTargetIP:export_path
60+ # Make sure fss volume handle is in the same subnet as your nodes
61+ # Create a file system, file export path and mount target in your VCN by following
62+ # https://docs.oracle.com/en-us/iaas/Content/File/Tasks/creatingfilesystems.htm#Using_the_Console
63+ # And setup your network for the file system by following:
64+ # https://docs.oracle.com/en-us/iaas/Content/File/Tasks/securitylistsfilestorage.htm
65+ # Mandatory
66+ export FSS_VOLUME_HANDLE=" "
5967
6068# For debugging the tests in existing cluster, do not turn it off by default.
6169# Optional
6270# export DELETE_NAMESPACE=false
6371
64- # FSS volume handle
65- # format is FileSystemOCID:serverIP:path
66- export FSS_VOLUME_HANDLE=" ocid1.filesystem.oc1.iad.aaaaaaaaaacdndlxnfqwillqojxwiotjmfsc2ylefuyqaaaa:10.0.73.199:/oss-test"
67- export FSS_VOLUME_HANDLE_ARM=" ocid1.filesystem.oc1.iad.aaaaaaaaaacdndlxnfqwillqojxwiotjmfsc2ylefuyqaaaa:10.0.73.199:/oss-test"
68- 69- export MNT_TARGET_ID=" ocid1.mounttarget.oc1.iad.aaaaacvippzjdfiynfqwillqojxwiotjmfsc2ylefuyqaaaa"
70- export MNT_TARGET_SUBNET_ID=" ocid1.subnet.oc1.iad.aaaaaaaafujcpvwdn3s2liqwrilolm7jmxkwq35zieo7zk4medjtqxjac7cq"
71- export MNT_TARGET_COMPARTMENT_ID=" ocid1.compartment.oc1..aaaaaaaaee2fxlf36idmiqlyvnyhkh2oquz5loogbmzat73hnnqhu2c3352a"
72+ # By default, public images are used. But if your Cluster's environment cannot access above public images then below option can be used to specify an accessible repo.
73+ # Optional
74+ # export IMAGE_PULL_REPO="accessiblerepo.com/repo/path/"
7275
73- export STATIC_SNAPSHOT_COMPARTMENT_ID=" ocid1.compartment.oc1..aaaaaaaaee2fxlf36idmiqlyvnyhkh2oquz5loogbmzat73hnnqhu2c3352a"
76+ export MNT_TARGET_ID=" "
77+ export MNT_TARGET_SUBNET_ID=" "
78+ export MNT_TARGET_COMPARTMENT_ID=" "
7479
75- # For SKE node, node_info, node_lifecycle controller tests against PDE
76- # To setup PDE and point your localhost:25000 to the PDE CP API refer: Refer: https://bitbucket.oci.oraclecorp.com/projects/OKE/repos/oke-control-plane/browse/personal-environments/README.md
77- # export CE_ENDPOINT_OVERRIDE="http://localhost:25000"
80+ export STATIC_SNAPSHOT_COMPARTMENT_ID=" "
7881
7982# Whether to run UHP E2Es or not, requires Volume Management Plugin enabled on the node and 16+ cores
8083# Check the following doc for the exact requirements:
8184# https://docs.oracle.com/en-us/iaas/Content/Block/Concepts/blockvolumeperformance.htm#shapes_block_details
82- export RUN_UHP_E2E=" false"
85+ export RUN_UHP_E2E=" false"
0 commit comments