Skip to content

Commit 3a01ff6

Browse files
committed
feat: add rhtas-operator project configuration
Signed-off-by: Tomas Turek <tturek@redhat.com>
1 parent 92c7dd5 commit 3a01ff6

25 files changed

+416
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: kustomize.config.k8s.io/v1alpha1
2+
kind: Component
3+
4+
patches:
5+
- target:
6+
kind: ProjectDevelopmentStreamTemplate
7+
path: patch.yaml
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
- op: add
2+
path: /spec/resources/-
3+
value:
4+
apiVersion: appstudio.redhat.com/v1beta2
5+
kind: IntegrationTestScenario
6+
metadata:
7+
annotations:
8+
test.appstudio.openshift.io/kind: enterprise-contract
9+
name: "{{.application}}{{.nameSuffix}}-monorepo-snapshot"
10+
spec:
11+
application: "{{.application}}{{.nameSuffix}}"
12+
contexts:
13+
- description: execute the integration test for a Snapshot created for a `push` event
14+
name: push
15+
resolverRef:
16+
params:
17+
- name: url
18+
value: https://github.com/securesign/pipelines.git
19+
- name: revision
20+
value: main
21+
- name: pathInRepo
22+
value: pipelines/monorepo-check.yaml
23+
resolver: git
24+
resourceKind: pipeline
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: kustomize.config.k8s.io/v1alpha1
2+
kind: Component
3+
4+
patches:
5+
- target:
6+
kind: ProjectDevelopmentStreamTemplate
7+
path: patch.yaml
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
- op: add
2+
path: /spec/resources/-
3+
value:
4+
apiVersion: appstudio.redhat.com/v1alpha1
5+
kind: ReleasePlan
6+
metadata:
7+
labels:
8+
release.appstudio.openshift.io/auto-release: 'true'
9+
release.appstudio.openshift.io/standing-attribution: 'true'
10+
name: "promote-to-candidate-{{.application}}{{.nameSuffix}}"
11+
spec:
12+
application: "{{.application}}{{.nameSuffix}}"
13+
tenantPipeline:
14+
params:
15+
- name: git-url
16+
value: https://github.com/securesign/releases
17+
- name: code-freeze
18+
value: "false"
19+
- name: type
20+
value: "operator"
21+
serviceAccountName: rhtas-build-bot
22+
pipelineRef:
23+
resolver: git
24+
params:
25+
- name: url
26+
value: "https://github.com/securesign/pipelines"
27+
- name: revision
28+
value: main
29+
- name: pathInRepo
30+
value: "pipelines/promote-to-candidate.yaml"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
4+
resources:
5+
- overlay/rhtas-operator
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
4+
resources:
5+
- project.yaml
6+
- template.yaml
7+
8+
components:
9+
- ../../base/release-plan
10+
- ../../base/monorepo
11+
12+
patches:
13+
- target:
14+
name: operator-template
15+
kind: ProjectDevelopmentStreamTemplate
16+
path: patch/manager.yaml
17+
- target:
18+
name: operator-template
19+
kind: ProjectDevelopmentStreamTemplate
20+
path: patch/bundle.yaml
21+
- target:
22+
name: operator-template
23+
kind: ProjectDevelopmentStreamTemplate
24+
path: patch/ec.yaml
25+
- target:
26+
name: operator-template
27+
kind: ProjectDevelopmentStreamTemplate
28+
path: patch/e2e.yaml
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
- op: add
2+
path: /spec/resources/-
3+
value:
4+
apiVersion: appstudio.redhat.com/v1alpha1
5+
kind: Component
6+
metadata:
7+
name: "rhtas-operator-bundle{{.nameSuffix}}"
8+
spec:
9+
application: "{{.application}}{{.nameSuffix}}"
10+
componentName: "rhtas-operator-bundle{{.nameSuffix}}"
11+
source:
12+
git:
13+
context: ./
14+
dockerfileUrl: bundle.Dockerfile
15+
revision: "{{.branch}}"
16+
url: https://github.com/securesign/secure-sign-operator
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
- op: add
2+
path: /spec/resources/-
3+
value:
4+
apiVersion: appstudio.redhat.com/v1beta2
5+
kind: IntegrationTestScenario
6+
metadata:
7+
labels:
8+
test.appstudio.openshift.io/optional: "true"
9+
name: "rhtas-operator-e2e-test{{.nameSuffix}}"
10+
spec:
11+
application: "{{.application}}{{.nameSuffix}}"
12+
contexts:
13+
- description: runs the integration test for a group Snapshot
14+
name: group
15+
resolverRef:
16+
params:
17+
- name: url
18+
value: https://github.com/securesign/pipelines.git
19+
- name: revision
20+
value: main
21+
- name: pathInRepo
22+
value: pipelines/rhtas-operator-e2e.yaml
23+
resolver: git
24+
resourceKind: pipeline
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
- op: add
2+
path: /spec/resources/-
3+
value:
4+
apiVersion: appstudio.redhat.com/v1beta2
5+
kind: IntegrationTestScenario
6+
metadata:
7+
annotations:
8+
test.appstudio.openshift.io/kind: enterprise-contract
9+
name: "{{.application}}{{.nameSuffix}}-enterprise-contract"
10+
spec:
11+
application: "{{.application}}{{.nameSuffix}}"
12+
contexts:
13+
- description: "execute the integration test when component rhtas-operator{{.nameSuffix}} updates"
14+
name: "component_rhtas-operator{{.nameSuffix}}"
15+
params:
16+
- name: POLICY_CONFIGURATION
17+
value: rhtap-releng-tenant/registry-rhtas
18+
- name: SINGLE_COMPONENT
19+
value: "true"
20+
resolverRef:
21+
params:
22+
- name: url
23+
value: https://github.com/redhat-appstudio/build-definitions
24+
- name: revision
25+
value: main
26+
- name: pathInRepo
27+
value: pipelines/enterprise-contract.yaml
28+
resolver: git
29+
resourceKind: pipeline
30+
31+
- op: add
32+
path: /spec/resources/-
33+
value:
34+
apiVersion: appstudio.redhat.com/v1beta2
35+
kind: IntegrationTestScenario
36+
metadata:
37+
annotations:
38+
test.appstudio.openshift.io/kind: enterprise-contract
39+
name: "{{.application}}{{.nameSuffix}}-enterprise-contract-group"
40+
spec:
41+
application: "{{.application}}{{.nameSuffix}}"
42+
contexts:
43+
- description: execute the integration test for a Snapshot of the `group` type
44+
name: group
45+
params:
46+
- name: POLICY_CONFIGURATION
47+
value: rhtap-releng-tenant/registry-rhtas
48+
resolverRef:
49+
params:
50+
- name: url
51+
value: https://github.com/konflux-ci/build-definitions
52+
- name: revision
53+
value: main
54+
- name: pathInRepo
55+
value: pipelines/enterprise-contract.yaml
56+
resolver: git
57+
resourceKind: pipeline
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
- op: add
2+
path: /spec/resources/-
3+
value:
4+
apiVersion: appstudio.redhat.com/v1alpha1
5+
kind: Component
6+
metadata:
7+
name: "rhtas-operator{{.nameSuffix}}"
8+
spec:
9+
application: "{{.application}}{{.nameSuffix}}"
10+
componentName: "rhtas-operator{{.nameSuffix}}"
11+
source:
12+
git:
13+
context: ./
14+
dockerfileUrl: Dockerfile.rhtas-operator.rh
15+
revision: "{{.branch}}"
16+
url: https://github.com/securesign/secure-sign-operator

0 commit comments

Comments
 (0)