8ef5d94674
This PS refactors the ceph chart and secret generation process. The updated chart replaces the existing "bootstrap" chart. Additionally, Ceph manifests and deployment guides were modified accordingly. Change-Id: I6f5bb88fc0f40cfee8865d9dab83859d765e7537 Co-Authored-By: Larry Rensing <lr699s@att.com>
23 lines
500 B
Smarty
23 lines
500 B
Smarty
#!/bin/bash
|
|
set -ex
|
|
|
|
ceph_activate_namespace() {
|
|
kube_namespace=$1
|
|
{
|
|
cat <<EOF
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: "${PVC_CEPH_STORAGECLASS_USER_SECRET_NAME}"
|
|
type: kubernetes.io/rbd
|
|
data:
|
|
key: |
|
|
$(kubectl get secret ${PVC_CEPH_STORAGECLASS_ADMIN_SECRET_NAME} \
|
|
--namespace=${PVC_CEPH_STORAGECLASS_DEPLOYED_NAMESPACE} \
|
|
-o json | jq -r '.data | .[]')
|
|
EOF
|
|
} | kubectl create --namespace ${kube_namespace} -f -
|
|
}
|
|
|
|
ceph_activate_namespace ${DEPLOYMENT_NAMESPACE}
|