From e17c61e8c6154c7bf05bfb5788a76bc95ae072cc Mon Sep 17 00:00:00 2001 From: Richard Hagen Date: Mon, 4 Dec 2023 12:49:51 +0100 Subject: [PATCH] test pr workflow --- .github/workflows/test.yaml | 14 ++++++++++++++ scripts/README.md | 5 +++++ scripts/cost-allocation/bootstrap.sh | 4 ++-- scripts/velero/restore/restore_apps.sh | 2 +- scripts/vulnerability-scanner/bootstrap.sh | 4 ++-- 5 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 000000000..40bfb3de6 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,14 @@ +on: + pull_request: + workflow_dispatch: + +permissions: + id-token: write + contents: write + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - run: echo "hello world!" diff --git a/scripts/README.md b/scripts/README.md index 9ebdf190b..a92b898d0 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -42,6 +42,11 @@ This scripts takes care of bootstrapping new cluster (if it hasn't been created The whole process should be handled by the [migrate.sh](./migrate.sh) script. See file header in for usage. The only exception is the last manual step to make the cluster the active one. +#### 2.1.2 Manuall steps: + +- Run SQL Server scripts to fix user accounts for vulnerability scanner and cost api +- Trigger Github Action to migrate custom ingresses. Change active cluster here: https://github.com/equinor/radix-flux/edit/master/clusters/development/postBuild.yaml (development) + ### 2.2 Setting up a cluster from scratch There are seven steps to setting up a Radix cluster from scratch. These steps can be run individually when modifying an existing cluster, or sequentially when setting up a new cluster: diff --git a/scripts/cost-allocation/bootstrap.sh b/scripts/cost-allocation/bootstrap.sh index e5896cd9d..31579ec88 100755 --- a/scripts/cost-allocation/bootstrap.sh +++ b/scripts/cost-allocation/bootstrap.sh @@ -31,7 +31,7 @@ ### # NORMAL -# RADIX_ZONE_ENV=../radix-zone/radix_zone_dev.env CLUSTER_NAME="weekly-2" ./bootstrap.sh +# RADIX_ZONE_ENV=../radix-zone/radix_zone_dev.env CLUSTER_NAME="weekly-49" ./bootstrap.sh ####################################################################################### ### START @@ -188,4 +188,4 @@ printf "Done bootstrapping Radix Cost Allocation prerequisites.\n" (RADIX_ZONE_ENV="$RADIX_ZONE_ENV" USER_PROMPT="$USER_PROMPT" REGENERATE_SQL_PASSWORD="$REGENERATE_API_PASSWORD" "${script_dir_path}/bootstrap_api.sh") wait # wait for subshell to finish -printf "Done bootstrapping Radix Cost Allocation API prerequisites.\n" \ No newline at end of file +printf "Done bootstrapping Radix Cost Allocation API prerequisites.\n" diff --git a/scripts/velero/restore/restore_apps.sh b/scripts/velero/restore/restore_apps.sh index 3293ff61b..0fb93ae71 100755 --- a/scripts/velero/restore/restore_apps.sh +++ b/scripts/velero/restore/restore_apps.sh @@ -33,7 +33,7 @@ # RADIX_ZONE_ENV=../../radix-zone/radix_zone_dev.env SOURCE_CLUSTER=weekly-25 BACKUP_NAME=all-hourly-20190703064411 ./restore_apps.sh # Example: Restore into different cluster from where the backup was done -# RADIX_ZONE_ENV=../../radix-zone/radix_zone_dev.env SOURCE_CLUSTER=dev-1 DEST_CLUSTER=dev-2 BACKUP_NAME=all-hourly-20190703064411 ./restore_apps.sh +# RADIX_ZONE_ENV=../../radix-zone/radix_zone_dev.env SOURCE_CLUSTER=weekly-49 DEST_CLUSTER=dev-2 BACKUP_NAME=migration-20231204101304 ./restore_apps.sh ####################################################################################### ### DEVELOPMENT diff --git a/scripts/vulnerability-scanner/bootstrap.sh b/scripts/vulnerability-scanner/bootstrap.sh index b659f2c1e..ad723b484 100755 --- a/scripts/vulnerability-scanner/bootstrap.sh +++ b/scripts/vulnerability-scanner/bootstrap.sh @@ -31,7 +31,7 @@ ### # NORMAL -# RADIX_ZONE_ENV=../radix-zone/radix_zone_dev.env CLUSTER_NAME="weekly-2" ./bootstrap.sh +# RADIX_ZONE_ENV=../radix-zone/radix_zone_dev.env CLUSTER_NAME="weekly-49" ./bootstrap.sh ####################################################################################### ### START @@ -191,4 +191,4 @@ printf "Done bootstrapping Radix Vulnerability Scanner prerequisites.\n" (RADIX_ZONE_ENV="$RADIX_ZONE_ENV" USER_PROMPT="$USER_PROMPT" REGENERATE_SQL_PASSWORD="$REGENERATE_API_PASSWORD" "${script_dir_path}/bootstrap_api.sh") wait # wait for subshell to finish -printf "Done bootstrapping Radix Vulnerability Scanner API prerequisites.\n" \ No newline at end of file +printf "Done bootstrapping Radix Vulnerability Scanner API prerequisites.\n"