Skip to content

Commit be807bb

Browse files
committed
konflux-ci: add gangway-token & link to SA
1 parent 87d23b8 commit be807bb

File tree

5 files changed

+89
-0
lines changed

5 files changed

+89
-0
lines changed

components/cluster-secret-store/base/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ kind: Kustomization
33
resources:
44
- appsre-stonesoup-vault-secret-store.yaml
55
- appsre-vault-secret-store.yml
6+
- testplatform-vault-secret-store.yaml
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
apiVersion: external-secrets.io/v1beta1
3+
kind: ClusterSecretStore
4+
metadata:
5+
name: testplatform-vault
6+
annotations:
7+
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
8+
spec:
9+
provider:
10+
vault:
11+
server: "https://vault.ci.ext.devshift.net"
12+
path: stonesoup
13+
version: v2
14+
auth:
15+
# VaultAppRole authenticates with Vault using the
16+
# App Role auth mechanism
17+
# https://www.vaultproject.io/docs/auth/approle
18+
appRole:
19+
# Path where the App Role authentication backend is mounted
20+
path: approle
21+
# RoleID configured in the App Role authentication backend
22+
roleId: d2d9c931-5fce-7b40-bf69-f4ee411ee891
23+
# Reference to a key in a K8 Secret that contains the App Role SecretId
24+
secretRef:
25+
name: appsre-vault
26+
key: secret-id
27+
namespace: appsre-vault
28+
conditions:
29+
- namespaces:
30+
- build-templates
31+
- build-templates-e2e
32+
- build-service
33+
- tekton-ci
34+
- konflux-ci
35+
- image-controller
36+
- multi-platform-controller
37+
- openshift-logging
38+
- quality-dashboard
39+
- sprayproxy
40+
- appstudio-monitoring
41+
- appstudio-kanary-exporter
42+
- openshift-pipelines
43+
- rhtap-servicerelease-tenant
44+
- rhtap-build-tenant
45+
- rhtap-o11y-tenant
46+
- admin-checker
47+
- integration-service
48+
- release-service
49+
- ci-helper-app
50+
- mintmaker
51+
- konflux-otel
52+
- local-cluster
53+
- clusters
54+
- crossplane-system
55+
- konflux-qe-team-tenant
56+
- rhtap-shared-team-tenant
57+
- notification-controller
58+
- rhtap-integration-tenant
59+
- rhtap-release-2-tenant
60+
- rhtap-releng-tenant
61+
- costmanagement-metrics-operator
62+
- openshift-adp
63+
- tekton-logging
64+
- tekton-results
65+
- openshift-adp
66+
- product-kubearchive
67+
- pulp-access-controller
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
apiVersion: external-secrets.io/v1beta1
2+
kind: ExternalSecret
3+
metadata:
4+
name: gangway-token
5+
annotations:
6+
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
7+
argocd.argoproj.io/sync-wave: "-1"
8+
spec:
9+
dataFrom:
10+
- extract:
11+
key: production/openshift-ci/gangway-token
12+
refreshInterval: 1h
13+
secretStoreRef:
14+
kind: ClusterSecretStore
15+
name: testplatform-vault
16+
target:
17+
creationPolicy: Owner
18+
deletionPolicy: Delete
19+
name: gangway-token

components/konflux-ci/base/external-secrets/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ resources:
1010
- clair-in-ci-db-github-token.yaml
1111
- registry-redhat-io-pull-secret.yaml
1212
- test-artifacts-push-secret.yaml
13+
- gangway-token.yaml
1314
namespace: konflux-ci

components/konflux-ci/base/serviceaccount.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ metadata:
55
secrets:
66
- name: quay-push-secret-konflux-ci
77
- name: registry-redhat-io-pull-secret
8+
- name: gangway-token
89
imagePullSecrets:
910
- name: quay-push-secret-konflux-ci
1011
- name: registry-redhat-io-pull-secret

0 commit comments

Comments
 (0)