kubernetes-models
Version:
39 lines (38 loc) • 1.97 kB
TypeScript
import { IIoK8sApimachineryPkgApisMetaV1ObjectMeta } from "@kubernetes-models/apimachinery/apis/meta/v1/ObjectMeta";
import { IIoK8sApiRbacV1RoleRef } from "./RoleRef";
import { IIoK8sApiRbacV1Subject } from "./Subject";
import { ModelData, TypeMeta, Model } from "@kubernetes-models/base";
/**
* ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.
*/
export interface IClusterRoleBinding extends TypeMeta {
"apiVersion": "rbac.authorization.k8s.io/v1";
"kind": "ClusterRoleBinding";
/**
* Standard object's metadata.
*/
"metadata"?: IIoK8sApimachineryPkgApisMetaV1ObjectMeta;
/**
* RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. This field is immutable.
*/
"roleRef": IIoK8sApiRbacV1RoleRef;
/**
* Subjects holds references to the objects the role applies to.
*/
"subjects"?: Array<IIoK8sApiRbacV1Subject>;
}
/**
* ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.
*/
export declare class ClusterRoleBinding extends Model<IClusterRoleBinding> implements IClusterRoleBinding {
"apiVersion": IClusterRoleBinding["apiVersion"];
"kind": IClusterRoleBinding["kind"];
"metadata"?: IIoK8sApimachineryPkgApisMetaV1ObjectMeta;
"roleRef": IIoK8sApiRbacV1RoleRef;
"subjects"?: Array<IIoK8sApiRbacV1Subject>;
static apiVersion: IClusterRoleBinding["apiVersion"];
static kind: IClusterRoleBinding["kind"];
static is: import("@kubernetes-models/base").TypeMetaGuard<IClusterRoleBinding>;
constructor(data?: ModelData<IClusterRoleBinding>);
}
export { IClusterRoleBinding as IIoK8sApiRbacV1ClusterRoleBinding, ClusterRoleBinding as IoK8sApiRbacV1ClusterRoleBinding };