File tree Expand file tree Collapse file tree 7 files changed +32
-3
lines changed Expand file tree Collapse file tree 7 files changed +32
-3
lines changed Original file line number Diff line number Diff line change @@ -1870,6 +1870,15 @@ buildvariants:
1870
1870
tasks :
1871
1871
- name : kind_code_snippets_task_group
1872
1872
1873
+ - name : public_kind_code_snippets
1874
+ display_name : public_kind_code_snippets
1875
+ allowed_requesters : ["patch", "github_pr"]
1876
+ run_on :
1877
+ - ubuntu2204-large
1878
+ << : *base_om8_dependency
1879
+ tasks :
1880
+ - name : kind_code_snippets_task_group
1881
+
1873
1882
# ## Build variants for manual patch only
1874
1883
1875
1884
- name : publish_om60_images
Original file line number Diff line number Diff line change
1
+ export K8S_CLUSTER_0_CONTEXT_NAME=" ${CLUSTER_NAME} "
2
+ export PRIVATE_PREVIEW_IMAGE_PULLSECRET=" ${COMMUNITY_PRIVATE_PREVIEW_PULLSECRET_DOCKERCONFIGJSON} "
Original file line number Diff line number Diff line change 3
3
set -Eeou pipefail
4
4
source scripts/dev/set_env_context.sh
5
5
6
- if [ " ${COMMIT_OUTPUT :- false} " = true ]; then
6
+ if [[ " ${CODE_SNIPPETS_COMMIT_OUTPUT :- " false" } " == " true" ] ]; then
7
7
echo " Pushing output files"
8
8
branch=" meko-snippets-update-$( date " +%Y%m%d%H%M%S" ) "
9
9
git checkout -b " ${branch} "
Original file line number Diff line number Diff line change @@ -101,6 +101,10 @@ export RUNNING_IN_EVG="true"
101
101
102
102
export DELETE_KIND_NETWORK=" true"
103
103
104
+ # code_snippets_commit_output can be set in evergreen patch by --param code_snippets_commit_output=true
105
+ # it's also set explicitly in public_*_snippets variants
106
+ export CODE_SNIPPETS_COMMIT_OUTPUT=${code_snippets_commit_output:- " false" }
107
+
104
108
# MCO
105
109
# shellcheck disable=SC2154
106
110
export READINESS_PROBE_IMAGE=" 268558157000.dkr.ecr.us-east-1.amazonaws.com/dev/mongodb-kubernetes-readinessprobe:${version_id} "
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ source "${script_dir}/root-context"
11
11
12
12
export MDB_GKE_PROJECT=" scratch-kubernetes-team"
13
13
export K8S_CLUSTER_SUFFIX=" -${version_id} -${RANDOM} "
14
- export COMMIT_OUTPUT =true
14
+ export CODE_SNIPPETS_COMMIT_OUTPUT =true
15
15
16
16
# we reset evg host to use a default ~/.kube/config for GKE instead of the one from evg host
17
17
export EVG_HOST_NAME=" "
Original file line number Diff line number Diff line change @@ -18,4 +18,4 @@ export EVG_HOST_NAME=""
18
18
# ENV_VARIABLES.SH overrides
19
19
export OPERATOR_ADDITIONAL_HELM_VALUES=" "
20
20
export OPERATOR_HELM_CHART=" "
21
- export COMMIT_OUTPUT =true
21
+ export CODE_SNIPPETS_COMMIT_OUTPUT =true
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # this context file is for code snippets running on GKE clusters
4
+ set -Eeou pipefail
5
+
6
+ # overrides of public env_variables.sh
7
+ script_name=$( readlink -f " ${BASH_SOURCE[0]} " )
8
+ script_dir=$( dirname " ${script_name} " )
9
+
10
+ source " ${script_dir} /root-context"
11
+
12
+ export NAMESPACE=mongodb
13
+ export CODE_SNIPPETS_FLAVOR=e2e_private
14
+ export CODE_SNIPPETS_COMMIT_OUTPUT=true
You can’t perform that action at this time.
0 commit comments