-
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.
- Loading branch information
Showing
79 changed files
with
1,301 additions
and
792 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: operator.open-cluster-management.io/v1 | ||
kind: MultiClusterHub | ||
metadata: | ||
name: multiclusterhub | ||
namespace: open-cluster-management | ||
spec: {} |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: open-cluster-management | ||
--- | ||
apiVersion: operators.coreos.com/v1 | ||
kind: OperatorGroup | ||
metadata: | ||
name: open-cluster-management | ||
namespace: open-cluster-management | ||
spec: | ||
targetNamespaces: | ||
- open-cluster-management |
11 changes: 11 additions & 0 deletions
11
.ibm/pipelines/cluster/operators/acm/subscription-acm.yaml
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: operators.coreos.com/v1alpha1 | ||
kind: Subscription | ||
metadata: | ||
name: advanced-cluster-management | ||
namespace: open-cluster-management | ||
spec: | ||
channel: release-2.12 | ||
installPlanApproval: Automatic | ||
name: advanced-cluster-management | ||
source: redhat-operators | ||
sourceNamespace: openshift-marketplace |
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,42 +1,16 @@ | ||
#!/bin/sh | ||
|
||
set -x | ||
|
||
set_namespace() { | ||
# Enable parallel PR testing for main branch by utilizing a pool of namespaces | ||
local namespaces_pool=("pr-1" "pr-2" "pr-3") | ||
local namespace_found=false | ||
# Iterate through namespace pool to find an available set | ||
for ns in "${namespaces_pool[@]}"; do | ||
if ! oc get namespace "showcase-$ns" >/dev/null 2>&1; then | ||
echo "Namespace "showcase-$ns" does not exist, Using NS: showcase-$ns, showcase-rbac-$ns, postgress-external-db-$ns" | ||
export NAME_SPACE="showcase-$ns" | ||
export NAME_SPACE_RBAC="showcase-rbac-$ns" | ||
export NAME_SPACE_POSTGRES_DB="postgress-external-db-$ns" | ||
namespace_found=true | ||
break | ||
fi | ||
done | ||
if ! $namespace_found; then | ||
echo "Error: All namespaces $namespaces_pool already in Use" | ||
exit 1 | ||
fi | ||
} | ||
|
||
handle_main() { | ||
echo "Configuring namespace: ${NAME_SPACE}" | ||
set_github_app_4_credentials | ||
set_namespace | ||
oc_login | ||
|
||
API_SERVER_URL=$(oc whoami --show-server) | ||
ENCODED_API_SERVER_URL=$(echo "${API_SERVER_URL}" | base64) | ||
ENCODED_CLUSTER_NAME=$(echo "my-cluster" | base64) | ||
echo "OCP version: $(oc version)" | ||
|
||
export K8S_CLUSTER_ROUTER_BASE=$(oc get route console -n openshift-console -o=jsonpath='{.spec.host}' | sed 's/^[^.]*\.//') | ||
local url="https://${RELEASE_NAME}-backstage-${NAME_SPACE}.${K8S_CLUSTER_ROUTER_BASE}" | ||
cluster_setup | ||
initiate_deployments | ||
deploy_test_backstage_provider "${NAME_SPACE}" | ||
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}" | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,40 +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 | ||
|
||
API_SERVER_URL=$(oc whoami --show-server) | ||
ENCODED_API_SERVER_URL=$(echo "${API_SERVER_URL}" | base64) | ||
ENCODED_CLUSTER_NAME=$(echo "my-cluster" | base64) | ||
|
||
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}" | ||
install_pipelines_operator | ||
sleep 20 # wait for Pipeline Operator/Tekton pipelines to be ready | ||
oc apply -f "$dir/resources/pipeline-run/hello-world-pipeline.yaml" | ||
oc apply -f "$dir/resources/pipeline-run/hello-world-pipeline-run.yaml" | ||
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}" | ||
|
||
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}" | ||
} |
Oops, something went wrong.