Merge pull request #13086 from rook/mergify/bp/release-1.12/pr-13072

core: Crash collector keyring requires rw access for the mgr profile (backport #13072)
This commit is contained in:
Travis Nielsen authored and GitHub committed 2023-10-23 12:42:07 -06:00
commit 9e664c19e8
2 files changed
+3 -3

No files matched your search

@@ -34,7 +34,7 @@ const (
[client.crash]
key = %s
caps mon = "allow profile crash"
caps mgr = "allow profile crash"
caps mgr = "allow rw"
`
)
@@ -59,7 +59,7 @@ func CreateCrashCollectorSecret(context *clusterd.Context, clusterInfo *client.C
func cephCrashCollectorKeyringCaps() []string {
return []string{
"mon", "allow profile crash",
"mgr", "allow profile crash",
"mgr", "allow rw",
}
}
@@ -24,5 +24,5 @@ import (
func TestCephCrashCollectorKeyringCaps(t *testing.T) {
caps := cephCrashCollectorKeyringCaps()
assert.Equal(t, caps, []string{"mon", "allow profile crash", "mgr", "allow profile crash"})
assert.Equal(t, caps, []string{"mon", "allow profile crash", "mgr", "allow rw"})
}