Skip to content

Commit 65f4236

Browse files
Merge pull request #1005 from fultonj/cephx
Use cephx profile rbd in gen-ceph-kustomize.sh
2 parents d1426fd + f12dab7 commit 65f4236

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

scripts/gen-ceph-kustomize.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ function create_pool {
184184
function build_caps {
185185
local CAPS=""
186186
for pool in "${CEPH_POOLS[@]}"; do
187-
caps="allow rwx pool="$pool
187+
caps="profile rbd pool="$pool
188188
CAPS+=$caps,
189189
done
190190
echo "${CAPS::-1}"
@@ -198,11 +198,10 @@ function create_key {
198198
if [ "${#CEPH_POOLS[@]}" -eq 0 ]; then
199199
osd_caps="allow *"
200200
else
201-
caps=$(build_caps)
202-
osd_caps="allow class-read object_prefix rbd_children, $caps"
201+
osd_caps=$(build_caps)
203202
fi
204203
# do not log the key if exists
205-
oc rsh -n $NAMESPACE ceph ceph auth get-or-create "$client" mgr "allow rw" mon "allow r" osd "$osd_caps" >/dev/null
204+
oc rsh -n $NAMESPACE ceph ceph auth get-or-create "$client" mgr "allow *" mon "profile rbd" osd "$osd_caps" >/dev/null
206205
}
207206

208207
function create_secret {

0 commit comments

Comments
 (0)