Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component

components:
- ../ec
- ../promote-to-candidate

replacements:
- source:
kind: Application
fieldPath: metadata.name
targets:
- select:
kind: Component
fieldPaths:
- spec.application
options:
create: true
- select:
kind: IntegrationTestScenario
fieldPaths:
- spec.application
options:
create: true
- select:
kind: ReleasePlan
fieldPaths:
- spec.application
options:
create: true
- select:
kind: ImageRepository
fieldPaths:
- metadata.labels.[appstudio.redhat.com/application]
options:
create: true
17 changes: 17 additions & 0 deletions konflux-configs/base/application/base/ec/ec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: appstudio.redhat.com/v1beta2
kind: IntegrationTestScenario
metadata:
annotations:
test.appstudio.openshift.io/kind: enterprise-contract
name: -enterprise-contract
spec:
resolverRef:
params:
- name: url
value: https://github.com/konflux-ci/build-definitions
- name: revision
value: main
- name: pathInRepo
value: pipelines/enterprise-contract.yaml
resolver: git
resourceKind: pipeline
26 changes: 26 additions & 0 deletions konflux-configs/base/application/base/ec/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component

resources:
- ec.yaml

replacements:
- source:
kind: Application
fieldPath: metadata.name
targets:
- select:
kind: IntegrationTestScenario
name: -enterprise-contract
fieldPaths:
- spec.application
options:
create: true
- select:
kind: IntegrationTestScenario
name: -enterprise-contract
fieldPaths:
- metadata.name
options:
delimiter: "-"
index: 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component

resources:
- releaseplan.yaml

replacements:
- source:
kind: Application
fieldPath: metadata.name
targets:
- select:
kind: ReleasePlan
name: promote-to-candidate-
fieldPaths:
- spec.application
options:
create: true
- select:
kind: ReleasePlan
name: promote-to-candidate-
fieldPaths:
- metadata.name
options:
delimiter: "-"
index: 3
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: appstudio.redhat.com/v1alpha1
kind: ReleasePlan
metadata:
labels:
release.appstudio.openshift.io/auto-release: 'true'
release.appstudio.openshift.io/standing-attribution: 'true'
name: promote-to-candidate-
spec:
tenantPipeline:
params:
- name: git-url
value: https://github.com/securesign/releases
- name: code-freeze
value: "false"
- name: type
value: "component"
serviceAccountName: rhtas-build-bot
pipelineRef:
resolver: git
params:
- name: url
value: "https://github.com/securesign/pipelines"
- name: revision
value: main
- name: pathInRepo
value: "pipelines/promote-to-candidate.yaml"
5 changes: 4 additions & 1 deletion konflux-configs/base/application/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ kind: Kustomization

resources:
- konflux/base
- pipelines/base
- pipelines/base
- rekor/base
- rekor-monitor/base
- rekor-search/base
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: appstudio.redhat.com/v1alpha1
kind: Application
metadata:
name: rekor-monitor
spec:
displayName: rekor-monitor (main)
15 changes: 15 additions & 0 deletions konflux-configs/base/application/rekor-monitor/base/component.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: appstudio.redhat.com/v1alpha1
kind: Component
metadata:
annotations:
build.appstudio.openshift.io/pipeline: '{"name":"docker-build-oci-ta","bundle":"latest"}'
git-provider: github
git-provider-url: https://github.com
name: rekor-monitor
spec:
componentName: rekor-monitor
source:
git:
url: https://github.com/securesign/rekor-monitor
revision: main
dockerfileUrl: Dockerfile.rh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: appstudio.redhat.com/v1alpha1
kind: ImageRepository
metadata:
name: imagerepository-for-rekor-monitor-rekor-monitor
labels:
appstudio.redhat.com/component: rekor-monitor
spec:
image:
name: rhtas-tenant/rekor-monitor
visibility: public
notifications:
- config:
url: https://bombino.api.redhat.com/v1/sbom/quay/push
event: repo_push
method: webhook
title: SBOM-event-to-Bombino
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- application.yaml
- component.yaml
- imagerepository.yaml

components:
- ../../base/application
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: appstudio.redhat.com/v1alpha1
kind: Application
metadata:
name: rekor-search
spec:
displayName: rekor-search (main)
15 changes: 15 additions & 0 deletions konflux-configs/base/application/rekor-search/base/component.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: appstudio.redhat.com/v1alpha1
kind: Component
metadata:
annotations:
build.appstudio.openshift.io/pipeline: '{"name":"docker-build-oci-ta","bundle":"latest"}'
git-provider: github
git-provider-url: https://github.com
name: rekor-search
spec:
componentName: rekor-search
source:
git:
url: https://github.com/securesign/rekor-search-ui
revision: main
dockerfileUrl: Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: appstudio.redhat.com/v1alpha1
kind: ImageRepository
metadata:
name: imagerepository-for-rekor-search-rekor-search
labels:
appstudio.redhat.com/component: rekor-search
spec:
image:
name: rhtas-tenant/rekor-search
visibility: public
notifications:
- config:
url: https://bombino.api.redhat.com/v1/sbom/quay/push
event: repo_push
method: webhook
title: SBOM-event-to-Bombino
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- application.yaml
- component.yaml
- imagerepository.yaml

components:
- ../../base/application
6 changes: 6 additions & 0 deletions konflux-configs/base/application/rekor/base/application.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: appstudio.redhat.com/v1alpha1
kind: Application
metadata:
name: rekor
spec:
displayName: rekor (main)
58 changes: 58 additions & 0 deletions konflux-configs/base/application/rekor/base/component.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---

apiVersion: appstudio.redhat.com/v1alpha1
kind: Component
metadata:
annotations:
build.appstudio.openshift.io/pipeline: '{"name":"docker-build-oci-ta","bundle":"latest"}'
git-provider: github
git-provider-url: https://github.com
name: backfill-redis
spec:
componentName: backfill-redis
source:
git:
context: ./
url: https://github.com/securesign/rekor
revision: main
dockerfileUrl: Dockerfile.backfill-redis.rh

---

apiVersion: appstudio.redhat.com/v1alpha1
kind: Component
metadata:
annotations:
build.appstudio.openshift.io/pipeline: '{"name":"docker-build-oci-ta","bundle":"latest"}'
git-provider: github
git-provider-url: https://github.com
name: rekor-cli
spec:
componentName: rekor-cli
source:
git:
context: ./
url: https://github.com/securesign/rekor
revision: main
dockerfileUrl: Dockerfile.rekor-cli.rh

---

apiVersion: appstudio.redhat.com/v1alpha1
kind: Component
metadata:
annotations:
build.appstudio.openshift.io/pipeline: '{"name":"docker-build-oci-ta","bundle":"latest"}'
git-provider: github
git-provider-url: https://github.com
name: rekor-server
spec:
componentName: rekor-server
source:
git:
context: ./
url: https://github.com/securesign/rekor
revision: main
dockerfileUrl: Dockerfile.rekor-server.rh

---
58 changes: 58 additions & 0 deletions konflux-configs/base/application/rekor/base/imagerepository.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---

apiVersion: appstudio.redhat.com/v1alpha1
kind: ImageRepository
metadata:
name: imagerepository-for-rekor-backfill-redis
labels:
appstudio.redhat.com/component: backfill-redis
spec:
image:
name: rhtas-tenant/backfill-redis
visibility: public
notifications:
- config:
url: https://bombino.api.redhat.com/v1/sbom/quay/push
event: repo_push
method: webhook
title: SBOM-event-to-Bombino

---

apiVersion: appstudio.redhat.com/v1alpha1
kind: ImageRepository
metadata:
name: imagerepository-for-rekor-rekor-cli
labels:
appstudio.redhat.com/component: rekor-cli
spec:
image:
name: rhtas-tenant/rekor-cli
visibility: public
notifications:
- config:
url: https://bombino.api.redhat.com/v1/sbom/quay/push
event: repo_push
method: webhook
title: SBOM-event-to-Bombino

---

apiVersion: appstudio.redhat.com/v1alpha1
kind: ImageRepository
metadata:
name: imagerepository-for-rekor-rekor-server
labels:
appstudio.redhat.com/component: rekor-server
spec:
image:
name: rhtas-tenant/rekor-server
visibility: public
notifications:
- config:
url: https://bombino.api.redhat.com/v1/sbom/quay/push
event: repo_push
method: webhook
title: SBOM-event-to-Bombino

---
10 changes: 10 additions & 0 deletions konflux-configs/base/application/rekor/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- application.yaml
- component.yaml
- imagerepository.yaml

components:
- ../../base/application
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ resources:
- timestamp-authority
- segment-backup-job
- scaffold
- rekor-search
- rekor
- fulcio
- cli
- certificate-transparency-go
- rekor-monitor
- policy-controller
Loading