diff --git a/charts/cryostat/templates/role.yaml b/charts/cryostat/templates/role.yaml index 98f96c60..d99b2ad4 100644 --- a/charts/cryostat/templates/role.yaml +++ b/charts/cryostat/templates/role.yaml @@ -11,9 +11,9 @@ metadata: {{- include "cryostat.labels" . | nindent 4 }} rules: - apiGroups: - - "" + - discovery.k8s.io resources: - - endpoints + - endpointslices verbs: - get - list diff --git a/charts/cryostat/tests/role_test.yaml b/charts/cryostat/tests/role_test.yaml index bff8b0f4..746eab0b 100644 --- a/charts/cryostat/tests/role_test.yaml +++ b/charts/cryostat/tests/role_test.yaml @@ -62,10 +62,10 @@ tests: asserts: - equal: path: rules[0].apiGroups - value: [""] + value: ["discovery.k8s.io"] - equal: path: rules[0].resources - value: ["endpoints"] + value: ["endpointslices"] - equal: path: rules[0].verbs value: ["get", "list", "watch"]