kubernetes-models
Version:
21 lines (20 loc) • 1.09 kB
JavaScript
import { createTypeMetaGuard, Model, setSchema } from "@kubernetes-models/base";
import { addSchema } from "../../_schemas/IoK8sApiRbacV1beta1RoleBinding.mjs";
/**
* RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBinding, and will no longer be served in v1.22.
* @deprecated
*/
export class RoleBinding extends Model {
constructor(data) {
super({
apiVersion: RoleBinding.apiVersion,
kind: RoleBinding.kind,
...data
});
}
}
RoleBinding.apiVersion = "rbac.authorization.k8s.io/v1beta1";
RoleBinding.kind = "RoleBinding";
RoleBinding.is = createTypeMetaGuard(RoleBinding);
setSchema(RoleBinding, "io.k8s.api.rbac.v1beta1.RoleBinding", addSchema);
export { RoleBinding as IoK8sApiRbacV1beta1RoleBinding };