From 2bfdf576dd832971f6d2d66c41c610f8307d5972 Mon Sep 17 00:00:00 2001 From: Isaac Date: Fri, 9 May 2025 17:28:14 +0200 Subject: [PATCH 1/4] Fix folder for readability --- konflux-ci/{ => cli-manifests}/staging-release.yaml | 2 +- konflux-ci/{ => cli-manifests}/staging-snapshot.yaml | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename konflux-ci/{ => cli-manifests}/staging-release.yaml (97%) rename konflux-ci/{ => cli-manifests}/staging-snapshot.yaml (100%) diff --git a/konflux-ci/staging-release.yaml b/konflux-ci/cli-manifests/staging-release.yaml similarity index 97% rename from konflux-ci/staging-release.yaml rename to konflux-ci/cli-manifests/staging-release.yaml index 2cbb2fbf..2fbd658c 100644 --- a/konflux-ci/staging-release.yaml +++ b/konflux-ci/cli-manifests/staging-release.yaml @@ -16,4 +16,4 @@ spec: synopsis: Test to debug Release process description: Test to debug Release process solution: "" - references: "" + references: [] diff --git a/konflux-ci/staging-snapshot.yaml b/konflux-ci/cli-manifests/staging-snapshot.yaml similarity index 100% rename from konflux-ci/staging-snapshot.yaml rename to konflux-ci/cli-manifests/staging-snapshot.yaml From 9f97dee945b2eb01311c5e9166241cf814ad1c5a Mon Sep 17 00:00:00 2001 From: Isaac Date: Fri, 9 May 2025 17:32:01 +0200 Subject: [PATCH 2/4] Add manifest for user RoleBinding --- konflux-ci/cli-manifests/user-actions.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 konflux-ci/cli-manifests/user-actions.yaml diff --git a/konflux-ci/cli-manifests/user-actions.yaml b/konflux-ci/cli-manifests/user-actions.yaml new file mode 100644 index 00000000..e5b0062d --- /dev/null +++ b/konflux-ci/cli-manifests/user-actions.yaml @@ -0,0 +1,19 @@ +# This manifest adds a new RoleBinding for the user to access the Konflux UI. +# * role param specifies the level of permissions among: admin, maintainer, contributor +# * username param specifies the RH user who will be granted the permissions +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + labels: + konflux-ci.dev/type: user + name: konflux-${role}-${username}-actions-user + namespace: dvo-obsint-tenant +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: konflux-${role}-user-actions +subjects: +- apiGroup: rbac.authorization.k8s.io + kind: User + name: ${username} \ No newline at end of file From 9c55ff50c5b3756f0de1ba7a822be48669d11029 Mon Sep 17 00:00:00 2001 From: Isaac Date: Fri, 9 May 2025 17:32:29 +0200 Subject: [PATCH 3/4] Rename file for readability --- .../cli-manifests/{user-actions.yaml => user-rolebinding.yaml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename konflux-ci/cli-manifests/{user-actions.yaml => user-rolebinding.yaml} (100%) diff --git a/konflux-ci/cli-manifests/user-actions.yaml b/konflux-ci/cli-manifests/user-rolebinding.yaml similarity index 100% rename from konflux-ci/cli-manifests/user-actions.yaml rename to konflux-ci/cli-manifests/user-rolebinding.yaml From a085e5b13979ce59dca65f37796a00adfe325a44 Mon Sep 17 00:00:00 2001 From: Isaac Date: Fri, 9 May 2025 17:33:39 +0200 Subject: [PATCH 4/4] Fix EOF --- konflux-ci/cli-manifests/user-rolebinding.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/konflux-ci/cli-manifests/user-rolebinding.yaml b/konflux-ci/cli-manifests/user-rolebinding.yaml index e5b0062d..0142e2af 100644 --- a/konflux-ci/cli-manifests/user-rolebinding.yaml +++ b/konflux-ci/cli-manifests/user-rolebinding.yaml @@ -16,4 +16,4 @@ roleRef: subjects: - apiGroup: rbac.authorization.k8s.io kind: User - name: ${username} \ No newline at end of file + name: ${username}