Skip to content

Commit 77c9016

Browse files
feat: Make VCS secret visible in EDP Portal (#111)
* EDP Portal use labels to display secrets Jira EPMDEDP-12859 Related epam/edp-headlamp#86 Change-Id: I2ce970e9f5495c196697c6c186bfb491de232cc4
1 parent 18ab356 commit 77c9016

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

deploy-templates/templates/external-secrets/externalsecret-gitprovider.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ kind: ExternalSecret
88
metadata:
99
name: ci-{{ $gitProvider }}
1010
spec:
11+
target:
12+
template:
13+
metadata:
14+
labels:
15+
app.edp.epam.com/secret-type: repository
1116
refreshInterval: 1h
1217
secretStoreRef:
1318
kind: SecretStore

docs/operator-guide/import-strategy-tekton.md

+12-4
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,18 @@ by taking the steps below.
7272
3. Create a secret in the `edp` namespace for the Git account with the **id_rsa**, **username**, and **token** fields. Take the following template as an example (use ci-github instead of ci-gitlab for GitHub):
7373

7474
```yaml
75-
kubectl create secret generic ci-gitlab -n edp \
76-
--from-file=id_rsa=id_rsa \
77-
--from-literal=username=git \
78-
--from-literal=token=your_gitlab_access_token
75+
apiVersion: v1
76+
kind: Secret
77+
metadata:
78+
name: ci-gitlab
79+
namespace: edp
80+
labels:
81+
app.edp.epam.com/secret-type: repository
82+
type: Opaque
83+
stringData:
84+
id_rsa: <id_rsa_data>
85+
username: git
86+
token: <your_gitlab_access_token>
7987
```
8088
8189
## Related Articles

0 commit comments

Comments
 (0)