Skip to content

Commit 2d0793e

Browse files
authored
Merge pull request #869 from lsst-it/IT-6108/rook-kafka-secrets
(ayekan,konkong,elqui) convert CephBucketTopic kafka configuration to use k8s secrets
2 parents a1b0064 + 382bf25 commit 2d0793e

11 files changed

+79
-22
lines changed

fleet/lib/rook-ceph-conf/charts/ayekan/templates/cephbuckettopic-lsst.s3.raw.comcam.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ spec:
1414
ackLevel: broker
1515
useSSL: true
1616
mechanism: SCRAM-SHA-512
17-
UserSecretRef: # lowercase for rook >= 1.17.2
17+
userSecretRef:
1818
name: &item kafka-bucket-notifications
1919
key: username
20-
PasswordSecretRef: # lowercase for rook >= 1.17.2
20+
passwordSecretRef:
2121
name: *item
2222
key: password

fleet/lib/rook-ceph-conf/charts/ayekan/templates/cephbuckettopic-lsst.s3.raw.latiss.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ spec:
1414
ackLevel: broker
1515
useSSL: true
1616
mechanism: SCRAM-SHA-512
17-
UserSecretRef: # lowercase for rook >= 1.17.2
17+
userSecretRef:
1818
name: &item kafka-bucket-notifications
1919
key: username
20-
PasswordSecretRef: # lowercase for rook >= 1.17.2
20+
passwordSecretRef:
2121
name: *item
2222
key: password

fleet/lib/rook-ceph-conf/charts/ayekan/templates/cephbuckettopic-lsst.s3.raw.lsstcam.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ spec:
1414
ackLevel: broker
1515
useSSL: true
1616
mechanism: SCRAM-SHA-512
17-
UserSecretRef: # lowercase for rook >= 1.17.2
17+
userSecretRef:
1818
name: &item kafka-bucket-notifications
1919
key: username
20-
PasswordSecretRef: # lowercase for rook >= 1.17.2
20+
passwordSecretRef:
2121
name: *item
2222
key: password

rke2/elqui/rook-ceph/s3/bucket-rubinobs-raw-comcam-cephbuckettopic.yaml renamed to fleet/lib/rook-ceph-conf/charts/elqui/templates/cephbuckettopic-lsst.s3.raw.comcam.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ spec:
1010
persistent: false
1111
endpoint:
1212
kafka:
13-
uri: kafka://@sasquatch-summit-kafka-bootstrap.lsst.codes:9094
13+
uri: kafka://sasquatch-summit-kafka-bootstrap.lsst.codes:9094
1414
ackLevel: broker
1515
useSSL: true
1616
mechanism: SCRAM-SHA-512
17+
userSecretRef:
18+
name: &item kafka-bucket-notifications
19+
key: username
20+
passwordSecretRef:
21+
name: *item
22+
key: password

rke2/elqui/rook-ceph/s3/bucket-rubinobs-raw-latiss-cephbuckettopic.yaml renamed to fleet/lib/rook-ceph-conf/charts/elqui/templates/cephbuckettopic-lsst.s3.raw.latiss.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ spec:
1010
persistent: false
1111
endpoint:
1212
kafka:
13-
uri: kafka://@sasquatch-summit-kafka-bootstrap.lsst.codes:9094
13+
uri: kafka://sasquatch-summit-kafka-bootstrap.lsst.codes:9094
1414
ackLevel: broker
1515
useSSL: true
1616
mechanism: SCRAM-SHA-512
17+
userSecretRef:
18+
name: &item kafka-bucket-notifications
19+
key: username
20+
passwordSecretRef:
21+
name: *item
22+
key: password

rke2/elqui/rook-ceph/s3/bucket-rubinobs-raw-lsstcam-cephbuckettopic.yaml renamed to fleet/lib/rook-ceph-conf/charts/elqui/templates/cephbuckettopic-lsst.s3.raw.lsstcam.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ spec:
1010
persistent: false
1111
endpoint:
1212
kafka:
13-
uri: kafka://@sasquatch-summit-kafka-bootstrap.lsst.codes:9094
13+
uri: kafka://sasquatch-summit-kafka-bootstrap.lsst.codes:9094
1414
ackLevel: broker
1515
useSSL: true
1616
mechanism: SCRAM-SHA-512
17+
userSecretRef:
18+
name: &item kafka-bucket-notifications
19+
key: username
20+
passwordSecretRef:
21+
name: *item
22+
key: password
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
apiVersion: external-secrets.io/v1beta1
3+
kind: ExternalSecret
4+
metadata:
5+
name: kafka-bucket-notifications
6+
namespace: rook-ceph
7+
spec:
8+
secretStoreRef:
9+
kind: ClusterSecretStore
10+
name: onepassword
11+
data:
12+
- secretKey: username
13+
remoteRef:
14+
key: &item kafka-bucket-notifications
15+
property: username
16+
- secretKey: password
17+
remoteRef:
18+
key: *item
19+
property: password

rke2/konkong/rook-ceph/s3/bucket-rubinobs-raw-latiss-cephbuckettopic.yaml renamed to fleet/lib/rook-ceph-conf/charts/konkong/templates/cephbuckettopic-lsst.s3.raw.latiss.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ spec:
1010
persistent: false
1111
endpoint:
1212
kafka:
13-
uri: kafka://@sasquatch-base-kafka-bootstrap.lsst.codes:9094
13+
uri: kafka://sasquatch-base-kafka-bootstrap.lsst.codes:9094
1414
ackLevel: broker
1515
useSSL: true
1616
mechanism: SCRAM-SHA-512
17+
userSecretRef:
18+
name: &item kafka-bucket-notifications
19+
key: username
20+
passwordSecretRef:
21+
name: *item
22+
key: password

rke2/konkong/rook-ceph/s3/bucket-rubinobs-raw-lsstcam-cephbuckettopic.yaml renamed to fleet/lib/rook-ceph-conf/charts/konkong/templates/cephbuckettopic-lsst.s3.raw.lsstcam.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ spec:
1010
persistent: false
1111
endpoint:
1212
kafka:
13-
uri: kafka://@sasquatch-base-kafka-bootstrap.lsst.codes:9094
13+
uri: kafka://sasquatch-base-kafka-bootstrap.lsst.codes:9094
1414
ackLevel: broker
1515
useSSL: true
1616
mechanism: SCRAM-SHA-512
17+
userSecretRef:
18+
name: &item kafka-bucket-notifications
19+
key: username
20+
passwordSecretRef:
21+
name: *item
22+
key: password
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
apiVersion: external-secrets.io/v1beta1
3+
kind: ExternalSecret
4+
metadata:
5+
name: kafka-bucket-notifications
6+
namespace: rook-ceph
7+
spec:
8+
secretStoreRef:
9+
kind: ClusterSecretStore
10+
name: onepassword
11+
data:
12+
- secretKey: username
13+
remoteRef:
14+
key: &item kafka-bucket-notifications
15+
property: username
16+
- secretKey: password
17+
remoteRef:
18+
key: *item
19+
property: password

rke2/elqui/rook-ceph/s3/README.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)