UNCLASSIFIED - NO CUI

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

Merge branch 'master-pipeline-fixes' into 'master'

Update CI image references to latest k8s-builder

See merge request platform-one/big-bang/bigbang!605
parents a8586258 2eed27d5
No related branches found
No related tags found
1 merge request!605Update CI image references to latest k8s-builder
Pipeline #375425 failed
......@@ -40,7 +40,7 @@ variables:
- generic
.bigbang:
image: registry.dso.mil/platform-one/big-bang/pipeline-templates/pipeline-templates/k3d-builder:0.0.6
image: registry.dso.mil/platform-one/big-bang/pipeline-templates/pipeline-templates/k8s-ci:v1.20.4-bb.3
extends: .bigbang-dogfood
after_script:
- kubectl get all -A
......@@ -103,7 +103,7 @@ clean install:
variables:
CLUSTER_NAME: "clean-${CI_COMMIT_SHORT_SHA}"
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_BRANCH == "master"'
- if: '($CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_BRANCH == "master") || $CI_MERGE_REQUEST_LABELS =~ /(^|,)test-ci::infra(,|$)/'
when: never
- *chart_changes
script:
......@@ -128,6 +128,9 @@ upgrade:
extends:
- .k3d-ci
rules:
# skip job for nightly master and "test-ci::infra" labeled pipelines
- if: '($CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_BRANCH == "master") || $CI_MERGE_REQUEST_LABELS =~ /(^|,)test-ci::infra(,|$)/'
when: never
# skip job when MR title starts with 'SKIP UPGRADE'
- if: '$CI_MERGE_REQUEST_TITLE =~ /^SKIP UPGRADE/'
when: never
......
......@@ -8,7 +8,6 @@
- privileged
- dogfood
#
# In cluster k3s using K3D with the docker daemon as a sidecar
#
# This will connect to a remote docker daemon over tls tcp (defined at installation of gitlab runners) and create
......@@ -38,7 +37,6 @@
- k3d cluster delete ${CI_JOB_ID}
- docker network rm ${CI_JOB_ID}
#
# In cluster k3s using k3s as a sidecar
#
# This will spin up k3s as a gitlab ci sidecar
......
......@@ -24,4 +24,4 @@
script:
- *calc_unique_cidr
- echo "Destroying network"
- terraform destroy -auto-approve
\ No newline at end of file
- terraform destroy -auto-approve
......@@ -19,4 +19,4 @@
- .rke2 tf
- .terraform destroy workspace
script:
- terraform destroy -input=false -auto-approve
\ No newline at end of file
- terraform destroy -input=false -auto-approve
......@@ -29,4 +29,4 @@ include:
.terraform destroy workspace:
after_script:
- cd ${CI_PROJECT_DIR}/${TF_ROOT}
- terraform workspace select default && terraform workspace delete "${TF_VAR_env}"
\ No newline at end of file
- terraform workspace select default && terraform workspace delete "${TF_VAR_env}"
......@@ -23,6 +23,12 @@ if [ "$(yq e ".addons.keycloak.enabled" "tests/ci/k3d/values.yaml")" == "true" ]
yq eval-all 'select(fileIndex == 0) * select(filename == "tests/ci/keycloak-certs/keycloak-passthrough-values.yaml")' $CI_VALUES_FILE tests/ci/keycloak-certs/keycloak-passthrough-values.yaml > tmpfile && mv tmpfile $CI_VALUES_FILE
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
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
# deploy BigBang using dev sized scaling
echo "Installing BigBang with the following configurations:"
cat $CI_VALUES_FILE
......
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