@@ -31,7 +31,7 @@ get_operator_helm_values() {
31
31
" operator.mdbDefaultArchitecture=${MDB_DEFAULT_ARCHITECTURE:- non-static} "
32
32
" operator.enablePVCResize=${MDB_ENABLE_PVC_RESIZE:- true} "
33
33
" operator.telemetry.enabled=true"
34
- " operator.telemetry.collection.clusters.enabled=true"
34
+ " operator.telemetry.collection.clusters.enabled=${MDB_OPERATOR_TELEMETRY_COLLECTION_CLUSTERS_ENABLED :- true} "
35
35
" operator.telemetry.collection.deployments.enabled=true"
36
36
" operator.telemetry.collection.operators.enabled=true"
37
37
# only send the telemetry to the backend on a specific variant, thus default to false
@@ -40,11 +40,11 @@ get_operator_helm_values() {
40
40
" operator.telemetry.collection.frequency=${MDB_OPERATOR_TELEMETRY_COLLECTION_FREQUENCY:- 1m} "
41
41
)
42
42
43
- # shellcheck disable=SC2154
43
+ # shellcheck disable=SC2154
44
44
if [[ " ${KUBE_ENVIRONMENT_NAME-} " = " multi" ]]; then
45
- comma_separated_list=" $( echo " ${MEMBER_CLUSTERS} " | tr ' ' ' ,' ) "
46
- # shellcheck disable=SC2154
47
- config+=(" multiCluster.clusters={${comma_separated_list} }" )
45
+ comma_separated_list=" $( echo " ${MEMBER_CLUSTERS} " | tr ' ' ' ,' ) "
46
+ # shellcheck disable=SC2154
47
+ config+=(" multiCluster.clusters={${comma_separated_list} }" )
48
48
fi
49
49
50
50
if [[ " ${KUBE_ENVIRONMENT_NAME:- } " == " multi" ]]; then
@@ -56,31 +56,31 @@ get_operator_helm_values() {
56
56
fi
57
57
58
58
if [[ " ${MDB_MAX_CONCURRENT_RECONCILES:- } " != " " ]]; then
59
- config+=(" operator.maxConcurrentReconciles=${MDB_MAX_CONCURRENT_RECONCILES} " )
59
+ config+=(" operator.maxConcurrentReconciles=${MDB_MAX_CONCURRENT_RECONCILES} " )
60
60
fi
61
61
62
62
# change this locally or as changed in variant e2e_operator_race_ubi_with_telemetry which also sends telemetry
63
63
if [[ " ${MDB_OPERATOR_TELEMETRY_SEND_BASEURL:- } " != " " ]]; then
64
- config+=(" operator.telemetry.send.baseUrl=${MDB_OPERATOR_TELEMETRY_SEND_BASEURL} " )
64
+ config+=(" operator.telemetry.send.baseUrl=${MDB_OPERATOR_TELEMETRY_SEND_BASEURL} " )
65
65
fi
66
66
67
67
if [[ " ${MDB_HELM_OPERATOR_WEBHOOK_INSTALL_CLUSTER_ROLE:- } " != " " ]]; then
68
- config+=(" operator.webhook.installClusterRole=${MDB_HELM_OPERATOR_WEBHOOK_INSTALL_CLUSTER_ROLE} " )
68
+ config+=(" operator.webhook.installClusterRole=${MDB_HELM_OPERATOR_WEBHOOK_INSTALL_CLUSTER_ROLE} " )
69
69
fi
70
70
71
71
echo " ${config[@]} "
72
72
}
73
73
74
74
prepare_operator_config_map () {
75
- local context=${1}
76
- kubectl --context " ${context} " delete configmap operator-installation-config --ignore-not-found
77
- title " Preparing the ConfigMap with Operator installation configuration"
75
+ local context=${1}
76
+ kubectl --context " ${context} " delete configmap operator-installation-config --ignore-not-found
77
+ title " Preparing the ConfigMap with Operator installation configuration"
78
78
79
- read -ra helm_values < <( get_operator_helm_values)
80
- declare -a config_map_values=()
81
- for param in " ${helm_values[@]} " ; do
82
- config_map_values+=(" --from-literal" " ${param} " )
83
- done
84
- # shellcheck disable=SC2086,SC2048
85
- kubectl --context " ${context} " create configmap operator-installation-config -n " ${NAMESPACE} " ${config_map_values[*]} || true
79
+ read -ra helm_values < <( get_operator_helm_values)
80
+ declare -a config_map_values=()
81
+ for param in " ${helm_values[@]} " ; do
82
+ config_map_values+=(" --from-literal" " ${param} " )
83
+ done
84
+ # shellcheck disable=SC2086,SC2048
85
+ kubectl --context " ${context} " create configmap operator-installation-config -n " ${NAMESPACE} " ${config_map_values[*]} || true
86
86
}
0 commit comments