UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 51a7a15f authored by Ryan Garcia's avatar Ryan Garcia :dizzy:
Browse files

Updating section to alter controlPlaneCidr for RKE2 CI envs

parent f54a2970
No related branches found
No related tags found
1 merge request!605Update CI image references to latest k8s-builder
......@@ -24,7 +24,7 @@ if [ "$(yq e ".addons.keycloak.enabled" "tests/ci/k3d/values.yaml")" == "true" ]
fi
# Set controlPlaneCidr for ci-infra jobs which are RKE2
if [[ "$CI_PIPELINE_SOURCE" == "schedule" ]] && [[ "$CI_COMMIT_BRANCH" == "master" ]] || [[ "$CI_MERGE_REQUEST_LABELS" =~ /(^|,)test-ci::infra(,|$)/ ]]; then
if [[ $(kubectl version --short | grep Server) == *rke2* ]]; then
echo "Updating networkPolicies.controlPlaneCidr since Environment is RKE2"
yq e '.networkPolicies.controlPlaneCidr = "10.0.0.0/8"' $CI_VALUES_FILE > tmpfile && mv tmpfile $CI_VALUES_FILE
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment