ResourceSlice
| Operation | Description | Sample | Rule |
|---|---|---|---|
| get-resourceslices | Y | N | |
| list-resourceslices | Y | N | |
| watch-resourceslices | Y | N | |
| create-resourceslices | Y | N | |
| update-resourceslices | Y | N | |
| patch-resourceslices | Y | N | |
| delete-resourceslices | Y | N | |
| deletecollection-resourceslices | Y | N | |
| any-resourceslices | Synthetic aggregation for rules that filter the resourceslices resource with no specific verb. Not a distinct audit record; hosts rule listings that key on objectRef.resource alone. | N | N |
get resourceslices
#Example Audit Event #
{
"kind": "Event",
"apiVersion": "audit.k8s.io/v1",
"level": "Metadata",
"auditID": "00000000-0000-0000-0000-000000000000",
"stage": "ResponseComplete",
"requestURI": "/apis/resource.k8s.io/v1/resourceslices/dw-harn-resourceslices",
"verb": "get",
"user": {
"username": "kubernetes-admin",
"groups": [
"kubeadm:cluster-admins",
"system:authenticated"
],
"extra": {
"authentication.kubernetes.io/credential-id": [
"X509SHA256=2f9bb39ae9e6831406f8ad02206bf46e69b5760f7adffe5feb860da290b80a7e"
]
}
},
"sourceIPs": [
"203.0.113.10"
],
"userAgent": "kubectl/v1.36.2 (linux/amd64) kubernetes/24e2b02",
"objectRef": {
"resource": "resourceslices",
"name": "dw-harn-resourceslices",
"apiGroup": "resource.k8s.io",
"apiVersion": "v1"
},
"responseStatus": {
"metadata": {},
"code": 200
},
"requestReceivedTimestamp": "2026-07-03T00:16:45.501487Z",
"stageTimestamp": "2026-07-03T00:16:45.503402Z",
"annotations": {
"authorization.k8s.io/decision": "allow",
"authorization.k8s.io/reason": "RBAC: allowed by ClusterRoleBinding \"kubeadm:cluster-admins\" of ClusterRole \"cluster-admin\" to Group \"kubeadm:cluster-admins\""
}
}
References #
list resourceslices
#Example Audit Event #
{
"kind": "Event",
"apiVersion": "audit.k8s.io/v1",
"level": "Metadata",
"auditID": "00000000-0000-0000-0000-000000000000",
"stage": "ResponseComplete",
"requestURI": "/apis/resource.k8s.io/v1/resourceslices?limit=500&timeout=3s",
"verb": "list",
"user": {
"username": "kubernetes-admin",
"groups": [
"kubeadm:cluster-admins",
"system:authenticated"
],
"extra": {
"authentication.kubernetes.io/credential-id": [
"X509SHA256=2f9bb39ae9e6831406f8ad02206bf46e69b5760f7adffe5feb860da290b80a7e"
]
}
},
"sourceIPs": [
"203.0.113.10"
],
"userAgent": "kubectl/v1.36.2 (linux/amd64) kubernetes/24e2b02",
"objectRef": {
"resource": "resourceslices",
"apiGroup": "resource.k8s.io",
"apiVersion": "v1"
},
"responseStatus": {
"metadata": {},
"code": 200
},
"requestReceivedTimestamp": "2026-07-03T00:16:45.644170Z",
"stageTimestamp": "2026-07-03T00:16:45.645843Z",
"annotations": {
"authorization.k8s.io/decision": "allow",
"authorization.k8s.io/reason": "RBAC: allowed by ClusterRoleBinding \"kubeadm:cluster-admins\" of ClusterRole \"cluster-admin\" to Group \"kubeadm:cluster-admins\""
}
}
References #
watch resourceslices
#Example Audit Event #
{
"kind": "Event",
"apiVersion": "audit.k8s.io/v1",
"level": "Metadata",
"auditID": "00000000-0000-0000-0000-000000000000",
"stage": "ResponseComplete",
"requestURI": "/apis/resource.k8s.io/v1/resourceslices?resourceVersion=1225&timeout=3s&watch=true",
"verb": "watch",
"user": {
"username": "kubernetes-admin",
"groups": [
"kubeadm:cluster-admins",
"system:authenticated"
],
"extra": {
"authentication.kubernetes.io/credential-id": [
"X509SHA256=2f9bb39ae9e6831406f8ad02206bf46e69b5760f7adffe5feb860da290b80a7e"
]
}
},
"sourceIPs": [
"203.0.113.10"
],
"userAgent": "kubectl/v1.36.2 (linux/amd64) kubernetes/24e2b02",
"objectRef": {
"resource": "resourceslices",
"apiGroup": "resource.k8s.io",
"apiVersion": "v1"
},
"responseStatus": {
"metadata": {},
"code": 200
},
"requestReceivedTimestamp": "2026-07-03T00:16:45.646964Z",
"stageTimestamp": "2026-07-03T00:16:48.661176Z",
"annotations": {
"authorization.k8s.io/decision": "allow",
"authorization.k8s.io/reason": "RBAC: allowed by ClusterRoleBinding \"kubeadm:cluster-admins\" of ClusterRole \"cluster-admin\" to Group \"kubeadm:cluster-admins\""
}
}
References #
create resourceslices
#Example Audit Event #
{
"kind": "Event",
"apiVersion": "audit.k8s.io/v1",
"level": "RequestResponse",
"auditID": "00000000-0000-0000-0000-000000000000",
"stage": "ResponseComplete",
"requestURI": "/apis/resource.k8s.io/v1beta1/resourceslices?fieldManager=kubectl-create&fieldValidation=Strict",
"verb": "create",
"user": {
"username": "kubernetes-admin",
"groups": [
"kubeadm:cluster-admins",
"system:authenticated"
],
"extra": {
"authentication.kubernetes.io/credential-id": [
"X509SHA256=97ca5ec05d5b7c1923d58d85f4449a4c26b2df61defa2a59b4045149ffed589e"
]
}
},
"sourceIPs": [
"203.0.113.10"
],
"userAgent": "kubectl/v1.36.2 (linux/amd64) kubernetes/24e2b02",
"objectRef": {
"resource": "resourceslices",
"name": "dw-harn-resourceslices",
"apiGroup": "resource.k8s.io",
"apiVersion": "v1beta1"
},
"responseStatus": {
"metadata": {},
"status": "Failure",
"message": "ResourceSlice.resource.k8s.io \"dw-harn-resourceslices\" is invalid: spec.driver: Invalid value: \"dw.example/none\": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')",
"reason": "Invalid",
"details": {
"name": "dw-harn-resourceslices",
"group": "resource.k8s.io",
"kind": "ResourceSlice",
"causes": [
{
"reason": "FieldValueInvalid",
"message": "Invalid value: \"dw.example/none\": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')",
"field": "spec.driver"
}
]
},
"code": 422
},
"requestObject": {
"kind": "ResourceSlice",
"apiVersion": "resource.k8s.io/v1beta1",
"metadata": {
"name": "dw-harn-resourceslices"
},
"spec": {
"driver": "dw.example/none",
"pool": {
"name": "dw-harn-pool",
"generation": 1,
"resourceSliceCount": 1
},
"allNodes": true
}
},
"responseObject": {
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Failure",
"message": "ResourceSlice.resource.k8s.io \"dw-harn-resourceslices\" is invalid: spec.driver: Invalid value: \"dw.example/none\": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')",
"reason": "Invalid",
"details": {
"name": "dw-harn-resourceslices",
"group": "resource.k8s.io",
"kind": "ResourceSlice",
"causes": [
{
"reason": "FieldValueInvalid",
"message": "Invalid value: \"dw.example/none\": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')",
"field": "spec.driver"
}
]
},
"code": 422
},
"requestReceivedTimestamp": "2026-07-02T22:48:16.586377Z",
"stageTimestamp": "2026-07-02T22:48:16.588348Z",
"annotations": {
"authorization.k8s.io/decision": "allow",
"authorization.k8s.io/reason": "RBAC: allowed by ClusterRoleBinding \"kubeadm:cluster-admins\" of ClusterRole \"cluster-admin\" to Group \"kubeadm:cluster-admins\"",
"k8s.io/deprecated": "true",
"k8s.io/removed-release": "1.38"
}
}
References #
update resourceslices
#Example Audit Event #
{
"kind": "Event",
"apiVersion": "audit.k8s.io/v1",
"level": "RequestResponse",
"auditID": "00000000-0000-0000-0000-000000000000",
"stage": "ResponseComplete",
"requestURI": "/apis/resource.k8s.io/v1/resourceslices/dw-harn-resourceslices?fieldManager=kubectl-replace&fieldValidation=Strict",
"verb": "update",
"user": {
"username": "kubernetes-admin",
"groups": [
"kubeadm:cluster-admins",
"system:authenticated"
],
"extra": {
"authentication.kubernetes.io/credential-id": [
"X509SHA256=2f9bb39ae9e6831406f8ad02206bf46e69b5760f7adffe5feb860da290b80a7e"
]
}
},
"sourceIPs": [
"203.0.113.10"
],
"userAgent": "kubectl/v1.36.2 (linux/amd64) kubernetes/24e2b02",
"objectRef": {
"resource": "resourceslices",
"name": "dw-harn-resourceslices",
"uid": "00000000-0000-0000-0000-000000000000",
"apiGroup": "resource.k8s.io",
"apiVersion": "v1",
"resourceVersion": "1233"
},
"responseStatus": {
"metadata": {},
"code": 200
},
"requestObject": {
"kind": "ResourceSlice",
"apiVersion": "resource.k8s.io/v1",
"metadata": {
"name": "dw-harn-resourceslices",
"uid": "00000000-0000-0000-0000-000000000000",
"resourceVersion": "1233",
"generation": 1,
"creationTimestamp": "2026-07-03T00:16:45Z",
"labels": {
"dw-harn-patched": "1"
}
},
"spec": {
"driver": "dw-harn.example",
"pool": {
"name": "dw-harn-pool",
"generation": 1,
"resourceSliceCount": 1
},
"allNodes": true
}
},
"responseObject": {
"kind": "ResourceSlice",
"apiVersion": "resource.k8s.io/v1",
"metadata": {
"name": "dw-harn-resourceslices",
"uid": "00000000-0000-0000-0000-000000000000",
"resourceVersion": "1233",
"generation": 1,
"creationTimestamp": "2026-07-03T00:16:45Z",
"labels": {
"dw-harn-patched": "1"
}
},
"spec": {
"driver": "dw-harn.example",
"pool": {
"name": "dw-harn-pool",
"generation": 1,
"resourceSliceCount": 1
},
"allNodes": true
}
},
"requestReceivedTimestamp": "2026-07-03T00:16:48.889738Z",
"stageTimestamp": "2026-07-03T00:16:48.892417Z",
"annotations": {
"authorization.k8s.io/decision": "allow",
"authorization.k8s.io/reason": "RBAC: allowed by ClusterRoleBinding \"kubeadm:cluster-admins\" of ClusterRole \"cluster-admin\" to Group \"kubeadm:cluster-admins\""
}
}
References #
patch resourceslices
#Example Audit Event #
{
"kind": "Event",
"apiVersion": "audit.k8s.io/v1",
"level": "RequestResponse",
"auditID": "00000000-0000-0000-0000-000000000000",
"stage": "ResponseComplete",
"requestURI": "/apis/resource.k8s.io/v1/resourceslices/dw-harn-resourceslices?fieldManager=kubectl-patch",
"verb": "patch",
"user": {
"username": "kubernetes-admin",
"groups": [
"kubeadm:cluster-admins",
"system:authenticated"
],
"extra": {
"authentication.kubernetes.io/credential-id": [
"X509SHA256=2f9bb39ae9e6831406f8ad02206bf46e69b5760f7adffe5feb860da290b80a7e"
]
}
},
"sourceIPs": [
"203.0.113.10"
],
"userAgent": "kubectl/v1.36.2 (linux/amd64) kubernetes/24e2b02",
"objectRef": {
"resource": "resourceslices",
"name": "dw-harn-resourceslices",
"apiGroup": "resource.k8s.io",
"apiVersion": "v1"
},
"responseStatus": {
"metadata": {},
"code": 200
},
"requestObject": {
"metadata": {
"labels": {
"dw-harn-patched": "1"
}
}
},
"responseObject": {
"kind": "ResourceSlice",
"apiVersion": "resource.k8s.io/v1",
"metadata": {
"name": "dw-harn-resourceslices",
"uid": "00000000-0000-0000-0000-000000000000",
"resourceVersion": "1233",
"generation": 1,
"creationTimestamp": "2026-07-03T00:16:45Z",
"labels": {
"dw-harn-patched": "1"
}
},
"spec": {
"driver": "dw-harn.example",
"pool": {
"name": "dw-harn-pool",
"generation": 1,
"resourceSliceCount": 1
},
"allNodes": true
}
},
"requestReceivedTimestamp": "2026-07-03T00:16:48.735246Z",
"stageTimestamp": "2026-07-03T00:16:48.738642Z",
"annotations": {
"authorization.k8s.io/decision": "allow",
"authorization.k8s.io/reason": "RBAC: allowed by ClusterRoleBinding \"kubeadm:cluster-admins\" of ClusterRole \"cluster-admin\" to Group \"kubeadm:cluster-admins\""
}
}
References #
delete resourceslices
#Example Audit Event #
{
"kind": "Event",
"apiVersion": "audit.k8s.io/v1",
"level": "RequestResponse",
"auditID": "00000000-0000-0000-0000-000000000000",
"stage": "ResponseComplete",
"requestURI": "/apis/resource.k8s.io/v1/resourceslices/dw-harn-resourceslices",
"verb": "delete",
"user": {
"username": "kubernetes-admin",
"groups": [
"kubeadm:cluster-admins",
"system:authenticated"
],
"extra": {
"authentication.kubernetes.io/credential-id": [
"X509SHA256=2f9bb39ae9e6831406f8ad02206bf46e69b5760f7adffe5feb860da290b80a7e"
]
}
},
"sourceIPs": [
"203.0.113.10"
],
"userAgent": "kubectl/v1.36.2 (linux/amd64) kubernetes/24e2b02",
"objectRef": {
"resource": "resourceslices",
"name": "dw-harn-resourceslices",
"apiGroup": "resource.k8s.io",
"apiVersion": "v1"
},
"responseStatus": {
"metadata": {},
"status": "Failure",
"message": "resourceslices.resource.k8s.io \"dw-harn-resourceslices\" not found",
"reason": "NotFound",
"details": {
"name": "dw-harn-resourceslices",
"group": "resource.k8s.io",
"kind": "resourceslices"
},
"code": 404
},
"requestObject": {
"kind": "DeleteOptions",
"apiVersion": "meta.k8s.io/__internal",
"propagationPolicy": "Background"
},
"responseObject": {
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Failure",
"message": "resourceslices.resource.k8s.io \"dw-harn-resourceslices\" not found",
"reason": "NotFound",
"details": {
"name": "dw-harn-resourceslices",
"group": "resource.k8s.io",
"kind": "resourceslices"
},
"code": 404
},
"requestReceivedTimestamp": "2026-07-03T00:16:49.028847Z",
"stageTimestamp": "2026-07-03T00:16:49.030866Z",
"annotations": {
"authorization.k8s.io/decision": "allow",
"authorization.k8s.io/reason": "RBAC: allowed by ClusterRoleBinding \"kubeadm:cluster-admins\" of ClusterRole \"cluster-admin\" to Group \"kubeadm:cluster-admins\""
}
}
References #
deletecollection resourceslices
#Example Audit Event #
{
"kind": "Event",
"apiVersion": "audit.k8s.io/v1",
"level": "RequestResponse",
"auditID": "00000000-0000-0000-0000-000000000000",
"stage": "ResponseComplete",
"requestURI": "/apis/resource.k8s.io/v1/resourceslices?labelSelector=dw-harn-patched",
"verb": "deletecollection",
"user": {
"username": "kubernetes-admin",
"groups": [
"kubeadm:cluster-admins",
"system:authenticated"
],
"extra": {
"authentication.kubernetes.io/credential-id": [
"X509SHA256=2f9bb39ae9e6831406f8ad02206bf46e69b5760f7adffe5feb860da290b80a7e"
]
}
},
"sourceIPs": [
"203.0.113.10"
],
"userAgent": "kubectl/v1.36.2 (linux/amd64) kubernetes/24e2b02",
"objectRef": {
"resource": "resourceslices",
"apiGroup": "resource.k8s.io",
"apiVersion": "v1"
},
"responseStatus": {
"metadata": {},
"code": 200
},
"responseObject": {
"kind": "ResourceSliceList",
"apiVersion": "resource.k8s.io/v1",
"metadata": {
"resourceVersion": "1233"
},
"items": [
{
"metadata": {
"name": "dw-harn-resourceslices",
"uid": "00000000-0000-0000-0000-000000000000",
"resourceVersion": "1233",
"generation": 1,
"creationTimestamp": "2026-07-03T00:16:45Z",
"labels": {
"dw-harn-patched": "1"
}
},
"spec": {
"driver": "dw-harn.example",
"pool": {
"name": "dw-harn-pool",
"generation": 1,
"resourceSliceCount": 1
},
"allNodes": true
}
}
]
},
"requestReceivedTimestamp": "2026-07-03T00:16:48.957512Z",
"stageTimestamp": "2026-07-03T00:16:48.962845Z",
"annotations": {
"authorization.k8s.io/decision": "allow",
"authorization.k8s.io/reason": "RBAC: allowed by ClusterRoleBinding \"kubeadm:cluster-admins\" of ClusterRole \"cluster-admin\" to Group \"kubeadm:cluster-admins\""
}
}
References #
any verb on resourceslices (synthetic aggregation)
#Description
Synthetic aggregation for rules that filter the resourceslices resource with no specific verb. Not a distinct audit record; hosts rule listings that key on objectRef.resource alone.