object: align spelling of user admin capabilities with ceph
users & buckets admin capabilities aren't spelled the same way between rook crd (singular) and ceph (plural). It's a bit misleading when comparing ceph admin cap and rook users. Signed-off-by: Peter Goron <peter.goron@gmail.com>
This commit is contained in:
1 parent
d7dcf58f7c
commit
40eed236cf
5 files changed
+70
No files matched your search
@@ -8433,6 +8433,18 @@ string
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>users</code><br/>
|
||||
<em>
|
||||
string
|
||||
</em>
|
||||
</td>
|
||||
<td>
|
||||
<em>(Optional)</em>
|
||||
<p>Admin capabilities to read/write Ceph object store users. Documented in <a href="https://docs.ceph.com/en/latest/radosgw/admin/?#add-remove-admin-capabilities">https://docs.ceph.com/en/latest/radosgw/admin/?#add-remove-admin-capabilities</a></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>bucket</code><br/>
|
||||
<em>
|
||||
string
|
||||
@@ -8445,6 +8457,18 @@ string
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>buckets</code><br/>
|
||||
<em>
|
||||
string
|
||||
</em>
|
||||
</td>
|
||||
<td>
|
||||
<em>(Optional)</em>
|
||||
<p>Admin capabilities to read/write Ceph object store buckets. Documented in <a href="https://docs.ceph.com/en/latest/radosgw/admin/?#add-remove-admin-capabilities">https://docs.ceph.com/en/latest/radosgw/admin/?#add-remove-admin-capabilities</a></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>metadata</code><br/>
|
||||
<em>
|
||||
string
|
||||
|
||||
@@ -10401,6 +10401,14 @@ spec:
|
||||
- write
|
||||
- read, write
|
||||
type: string
|
||||
buckets:
|
||||
description: Admin capabilities to read/write Ceph object store buckets. Documented in https://docs.ceph.com/en/latest/radosgw/admin/?#add-remove-admin-capabilities
|
||||
enum:
|
||||
- '*'
|
||||
- read
|
||||
- write
|
||||
- read, write
|
||||
type: string
|
||||
datalog:
|
||||
description: Add capabilities for user to change data logging. Documented in https://docs.ceph.com/en/latest/radosgw/admin/?#add-remove-admin-capabilities
|
||||
enum:
|
||||
@@ -10481,6 +10489,14 @@ spec:
|
||||
- write
|
||||
- read, write
|
||||
type: string
|
||||
users:
|
||||
description: Admin capabilities to read/write Ceph object store users. Documented in https://docs.ceph.com/en/latest/radosgw/admin/?#add-remove-admin-capabilities
|
||||
enum:
|
||||
- '*'
|
||||
- read
|
||||
- write
|
||||
- read, write
|
||||
type: string
|
||||
zone:
|
||||
description: Admin capabilities to read/write Ceph object store zones. Documented in https://docs.ceph.com/en/latest/radosgw/admin/?#add-remove-admin-capabilities
|
||||
enum:
|
||||
|
||||
@@ -10392,6 +10392,14 @@ spec:
|
||||
- write
|
||||
- read, write
|
||||
type: string
|
||||
buckets:
|
||||
description: Admin capabilities to read/write Ceph object store buckets. Documented in https://docs.ceph.com/en/latest/radosgw/admin/?#add-remove-admin-capabilities
|
||||
enum:
|
||||
- '*'
|
||||
- read
|
||||
- write
|
||||
- read, write
|
||||
type: string
|
||||
datalog:
|
||||
description: Add capabilities for user to change data logging. Documented in https://docs.ceph.com/en/latest/radosgw/admin/?#add-remove-admin-capabilities
|
||||
enum:
|
||||
@@ -10472,6 +10480,14 @@ spec:
|
||||
- write
|
||||
- read, write
|
||||
type: string
|
||||
users:
|
||||
description: Admin capabilities to read/write Ceph object store users. Documented in https://docs.ceph.com/en/latest/radosgw/admin/?#add-remove-admin-capabilities
|
||||
enum:
|
||||
- '*'
|
||||
- read
|
||||
- write
|
||||
- read, write
|
||||
type: string
|
||||
zone:
|
||||
description: Admin capabilities to read/write Ceph object store zones. Documented in https://docs.ceph.com/en/latest/radosgw/admin/?#add-remove-admin-capabilities
|
||||
enum:
|
||||
|
||||
@@ -1587,10 +1587,18 @@ type ObjectUserCapSpec struct {
|
||||
User string `json:"user,omitempty"`
|
||||
// +optional
|
||||
// +kubebuilder:validation:Enum={"*","read","write","read, write"}
|
||||
// Admin capabilities to read/write Ceph object store users. Documented in https://docs.ceph.com/en/latest/radosgw/admin/?#add-remove-admin-capabilities
|
||||
Users string `json:"users,omitempty"`
|
||||
// +optional
|
||||
// +kubebuilder:validation:Enum={"*","read","write","read, write"}
|
||||
// Admin capabilities to read/write Ceph object store buckets. Documented in https://docs.ceph.com/en/latest/radosgw/admin/?#add-remove-admin-capabilities
|
||||
Bucket string `json:"bucket,omitempty"`
|
||||
// +optional
|
||||
// +kubebuilder:validation:Enum={"*","read","write","read, write"}
|
||||
// Admin capabilities to read/write Ceph object store buckets. Documented in https://docs.ceph.com/en/latest/radosgw/admin/?#add-remove-admin-capabilities
|
||||
Buckets string `json:"buckets,omitempty"`
|
||||
// +optional
|
||||
// +kubebuilder:validation:Enum={"*","read","write","read, write"}
|
||||
// Admin capabilities to read/write Ceph object store metadata. Documented in https://docs.ceph.com/en/latest/radosgw/admin/?#add-remove-admin-capabilities
|
||||
MetaData string `json:"metadata,omitempty"`
|
||||
// +optional
|
||||
|
||||
@@ -424,9 +424,15 @@ func generateUserConfig(user *cephv1.CephObjectStoreUser) admin.User {
|
||||
if user.Spec.Capabilities.User != "" {
|
||||
userConfig.UserCaps += fmt.Sprintf("users=%s;", user.Spec.Capabilities.User)
|
||||
}
|
||||
if user.Spec.Capabilities.Users != "" {
|
||||
userConfig.UserCaps += fmt.Sprintf("users=%s;", user.Spec.Capabilities.Users)
|
||||
}
|
||||
if user.Spec.Capabilities.Bucket != "" {
|
||||
userConfig.UserCaps += fmt.Sprintf("buckets=%s;", user.Spec.Capabilities.Bucket)
|
||||
}
|
||||
if user.Spec.Capabilities.Buckets != "" {
|
||||
userConfig.UserCaps += fmt.Sprintf("buckets=%s;", user.Spec.Capabilities.Buckets)
|
||||
}
|
||||
if user.Spec.Capabilities.MetaData != "" {
|
||||
userConfig.UserCaps += fmt.Sprintf("metadata=%s;", user.Spec.Capabilities.MetaData)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user