-
Notifications
You must be signed in to change notification settings - Fork 0
/
subm_variables
188 lines (138 loc) · 7.5 KB
/
subm_variables
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
#!/bin/bash
### Global variables for Submariner setup and tests ###
#
# To override variable with an existing environment variable from active session:
# Change variable assignment format from VAR="value" to VAR="${VAR:-value}".
# Plain credentials should be wrapped with single quotes.
### Workspace vars ###
export WORKDIR=submariner-install
export OC="oc"
### Env and test vars ###
export TEST_NS="${TEST_NS:-test-submariner}"
export CLUSTER_SET_ID="${CLUSTER_SET_ID}" # To identify the cluster-set of all clusters (will be appended to each cluster name)
export CLUSTER_A_NAME="${CLUSTER_A_NAME}" # Recommended cluster name: No more than 9 characters (platform and ID will be added later)
export CLUSTER_A_YAML="${CLUSTER_A_YAML}" # e.g. install-config-cluster-a.yaml
export NETSHOOT_CLUSTER_A="netshoot-cl-a"
export CLUSTER_B_NAME="${CLUSTER_B_NAME}" # Recommended cluster name: No more than 9 characters (platform and ID will be added later)
export CLUSTER_B_YAML="${CLUSTER_B_YAML}" # e.g. install-config-cluster-b.yaml
export NGINX_CLUSTER_BC="nginx-cl-bc"
export CLUSTER_C_NAME="${CLUSTER_C_NAME}" # Recommended cluster name: No more than 9 characters (platform and ID will be added later)
export CLUSTER_C_YAML="${CLUSTER_C_YAML}" # e.g. install-config-cluster-c.yaml
export NETSHOOT_IMAGE="quay.io/submariner/nettest" # "nicolaka/netshoot"
export NGINX_IMAGE="quay.io/openshifttest/nginx-alpine:latest" # "nginxinc/nginx-unprivileged:stable-alpine"
export NGINX_PORT="8080"
# Do not use the same IPSEC port numbers multiple times in one project
export IPSEC_NATT_PORT=${IPSEC_NATT_PORT:-4500}
export IPSEC_IKE_PORT=${IPSEC_IKE_PORT:-500}
export GW_INSTANCE_TYPE=${GW_INSTANCE_TYPE:-m4.xlarge}
export MULTI_CLUSTER_DOMAIN="clusterset.local"
export REPORT_NAME="${REPORT_NAME:-Submariner Tests}"
export OUTPUT_DIR="${TEST_NS:-output}"
### AWS cloud vars ###
export AWS_KEY='user-aws-access-key'
export AWS_SECRET='user-aws-secret-access-key'
export AWS_PROFILE_NAME="aws-profile"
export AWS_PROFILE_ID="012345678910"
export AWS_REGION=""
export AWS_ZONE_NAME=""
export AWS_ZONE_ID=""
### OpenStack cloud vars ###
export OSP_CRED_YAML="${OSP_CRED_YAML:-osp-clouds.yaml}" # OSP clouds.yaml file path
export OS_AUTH_URL="https://openstack-auth-url:13000"
export OS_USERNAME='openstack-user'
export OS_PASSWORD='openstack-pass'
export OS_USER_DOMAIN_NAME="openstack.domain"
export OS_PROJECT_NAME="openstack-project"
export OS_PROJECT_ID="openstack-project-id"
export OS_REGION_NAME="openstack-region"
export OS_VOLUME_API_VERSION=3
### Google cloud vars ###
export GCP_CRED_JSON="${GCP_CRED_JSON:-gcp-cred.json}" # GCP cred.json file path
export GCP_REGION=""
### Azure cloud vars ###
# Use AZURE_SUBSCRIPTION and Service Principal Account with an access Role
export AZURE_SUBSCRIPTION="azure-subscription"
export AZURE_CRED_JSON="${AZURE_CRED_JSON:-azure-cred.json}" # Azure cred.json file path
### OpenShift Registry vars ###
export OCP_USR='ocp_user' # Local registry user
# The official and staging Redhat products registry, that is accessible on the internet (external)
export OFFICIAL_REGISTRY="registry.redhat.io"
export STAGING_REGISTRY="registry.stage.redhat.io"
# Another official Redhat registry catalog (external)
export CATALOG_REGISTRY="registry.access.redhat.com"
export CATALOG_IMAGE_PREFIX="openshift4"
export CATALOG_IMAGE_IMPORT_PATH="ose-oauth-proxy"
# PROXY Snapshot registry for Redhat product container images that can be accessed within Redhat's network (interanl with VPN)
export VPN_REGISTRY="registry-proxy.engineering.redhat.com"
# BREW Snapshot registry for redhat product container images that is accessible on the internet with credentials (external)
export BREW_REGISTRY="brew.registry.redhat.io"
export REGISTRY_IMAGE_PREFIX="rhacm2"
export REGISTRY_IMAGE_PREFIX_TECH_PREVIEW="rhacm2-tech-preview" # Supports digests only (ICSP)
export REGISTRY_IMAGE_IMPORT_PATH="rh-osbs" # supports digests (hash) and floating tags
export REGISTRY_USR='brew-user'
export REGISTRY_PWD='brew-pass'
# QUAY.IO registry - also accessible on the internet with credentials
export QUAY_REGISTRY="quay.io:443"
export QUAY_IMAGE_IMPORT_PATH="acm-d" # supports digests (hash) and floating tags
export QUAY_IMAGE_MCE_PREFIX="multicluster-engine"
export QUAY_USR='quay-user'
export QUAY_PWD='quay-pass'
### Polarion vars ###
export POLARION_SERVER="polarion.server.name" # without " https:// "
export POLARION_USR='polarion-user'
export POLARION_PWD='polarion-pass'
export POLARION_PROJECT_ID="${POLARION_PROJECT_ID:-}"
export POLARION_TEAM_NAME="${POLARION_TEAM_NAME:-}"
export POLARION_TESTRUN_TEMPLATE="${POLARION_TESTRUN_TEMPLATE:-}"
export POLARION_COMPONENT_ID="${POLARION_COMPONENT_ID:-}"
export POLARION_TESTPLAN_ID="${POLARION_TESTPLAN_ID:-}"
export POLARION_TESTCASES_DOC="${POLARION_TESTCASES_DOC:-${POLARION_TESTPLAN_ID}_Testscases}"
### Submariner resources vars ###
export SUBM_OPERATOR="submariner"
export SUBM_BUNDLE="submariner-operator-bundle"
export SUBM_AGENT="submariner-agent"
export SUBM_GATEWAY="submariner-gateway"
export SUBM_ROUTE_AGENT="submariner-routeagent"
export SUBM_GLOBALNET="submariner-globalnet"
export SUBM_LH_COREDNS="submariner-lighthouse-coredns"
export SUBM_IMG_SUBCTL="${SUBM_IMG_SUBCTL:-subctl-rhel8}"
export SUBM_IMG_NETTEST="${SUBM_IMG_NETTEST:-nettest-rhel8}"
export SUBM_IMG_GATEWAY="${SUBM_IMG_GATEWAY:-submariner-gateway-rhel8}"
export SUBM_IMG_ROUTE="${SUBM_IMG_ROUTE:-submariner-route-agent-rhel8}"
export SUBM_IMG_NETWORK="${SUBM_IMG_NETWORK:-submariner-networkplugin-syncer-rhel8}"
export SUBM_IMG_LIGHTHOUSE="${SUBM_IMG_LIGHTHOUSE:-lighthouse-agent-rhel8}"
export SUBM_IMG_COREDNS="${SUBM_IMG_COREDNS:-lighthouse-coredns-rhel8}"
export SUBM_IMG_GLOBALNET="${SUBM_IMG_GLOBALNET:-submariner-globalnet-rhel8}"
export SUBM_IMG_METRICS="${SUBM_IMG_METRICS:-submariner-metrics-proxy-rhel8}"
export SUBM_IMG_OPERATOR="${SUBM_IMG_OPERATOR:-submariner-rhel8-operator}"
export SUBM_IMG_BUNDLE="${SUBM_IMG_BUNDLE:-submariner-operator-bundle}"
export SUBM_VER_TAG=${SUBM_VER_TAG}
export SUBM_CHANNEL_PREFIX_TECH_PREVIEW="alpha-"
export SUBM_CHANNEL_PREFIX="stable-"
export SUBM_NAMESPACE="submariner-operator"
export SUBM_BROKER_INFO="broker-info.subm"
export SUBM_ADDON="submariner" # Submariner Addon name. Using different name (e.g. "my-addon") is not supported.
export SUBM_CONFIG="submariner" # Submariner Config name. Using different name (e.g. "my-config") is not supported.
### ACM resources vars ###
export OPERATORS_NAMESPACE="openshift-operators"
export MARKETPLACE_NAMESPACE="openshift-marketplace"
export CVP_COMPONENT="cvp-teamredhatadvancedclustermanagement"
export CVP_ISSUER=${CVP_ISSUER:-"exd-cpaas-bot-prod"} # For CVE (security errata releases) use "freshmaker"
export ACM_NAMESPACE="ocm" # instead of "open-cluster-management"
export ACM_OPERATOR="advanced-cluster-management"
export ACM_BUNDLE="acm-operator-bundle"
export ACM_BUNDLE_IMAGE="acm-operator-bundle"
export ACM_INSTANCE="multiclusterhub"
export ACM_HUB_NS="open-cluster-management-hub"
export ACM_GS_NS="open-cluster-management-global-set"
export ACM_VER_TAG=${ACM_VER_TAG}
export ACM_CHANNEL_PREFIX="release-"
export ACM_BUILD_DATE=${ACM_BUILD_DATE} # e.g. "2022-12-05", according to https://github.com/stolostron/deploy/commits/master/mirror
### MCE resources vars ###
export MCE_NAMESPACE="mce" # instead of "multicluster-engine"
export MCE_OPERATOR="multicluster-engine"
export MCE_BUNDLE="multicluster-engine-operator-bundle"
export MCE_BUNDLE_IMAGE="mce-operator-bundle"
export MCE_INSTANCE="multiclusterengine"
export MCE_VER_TAG=${MCE_VER_TAG}
export MCE_CHANNEL_PREFIX="stable-"