Skip to content

Commit 297b4a5

Browse files
committed
(fleet/nexus) add nexus pg env variables
1 parent 04bff70 commit 297b4a5

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
apiVersion: external-secrets.io/v1
3+
kind: ExternalSecret
4+
metadata:
5+
name: nexus-pg-creds
6+
namespace: nexus
7+
spec:
8+
secretStoreRef:
9+
kind: ClusterSecretStore
10+
name: onepassword
11+
target:
12+
name: nexus-pg-creds
13+
data:
14+
- secretKey: username
15+
remoteRef:
16+
key: nexus-postgres-creds
17+
property: username
18+
- secretKey: password
19+
remoteRef:
20+
key: nexus-postgres-creds
21+
property: password
22+
- secretKey: url
23+
remoteRef:
24+
key: nexus-postgres-creds
25+
property: url

fleet/lib/nexus/values.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,20 @@ license:
4848
enabled: true
4949
secret: nexus-license
5050
key: sonatype-license-2025-03-03T185609Z.lic
51+
52+
env:
53+
- name: NEXUS_DATASTORE_NEXUS_JDBCURL
54+
valueFrom:
55+
secretKeyRef:
56+
name: nexus-pg-creds
57+
key: url
58+
- name: NEXUS_DATASTORE_NEXUS_USERNAME
59+
valueFrom:
60+
secretKeyRef:
61+
name: nexus-pg-creds
62+
key: username
63+
- name: NEXUS_DATASTORE_NEXUS_PASSWORD
64+
valueFrom:
65+
secretKeyRef:
66+
name: nexus-pg-creds
67+
key: password

0 commit comments

Comments
 (0)