Skip to content

Commit

Permalink
feat(rook): preprovision rook dash pass
Browse files Browse the repository at this point in the history
  • Loading branch information
buroa committed Dec 19, 2023
1 parent 10bfdda commit d941ef9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
18 changes: 18 additions & 0 deletions kubernetes/apps/rook-ceph/rook-ceph/app/externalsecret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: rook-ceph-dashboard
spec:
secretStoreRef:
kind: ClusterSecretStore
name: onepassword-connect
target:
name: rook-ceph-dashboard-password # rook expects this name
template:
engineVersion: v2
data:
password: "{{ .ROOK_DASHBOARD_PASSWORD }}"
dataFrom:
- extract:
key: rook
1 change: 1 addition & 0 deletions kubernetes/apps/rook-ceph/rook-ceph/app/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./helmrelease.yaml
- ./externalsecret.yaml
2 changes: 2 additions & 0 deletions kubernetes/apps/rook-ceph/rook-ceph/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ metadata:
namespace: flux-system
spec:
targetNamespace: rook-ceph
dependsOn:
- name: cluster-apps-external-secrets-stores
path: ./kubernetes/apps/rook-ceph/rook-ceph/app
prune: true
sourceRef:
Expand Down

0 comments on commit d941ef9

Please sign in to comment.