Skip to content

Commit

Permalink
RHIDP-5301 Plugins Sanity Checks (#2121)
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavolira authored Dec 19, 2024
1 parent 72d2f71 commit ab9bb71
Show file tree
Hide file tree
Showing 2 changed files with 156 additions and 0 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}"
}
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

0 comments on commit ab9bb71

Please sign in to comment.