-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): fix sensitive logging and deployment checks (#2101)
* fix e2e tests * fix e2e tests * fix e2e tests * fix logging issue * fix logging issue * fix sensitive logging and deployment checks * fix sensitive logging and deployment checks * fix sensitive logging and deployment checks * fix sensitive logging and deployment checks * fix sensitive logging and deployment checks * fix sensitive logging and deployment checks * fix sensitive logging and deployment checks * fix sensitive logging and deployment checks * fix sensitive logging and deployment checks
- Loading branch information
1 parent
2c4acbb
commit 31b574e
Showing
13 changed files
with
47 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,32 @@ | ||
#!/bin/sh | ||
|
||
handle_nightly() { | ||
export NAME_SPACE="showcase-ci-nightly" | ||
export NAME_SPACE_RBAC="showcase-rbac-nightly" | ||
export NAME_SPACE_POSTGRES_DB="postgress-external-db-nightly" | ||
export NAME_SPACE_K8S="showcase-k8s-ci-nightly" | ||
export NAME_SPACE_RBAC_K8S="showcase-rbac-k8s-ci-nightly" | ||
|
||
oc_login | ||
|
||
export K8S_CLUSTER_ROUTER_BASE=$(oc get route console -n openshift-console -o=jsonpath='{.spec.host}' | sed 's/^[^.]*\.//') | ||
|
||
configure_namespace "${NAME_SPACE}" | ||
deploy_test_backstage_provider "${NAME_SPACE}" | ||
local url="https://${RELEASE_NAME}-backstage-${NAME_SPACE}.${K8S_CLUSTER_ROUTER_BASE}" | ||
cluster_setup | ||
initiate_deployments | ||
local url="https://${RELEASE_NAME}-backstage-${NAME_SPACE}.${K8S_CLUSTER_ROUTER_BASE}" | ||
check_and_test "${RELEASE_NAME}" "${NAME_SPACE}" "${url}" | ||
check_and_test "${RELEASE_NAME_RBAC}" "${NAME_SPACE_RBAC}" "${url}" | ||
local rbac_url="https://${RELEASE_NAME_RBAC}-backstage-${NAME_SPACE_RBAC}.${K8S_CLUSTER_ROUTER_BASE}" | ||
check_and_test "${RELEASE_NAME_RBAC}" "${NAME_SPACE_RBAC}" "${rbac_url}" | ||
|
||
# Only test TLS config with RDS and Change configuration at runtime in nightly jobs | ||
initiate_rds_deployment "${RELEASE_NAME}" "${NAME_SPACE_RDS}" | ||
check_and_test "${RELEASE_NAME}" "${NAME_SPACE_RDS}" "${url}" | ||
local rds_url="https://${RELEASE_NAME}-backstage-${NAME_SPACE_RDS}.${K8S_CLUSTER_ROUTER_BASE}" | ||
check_and_test "${RELEASE_NAME}" "${NAME_SPACE_RDS}" "${rds_url}" | ||
|
||
# Deploy `showcase-runtime` to run tests that require configuration changes at runtime | ||
configure_namespace "${NAME_SPACE_RUNTIME}" | ||
uninstall_helmchart "${NAME_SPACE_RUNTIME}" "${RELEASE_NAME}" | ||
oc apply -f "$DIR/resources/redis-cache/redis-deployment.yaml" --namespace="${NAME_SPACE_RUNTIME}" | ||
apply_yaml_files "${DIR}" "${NAME_SPACE_RUNTIME}" "${RELEASE_NAME}" | ||
|
||
local runtime_url="https://${RELEASE_NAME}-backstage-${NAME_SPACE_RUNTIME}.${K8S_CLUSTER_ROUTER_BASE}" | ||
|
||
apply_yaml_files "${DIR}" "${NAME_SPACE_RUNTIME}" "${runtime_url}" | ||
helm upgrade -i "${RELEASE_NAME}" -n "${NAME_SPACE_RUNTIME}" "${HELM_REPO_NAME}/${HELM_IMAGE_NAME}" --version "${CHART_VERSION}" -f "${DIR}/value_files/${HELM_CHART_VALUE_FILE_NAME}" --set global.clusterRouterBase="${K8S_CLUSTER_ROUTER_BASE}" --set upstream.backstage.image.repository="${QUAY_REPO}" --set upstream.backstage.image.tag="${TAG_NAME}" | ||
check_and_test "${RELEASE_NAME}" "${NAME_SPACE_RUNTIME}" "${url}" | ||
check_and_test "${RELEASE_NAME}" "${NAME_SPACE_RUNTIME}" "${runtime_url}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters