You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`authorizer.group('').resource('pods').namespace('default').check('create').allowed()`| Returns true if the principal (user or service account) is allowed create pods in the 'default' namespace. |
177
+
|`authorizer.path('/healthz').check('get').allowed()`| Checks if the principal (user or service account) is authorized to make HTTP GET requests to the /healthz API path. |
178
+
|`authorizer.serviceAccount('default', 'myserviceaccount').resource('deployments').check('delete').allowed()`| Checks if the service account is authorized to delete deployments. |
179
+
{{< /table >}}
180
+
181
+
See the [Kubernetes Authz library](https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz)
182
+
godoc for more information.
183
+
184
+
147
185
## Type checking
148
186
149
187
CEL is a [gradually typed language](https://github.com/google/cel-spec/blob/master/doc/langdef.md#gradual-type-checking).
@@ -297,4 +335,4 @@ execute. If so, the API server prevent the CEL expression from being written to
297
335
API resources by rejecting create or update operations containing the CEL
298
336
expression to the API resources. This feature offers a stronger assurance that
299
337
CEL expressions written to the API resource will be evaluate at runtime without
0 commit comments