-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added necessary files and configuration to the ci script to test the …
…e2e tests on operator if the nightly job is called
- Loading branch information
1 parent
7e29bd4
commit 0313768
Showing
8 changed files
with
316 additions
and
4 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
19 changes: 19 additions & 0 deletions
19
.ibm/pipelines/resources/rhdh-operator/deployment/rhdh-start-rbac.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,19 @@ | ||
kind: Backstage | ||
apiVersion: rhdh.redhat.com/v1alpha1 | ||
metadata: | ||
name: rhdh-rbac | ||
spec: | ||
application: | ||
appConfig: | ||
configMaps: | ||
- name: app-config-rhdh | ||
mountPath: /opt/app-root/src | ||
dynamicPluginsConfigMapName: dynamic-plugins | ||
extraEnvs: | ||
secrets: | ||
- name: rhdh-secrets | ||
extraFiles: | ||
configMaps: | ||
- name: rbac-policy | ||
mountPath: /opt/app-root/src/rbac | ||
|
18 changes: 18 additions & 0 deletions
18
.ibm/pipelines/resources/rhdh-operator/deployment/rhdh-start.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,18 @@ | ||
kind: Backstage | ||
apiVersion: rhdh.redhat.com/v1alpha1 | ||
metadata: | ||
name: rhdh | ||
spec: | ||
application: | ||
appConfig: | ||
configMaps: | ||
- name: app-config-rhdh | ||
mountPath: /opt/app-root/src | ||
dynamicPluginsConfigMapName: dynamic-plugins | ||
extraEnvs: | ||
secrets: | ||
- name: rhdh-secrets | ||
extraFiles: | ||
configMaps: | ||
- name: rbac-policy | ||
mountPath: /opt/app-root/src/rbac |
93 changes: 93 additions & 0 deletions
93
.ibm/pipelines/resources/rhdh-operator/dynamic_plugins/configmap-dynamic-plugins-rbac.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,93 @@ | ||
kind: ConfigMap | ||
apiVersion: v1 | ||
metadata: | ||
name: dynamic-plugins | ||
data: | ||
dynamic-plugins.yaml: | | ||
includes: | ||
- 'dynamic-plugins.default.yaml' | ||
plugins: | ||
- package: ./dynamic-plugins/dist/backstage-plugin-catalog-backend-module-github-dynamic | ||
disabled: false | ||
pluginConfig: | ||
catalog: | ||
providers: | ||
github: | ||
my-test-org: | ||
organization: janus-qe | ||
catalogPath: '/catalog-info.yaml' | ||
schedule: | ||
frequency: | ||
minutes: 1 | ||
timeout: | ||
minutes: 1 | ||
initialDelay: | ||
seconds: 15 | ||
- package: ./dynamic-plugins/dist/backstage-plugin-catalog-backend-module-github-org-dynamic | ||
disabled: false | ||
- package: ./dynamic-plugins/dist/backstage-plugin-github-issues | ||
disabled: false | ||
- package: ./dynamic-plugins/dist/roadiehq-backstage-plugin-github-pull-requests | ||
disabled: false | ||
- package: ./dynamic-plugins/dist/backstage-plugin-github-actions | ||
disabled: false | ||
- package: ./dynamic-plugins/dist/janus-idp-backstage-plugin-quay | ||
disabled: false | ||
- package: ./dynamic-plugins/dist/janus-idp-backstage-plugin-keycloak-backend-dynamic | ||
disabled: false | ||
- package: ./dynamic-plugins/dist/janus-idp-backstage-plugin-tekton | ||
disabled: false | ||
- package: ./dynamic-plugins/dist/backstage-plugin-kubernetes | ||
disabled: false | ||
- package: ./dynamic-plugins/dist/backstage-plugin-kubernetes-backend-dynamic | ||
disabled: false | ||
pluginConfig: | ||
kubernetes: | ||
clusterLocatorMethods: | ||
- clusters: | ||
- authProvider: serviceAccount | ||
name: 'my-cluster' | ||
serviceAccountToken: ${K8S_SERVICE_ACCOUNT_TOKEN} | ||
url: ${K8S_CLUSTER_API_SERVER_URL} | ||
type: config | ||
customResources: | ||
- apiVersion: 'v1beta1' | ||
group: 'tekton.dev' | ||
plural: 'pipelines' | ||
- apiVersion: v1beta1 | ||
group: tekton.dev | ||
plural: pipelineruns | ||
- apiVersion: v1beta1 | ||
group: tekton.dev | ||
plural: taskruns | ||
- apiVersion: 'v1' | ||
group: 'route.openshift.io' | ||
plural: 'routes' | ||
- group: 'org.eclipse.che' | ||
apiVersion: 'v2' | ||
plural: 'checlusters' | ||
serviceLocatorMethod: | ||
type: multiTenant | ||
- package: ./dynamic-plugins/dist/janus-idp-backstage-plugin-ocm-backend-dynamic | ||
disabled: false | ||
pluginConfig: | ||
catalog: | ||
providers: | ||
ocm: | ||
default: | ||
name: testCluster | ||
url: ${OCM_CLUSTER_URL} | ||
serviceAccountToken: ${OCM_CLUSTER_TOKEN} | ||
skipTLSVerify: true | ||
owner: janus-authors | ||
- package: ./dynamic-plugins/dist/janus-idp-backstage-plugin-ocm | ||
disabled: false | ||
- package: ./dynamic-plugins/dist/backstage-plugin-tech-radar | ||
disabled: false | ||
- package: ./dynamic-plugins/dist/janus-idp-backstage-plugin-acr | ||
disabled: false | ||
- package: ./dynamic-plugins/dist/janus-idp-backstage-plugin-rbac | ||
disabled: false | ||
- package: './dynamic-plugins/dist/janus-idp-backstage-plugin-analytics-provider-segment' | ||
disabled: true |
96 changes: 96 additions & 0 deletions
96
.ibm/pipelines/resources/rhdh-operator/dynamic_plugins/configmap-dynamic-plugins.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,96 @@ | ||
kind: ConfigMap | ||
apiVersion: v1 | ||
metadata: | ||
name: dynamic-plugins | ||
data: | ||
dynamic-plugins.yaml: | | ||
includes: | ||
- 'dynamic-plugins.default.yaml' | ||
plugins: | ||
- package: ./dynamic-plugins/dist/backstage-plugin-catalog-backend-module-github-dynamic | ||
disabled: false | ||
pluginConfig: | ||
catalog: | ||
providers: | ||
github: | ||
my-test-org: | ||
organization: janus-qe | ||
catalogPath: '/catalog-info.yaml' | ||
schedule: | ||
frequency: | ||
minutes: 1 | ||
timeout: | ||
minutes: 1 | ||
initialDelay: | ||
seconds: 15 | ||
- package: ./dynamic-plugins/dist/backstage-plugin-catalog-backend-module-github-org-dynamic | ||
disabled: false | ||
- package: ./dynamic-plugins/dist/backstage-plugin-github-issues | ||
disabled: false | ||
- package: ./dynamic-plugins/dist/roadiehq-backstage-plugin-github-pull-requests | ||
disabled: false | ||
- package: ./dynamic-plugins/dist/backstage-plugin-github-actions | ||
disabled: false | ||
- package: ./dynamic-plugins/dist/janus-idp-backstage-plugin-quay | ||
disabled: false | ||
- package: ./dynamic-plugins/dist/janus-idp-backstage-plugin-keycloak-backend-dynamic | ||
disabled: false | ||
- package: ./dynamic-plugins/dist/janus-idp-backstage-plugin-tekton | ||
disabled: false | ||
- package: ./dynamic-plugins/dist/backstage-plugin-kubernetes | ||
disabled: false | ||
- package: ./dynamic-plugins/dist/backstage-plugin-kubernetes-backend-dynamic | ||
disabled: false | ||
pluginConfig: | ||
kubernetes: | ||
clusterLocatorMethods: | ||
- clusters: | ||
- authProvider: serviceAccount | ||
name: 'my-cluster' | ||
serviceAccountToken: ${K8S_CLUSTER_TOKEN_ENCODED} | ||
url: ${K8S_CLUSTER_API_SERVER_URL} | ||
type: config | ||
customResources: | ||
- apiVersion: 'v1beta1' | ||
group: 'tekton.dev' | ||
plural: 'pipelines' | ||
- apiVersion: v1beta1 | ||
group: tekton.dev | ||
plural: pipelineruns | ||
- apiVersion: v1beta1 | ||
group: tekton.dev | ||
plural: taskruns | ||
- apiVersion: 'v1' | ||
group: 'route.openshift.io' | ||
plural: 'routes' | ||
serviceLocatorMethod: | ||
type: multiTenant | ||
- package: ./dynamic-plugins/dist/janus-idp-backstage-plugin-ocm-backend-dynamic | ||
disabled: false | ||
pluginConfig: | ||
catalog: | ||
providers: | ||
ocm: | ||
default: | ||
name: testCluster # Can be any arbitrary name supported by kubernetes | ||
url: ${OCM_CLUSTER_URL} | ||
serviceAccountToken: ${OCM_CLUSTER_TOKEN} | ||
skipTLSVerify: true | ||
owner: janus-authors | ||
- package: ./dynamic-plugins/dist/janus-idp-backstage-plugin-ocm | ||
disabled: false | ||
- package: ./dynamic-plugins/dist/backstage-plugin-tech-radar | ||
disabled: false | ||
- package: ./dynamic-plugins/dist/janus-idp-backstage-plugin-acr | ||
disabled: false | ||
- package: ./dynamic-plugins/dist/janus-idp-backstage-plugin-rbac | ||
disabled: true | ||
- package: ./dynamic-plugins/dist/roadiehq-scaffolder-backend-module-http-request-dynamic | ||
disabled: false | ||
- package: ./dynamic-plugins/dist/immobiliarelabs-backstage-plugin-gitlab-backend-dynamic | ||
disabled: false | ||
- package: ./dynamic-plugins/dist/backstage-plugin-catalog-backend-module-gitlab-dynamic | ||
disabled: false | ||
- package: ./dynamic-plugins/dist/janus-idp-backstage-plugin-topology | ||
disabled: false |
4 changes: 4 additions & 0 deletions
4
.ibm/pipelines/resources/rhdh-operator/installation/rhdh-operator-group.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,4 @@ | ||
apiVersion: operators.coreos.com/v1 | ||
kind: OperatorGroup | ||
metadata: | ||
name: rhdh-operator-group |
10 changes: 10 additions & 0 deletions
10
.ibm/pipelines/resources/rhdh-operator/installation/rhdh-subscription.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,10 @@ | ||
apiVersion: operators.coreos.com/v1alpha1 | ||
kind: Subscription | ||
metadata: | ||
name: rhdh-operator | ||
spec: | ||
channel: fast | ||
installPlanApproval: Automatic | ||
name: rhdh | ||
source: redhat-operators | ||
sourceNamespace: openshift-marketplace |