kubernetes-models
Version:
14 lines (13 loc) • 1.27 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.IoK8sApiFlowcontrolV1beta2ResourcePolicyRule = exports.ResourcePolicyRule = void 0;
const base_1 = require("@kubernetes-models/base");
const IoK8sApiFlowcontrolV1beta2ResourcePolicyRule_1 = require("../../_schemas/IoK8sApiFlowcontrolV1beta2ResourcePolicyRule.js");
/**
* 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.
*/
class ResourcePolicyRule extends base_1.Model {
}
exports.ResourcePolicyRule = ResourcePolicyRule;
exports.IoK8sApiFlowcontrolV1beta2ResourcePolicyRule = ResourcePolicyRule;
(0, base_1.setSchema)(ResourcePolicyRule, "io.k8s.api.flowcontrol.v1beta2.ResourcePolicyRule", IoK8sApiFlowcontrolV1beta2ResourcePolicyRule_1.addSchema);