Skip to content
Open
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
5 changes: 3 additions & 2 deletions release/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ executes in [Konflux](https://konflux-ci.dev/).

## Setup

The [setup.yaml](setup.yaml) file should be applied to the namespace where the release Pipeline
will run. This creates a ServiceAccount with access to perform the release.
The [setup.yaml](setup.yaml) file defines the RBAC resources for the release Pipeline. The
pipeline runs as the `konflux-bot-0` ServiceAccount (pre-created by Konflux) with push
secrets attached in the cluster.

## Why are there two verify-enterprise-contract Tasks?

Expand Down
25 changes: 10 additions & 15 deletions release/setup.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
# Copyright The Conforma Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -15,19 +14,15 @@
#
# SPDX-License-Identifier: Apache-2.0

# A dedicated ServiceAccount is used to create create a distinction between build and release access.
apiVersion: v1
kind: ServiceAccount
metadata:
name: tenant-release
namespace: rhtap-contract-tenant
secrets:
# Push credential for quay.io/conforma/cli
# and quay.io/enterprise-contract/cli
- name: ec-cli-main
# Push credential for quay.io/conforma/tekton-task
# and quay.io/enterprise-contract/tekton-task
- name: ec-tekton-task-main
# The konflux-bot-0 ServiceAccount is pre-created by Konflux. The secrets
# and role binding below grant it push access to the release registries
# and read access to release resources.
#
# The following secrets must be attached to konflux-bot-0 in the cluster:
# - ec-cli-main: push credential for quay.io/conforma/cli
# and quay.io/enterprise-contract/cli
# - ec-tekton-task-main: push credential for quay.io/conforma/tekton-task
# and quay.io/enterprise-contract/tekton-task
Comment thread
robnester-rh marked this conversation as resolved.
---
Comment thread
robnester-rh marked this conversation as resolved.
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
Expand All @@ -53,7 +48,7 @@ metadata:
namespace: rhtap-contract-tenant
subjects:
- kind: ServiceAccount
name: tenant-release
name: konflux-bot-0
roleRef:
kind: Role
name: tenant-release
Expand Down
Loading