Skip to content

Commit

Permalink
Merge branch 'main' into add-kubernetes-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dzemanov authored Dec 23, 2024
2 parents f4791e4 + 098f493 commit 1dd8c34
Show file tree
Hide file tree
Showing 39 changed files with 1,265 additions and 876 deletions.
12 changes: 12 additions & 0 deletions .ibm/pipelines/jobs/periodic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ handle_nightly() {

cluster_setup
initiate_deployments
add_sanity_plugins_check
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}"
Expand All @@ -29,3 +30,14 @@ handle_nightly() {
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}" "${runtime_url}"
}

add_sanity_plugins_check() {
helm upgrade -i "${RELEASE_NAME}" \
-n "${NAME_SPACE}" "${HELM_REPO_NAME}/${HELM_IMAGE_NAME}" \
--version "${CHART_VERSION}" \
-f "${DIR}/value_files/${HELM_CHART_VALUE_FILE_NAME}" \
-f "${DIR}/value_files/sanity-check-plugins.yaml" \
--set global.clusterRouterBase="${K8S_CLUSTER_ROUTER_BASE}" \
--set upstream.backstage.image.repository="${QUAY_REPO}" \
--set upstream.backstage.image.tag="${TAG_NAME}"
}
3 changes: 3 additions & 0 deletions .ibm/pipelines/openshift-ci-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@
set -e
export PS4='[$(date "+%Y-%m-%d %H:%M:%S")] ' # logs timestamp for every cmd.

# Define log file names and directories.
LOGFILE="test-log"
export DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
OVERALL_RESULT=0

# Define a cleanup function to be executed upon script exit.
# shellcheck disable=SC2317
cleanup() {
echo "Cleaning up before exiting"
if [[ "$JOB_NAME" == *aks* && "${OPENSHIFT_CI}" == "true" ]]; then
# If the job is for Azure Kubernetes Service (AKS), stop the AKS cluster.
az_aks_stop "${AKS_NIGHTLY_CLUSTER_NAME}" "${AKS_NIGHTLY_CLUSTER_RESOURCEGROUP}"
fi
rm -rf ~/tmpbin
Expand Down
4 changes: 2 additions & 2 deletions .ibm/pipelines/resources/config_map/rbac-policy.csv
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ p, role:xyz/team_a, catalog.entity.create, create, allow
p, role:xyz/team_a, catalog.location.create, create, allow
p, role:xyz/team_a, catalog.location.read, read, allow

g, user:default/rhdh-qe-user, role:default/qe_rbac_admin
g, user:default/rhdh-qe, role:default/qe_rbac_admin
p, role:default/qe_rbac_admin, kubernetes.proxy, use, allow
p, role:default/qe_rbac_admin, catalog.entity.create, create, allow
p, role:default/qe_rbac_admin, catalog.location.create, create, allow
Expand All @@ -17,4 +17,4 @@ p, role:default/qe_rbac_admin, catalog.location.read, read, allow
p, role:default/bulk_import, bulk.import, use, allow
p, role:default/bulk_import, catalog.location.create, create, allow
p, role:default/bulk_import, catalog.entity.create, create, allow
g, group:default/rhdh-qe-2-team, role:default/bulk_import
g, group:default/rhdh-qe-2-team, role:default/bulk_import
2 changes: 2 additions & 0 deletions .ibm/pipelines/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,8 @@ run_tests() {
cp -a "/tmp/${LOGFILE}.html" "${ARTIFACT_DIR}/${project}"
cp -a /tmp/backstage-showcase/e2e-tests/playwright-report/* "${ARTIFACT_DIR}/${project}"

droute_send "${release_name}" "${project}"

echo "${project} RESULT: ${RESULT}"
if [ "${RESULT}" -ne 0 ]; then
OVERALL_RESULT=1
Expand Down
144 changes: 144 additions & 0 deletions .ibm/pipelines/value_files/sanity-check-plugins.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
global:
dynamic:
plugins:
# sanity check https://issues.redhat.com/browse/RHIDP-5301
- package: ./dynamic-plugins/dist/backstage-plugin-catalog-backend-module-gitlab-org-dynamic
disabled: false
- package: ./dynamic-plugins/dist/roadiehq-backstage-plugin-github-insights
disabled: false
- package: ./dynamic-plugins/dist/roadiehq-backstage-plugin-security-insights
disabled: false
- package: ./dynamic-plugins/dist/backstage-plugin-scaffolder-backend-module-gitlab-dynamic
disabled: false
- package: ./dynamic-plugins/dist/immobiliarelabs-backstage-plugin-gitlab
disabled: false
- package: ./dynamic-plugins/dist/roadiehq-backstage-plugin-argo-cd-backend-dynamic
disabled: false
- package: ./dynamic-plugins/dist/roadiehq-scaffolder-backend-argocd-dynamic
disabled: false
- package: ./dynamic-plugins/dist/roadiehq-backstage-plugin-argo-cd
disabled: false
- package: ./dynamic-plugins/dist/backstage-community-plugin-redhat-argocd
disabled: false
- package: ./dynamic-plugins/dist/backstage-plugin-scaffolder-backend-module-azure-dynamic
disabled: false
- package: ./dynamic-plugins/dist/backstage-community-plugin-azure-devops-backend-dynamic
disabled: false
- package: ./dynamic-plugins/dist/backstage-community-plugin-azure-devops
disabled: false
- package: ./dynamic-plugins/dist/parfuemerie-douglas-scaffolder-backend-module-azure-repositories-dynamic
disabled: false
- package: ./dynamic-plugins/dist/backstage-community-plugin-jenkins-backend-dynamic
disabled: false
- package: ./dynamic-plugins/dist/backstage-community-plugin-jenkins
disabled: false
- package: ./dynamic-plugins/dist/backstage-plugin-notifications
disabled: false
- package: ./dynamic-plugins/dist/backstage-plugin-notifications-backend-dynamic
disabled: false
- package: ./dynamic-plugins/dist/backstage-plugin-notifications-backend-module-email-dynamic
disabled: false
- package: ./dynamic-plugins/dist/backstage-plugin-signals-backend-dynamic
disabled: false
- package: ./dynamic-plugins/dist/backstage-plugin-signals
disabled: false
- package: ./dynamic-plugins/dist/backstage-community-plugin-sonarqube-backend-dynamic
disabled: false
- package: ./dynamic-plugins/dist/backstage-community-plugin-sonarqube
disabled: false
pluginConfig:
sonarqube:
baseUrl: 'temp'
apiKey: 'temp'
- package: ./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-dynamic-home-page
disabled: false
- package: ./dynamic-plugins/dist/backstage-plugin-techdocs-backend-dynamic
disabled: false
- package: ./dynamic-plugins/dist/backstage-plugin-techdocs
disabled: false
- package: ./dynamic-plugins/dist/pagerduty-backstage-plugin
disabled: false
- package: ./dynamic-plugins/dist/pagerduty-backstage-plugin-backend-dynamic
disabled: false
pluginConfig:
pagerDuty:
apiBaseUrl: 'temp'
oauth:
clientId: 'temp'
clientSecret: 'temp'
subDomain: 'temp'
- package: ./dynamic-plugins/dist/backstage-plugin-scaffolder-backend-module-gerrit-dynamic
disabled: false
- package: ./dynamic-plugins/dist/roadiehq-scaffolder-backend-module-utils-dynamic
disabled: false
- package: ./dynamic-plugins/dist/backstage-community-plugin-scaffolder-backend-module-quay-dynamic
disabled: false
- package: ./dynamic-plugins/dist/backstage-community-plugin-scaffolder-backend-module-regex-dynamic
disabled: false
- package: ./dynamic-plugins/dist/backstage-community-plugin-scaffolder-backend-module-servicenow-dynamic
disabled: false
pluginConfig:
servicenow:
# The base url of the ServiceNow instance.
baseUrl: 'temp'
# The username to use for authentication.
username: 'temp'
# The password to use for authentication.
password: 'temp'
- package: ./dynamic-plugins/dist/backstage-community-plugin-scaffolder-backend-module-sonarqube-dynamic
disabled: false
- package: ./dynamic-plugins/dist/janus-idp-backstage-plugin-aap-backend-dynamic
disabled: false
pluginConfig:
catalog:
providers:
aap:
prod:
baseUrl: 'temp'
authorization: "temp"
- package: ./dynamic-plugins/dist/backstage-community-plugin-3scale-backend-dynamic
disabled: false
- package: ./dynamic-plugins/dist/backstage-plugin-scaffolder-backend-module-bitbucket-cloud-dynamic
disabled: false
- package: ./dynamic-plugins/dist/backstage-plugin-catalog-backend-module-bitbucket-cloud-dynamic
disabled: false
- package: ./dynamic-plugins/dist/backstage-plugin-scaffolder-backend-module-bitbucket-server-dynamic
disabled: false
- package: ./dynamic-plugins/dist/backstage-plugin-catalog-backend-module-bitbucket-server-dynamic
disabled: false
pluginConfig:
# https://backstage.io/docs/integrations/bitbucketServer/discovery#configuration
catalog:
providers:
bitbucketServer:
default: # identifies your ingested dataset
host: 'temp'
schedule:
frequency:
minutes: 30
initialDelay:
minutes: 1
timeout:
minutes: 3
- package: ./dynamic-plugins/dist/backstage-community-plugin-dynatrace
disabled: false
- package: ./dynamic-plugins/dist/roadiehq-backstage-plugin-jira
disabled: false
- package: ./dynamic-plugins/dist/roadiehq-backstage-plugin-datadog
disabled: false
- package: ./dynamic-plugins/dist/backstage-community-plugin-nexus-repository-manager
disabled: false
- package: ./dynamic-plugins/dist/backstage-community-plugin-jfrog-artifactory
disabled: false
- package: ./dynamic-plugins/dist/backstage-community-plugin-lighthouse
disabled: false
- package: ./dynamic-plugins/dist/backstage-community-plugin-analytics-provider-segment
disabled: false
- package: ./dynamic-plugins/dist/backstage-community-plugin-catalog-backend-module-scaffolder-relation-processor-dynamic
disabled: false
- package: ./dynamic-plugins/dist/backstage-plugin-catalog-backend-module-msgraph-dynamic
disabled: false
- package: ./dynamic-plugins/dist/backstage-plugin-catalog-backend-module-ldap-dynamic
disabled: false
- package: ./dynamic-plugins/dist/backstage-community-plugin-catalog-backend-module-pingidentity-dynamic
disabled: false
Loading

0 comments on commit 1dd8c34

Please sign in to comment.