try using lookup for secret

This commit is contained in:
2025-05-01 14:50:08 +05:30
parent df379f22e4
commit 48265b0b94

View File

@@ -23,11 +23,8 @@ spec:
retries: 3
values:
hostname: rancher.akshun-lab.uk
bootstrapPassword:
valueFrom:
secretKeyRef:
name: rancher-bootstrap-secret
key: password
bootstrapPassword: |
{{ (lookup "v1" "Secret" "cattle-system" "rancher-bootstrap-secret").data.password | b64dec }}
service:
type: NodePort
nodePort: 90