Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/kubernetes_apis/builtin/flowcontrol.apiserver.k8s.io@v1beta2/structs.ts>ResourcePolicyRule

REST focused Typescript classes for Kubernetes APIs, and tools for generating API interfaces
Go to Latest
interface ResourcePolicyRule
import { type ResourcePolicyRule } from "https://deno.land/x/kubernetes_apis@v0.5.0/builtin/flowcontrol.apiserver.k8s.io@v1beta2/structs.ts";

ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., Namespace=="") and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.

Properties

apiGroups: Array<string>
optional
clusterScope: boolean | null
optional
namespaces: Array<string> | null
resources: Array<string>
verbs: Array<string>