Merge pull request 'Automated Manifest Update - Automerge' (#3211) from auto/update-manifests-automerge-20260114212847 into manifests
This commit was merged in pull request #3211.
This commit is contained in:
@@ -28,6 +28,7 @@ spec:
|
|||||||
CEPH_CONFIG="/etc/ceph/ceph.conf"
|
CEPH_CONFIG="/etc/ceph/ceph.conf"
|
||||||
MON_CONFIG="/etc/rook/mon-endpoints"
|
MON_CONFIG="/etc/rook/mon-endpoints"
|
||||||
KEYRING_FILE="/etc/ceph/keyring"
|
KEYRING_FILE="/etc/ceph/keyring"
|
||||||
|
CONFIG_OVERRIDE="/etc/rook-config-override/config"
|
||||||
|
|
||||||
# create a ceph config file in its default location so ceph/rados tools can be used
|
# create a ceph config file in its default location so ceph/rados tools can be used
|
||||||
# without specifying any arguments
|
# without specifying any arguments
|
||||||
@@ -48,6 +49,13 @@ spec:
|
|||||||
[client.admin]
|
[client.admin]
|
||||||
keyring = ${KEYRING_FILE}
|
keyring = ${KEYRING_FILE}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
# Merge the config override if it exists and is not empty
|
||||||
|
if [ -f "${CONFIG_OVERRIDE}" ] && [ -s "${CONFIG_OVERRIDE}" ]; then
|
||||||
|
echo "$DATE merging config override from ${CONFIG_OVERRIDE}"
|
||||||
|
echo "" >> ${CEPH_CONFIG}
|
||||||
|
cat ${CONFIG_OVERRIDE} >> ${CEPH_CONFIG}
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# watch the endpoints config file and update if the mon endpoints ever change
|
# watch the endpoints config file and update if the mon endpoints ever change
|
||||||
@@ -113,6 +121,9 @@ spec:
|
|||||||
mountPath: /etc/rook
|
mountPath: /etc/rook
|
||||||
- name: ceph-admin-secret
|
- name: ceph-admin-secret
|
||||||
mountPath: /var/lib/rook-ceph-mon
|
mountPath: /var/lib/rook-ceph-mon
|
||||||
|
- name: rook-config-override
|
||||||
|
mountPath: /etc/rook-config-override
|
||||||
|
readOnly: true
|
||||||
serviceAccountName: rook-ceph-default
|
serviceAccountName: rook-ceph-default
|
||||||
volumes:
|
volumes:
|
||||||
- name: ceph-admin-secret
|
- name: ceph-admin-secret
|
||||||
@@ -128,6 +139,10 @@ spec:
|
|||||||
items:
|
items:
|
||||||
- key: data
|
- key: data
|
||||||
path: mon-endpoints
|
path: mon-endpoints
|
||||||
|
- name: rook-config-override
|
||||||
|
configMap:
|
||||||
|
name: rook-config-override
|
||||||
|
optional: true
|
||||||
- name: ceph-config
|
- name: ceph-config
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
tolerations:
|
tolerations:
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ rules:
|
|||||||
resources:
|
resources:
|
||||||
- cephclients
|
- cephclients
|
||||||
- cephclusters
|
- cephclusters
|
||||||
|
- cephclusters/finalizers
|
||||||
- cephblockpools
|
- cephblockpools
|
||||||
- cephfilesystems
|
- cephfilesystems
|
||||||
- cephnfses
|
- cephnfses
|
||||||
|
|||||||
Reference in New Issue
Block a user