Skip to main content

Class: ClusterRoleBinding

Extends

Constructors

new ClusterRoleBinding()

new ClusterRoleBinding(json: KubeRoleBinding, cluster?: string): ClusterRoleBinding

Parameters

ParameterType
jsonKubeRoleBinding
cluster?string

Returns

ClusterRoleBinding

Inherited from

makeKubeObject<KubeRoleBinding>().constructor

Defined in

src/lib/k8s/KubeObject.ts:76

Properties

PropertyModifierTypeDefault valueDescriptionOverridesInherited fromDefined in
_clusterNamepublicstringundefined--makeKubeObject<KubeRoleBinding>()._clusterNamesrc/lib/k8s/KubeObject.ts:29
jsonDatapublicKubeRoleBindingundefined--makeKubeObject<KubeRoleBinding>().jsonDatasrc/lib/k8s/KubeObject.ts:26
_internalApiEndpoint?staticApiWithNamespaceClient<KubeObjectInterface> | ApiClient<KubeObjectInterface>undefined--makeKubeObject<KubeRoleBinding>()._internalApiEndpointsrc/lib/k8s/KubeObject.ts:43
apiNamestaticstring'clusterrolebindings'Name of the resource, plural, used in APImakeKubeObject<KubeRoleBinding>().apiName-src/lib/k8s/clusterRoleBinding.ts:6
apiVersionstaticstring'rbac.authorization.k8s.io/v1'Group and version of the resource formatted as "GROUP/VERSION", e.g. "policy.k8s.io/v1".makeKubeObject<KubeRoleBinding>().apiVersion-src/lib/k8s/clusterRoleBinding.ts:7
isNamespacedstaticbooleanfalseWhether the object is namespaced.makeKubeObject<KubeRoleBinding>().isNamespaced-src/lib/k8s/clusterRoleBinding.ts:8
kindstaticstring'ClusterRoleBinding'The kind of the object. Corresponding to the resource kind in Kubernetes.makeKubeObject<KubeRoleBinding>().kind-src/lib/k8s/clusterRoleBinding.ts:5
readOnlyFieldsstaticstring[][]Readonly field defined as JSONPath paths-makeKubeObject<KubeRoleBinding>().readOnlyFieldssrc/lib/k8s/KubeObject.ts:28

Accessors

cluster

get cluster(): string
set cluster(cluster: string): void

Parameters

ParameterType
clusterstring

Returns

string

Inherited from

makeKubeObject<KubeRoleBinding>().cluster

Defined in

src/lib/k8s/KubeObject.ts:81


detailsRoute

get detailsRoute(): string

Returns

string

Inherited from

makeKubeObject<KubeRoleBinding>().detailsRoute

Defined in

src/lib/k8s/KubeObject.ts:93


isNamespaced

get isNamespaced(): boolean

Returns

boolean

Inherited from

makeKubeObject<KubeRoleBinding>().isNamespaced

Defined in

src/lib/k8s/KubeObject.ts:161


kind

get kind(): any

Returns

any

Inherited from

makeKubeObject<KubeRoleBinding>().kind

Defined in

src/lib/k8s/KubeObject.ts:120


listRoute

get listRoute(): string

Returns

string

Inherited from

makeKubeObject<KubeRoleBinding>().listRoute

Defined in

src/lib/k8s/KubeObject.ts:112


metadata

get metadata(): KubeMetadata

Returns

KubeMetadata

Inherited from

makeKubeObject<KubeRoleBinding>().metadata

Defined in

src/lib/k8s/KubeObject.ts:157


pluralName

get pluralName(): string

Returns

string

Inherited from

makeKubeObject<KubeRoleBinding>().pluralName

Defined in

src/lib/k8s/KubeObject.ts:107


roleRef

get roleRef(): object

Returns

object

apiGroup
apiGroup: string;
kind
kind: string;
name
name: string;

Defined in

src/lib/k8s/clusterRoleBinding.ts:10


subjects

get subjects(): object[]

Returns

object[]

Defined in

src/lib/k8s/clusterRoleBinding.ts:14


apiEndpoint

get static apiEndpoint(): ApiWithNamespaceClient<KubeObjectInterface> | ApiClient<KubeObjectInterface>
set static apiEndpoint(endpoint: ApiWithNamespaceClient<KubeObjectInterface> | ApiClient<KubeObjectInterface>): void

Parameters

ParameterType
endpointApiWithNamespaceClient<KubeObjectInterface> | ApiClient<KubeObjectInterface>

Returns

ApiWithNamespaceClient<KubeObjectInterface> | ApiClient<KubeObjectInterface>

Inherited from

makeKubeObject<KubeRoleBinding>().apiEndpoint

Defined in

src/lib/k8s/KubeObject.ts:45


className

get static className(): string

Returns

string

Inherited from

makeKubeObject<KubeRoleBinding>().className

Defined in

src/lib/k8s/KubeObject.ts:89


detailsRoute

get static detailsRoute(): string

Returns

string

Inherited from

makeKubeObject<KubeRoleBinding>().detailsRoute

Defined in

src/lib/k8s/KubeObject.ts:97


listRoute

get static listRoute(): string

Returns

string

Inherited from

makeKubeObject<KubeRoleBinding>().listRoute

Defined in

src/lib/k8s/KubeObject.ts:116


pluralName

get static pluralName(): string

Returns

string

Inherited from

makeKubeObject<KubeRoleBinding>().pluralName

Defined in

src/lib/k8s/KubeObject.ts:101

Methods

_class()

_class(): typeof KubeObject

Returns

typeof KubeObject

Inherited from

makeKubeObject<KubeRoleBinding>()._class

Defined in

src/lib/k8s/KubeObject.ts:409


delete()

delete(): Promise<any>

Returns

Promise<any>

Inherited from

makeKubeObject<KubeRoleBinding>().delete

Defined in

src/lib/k8s/KubeObject.ts:413


getAge()

getAge(): string

Returns

string

Inherited from

makeKubeObject<KubeRoleBinding>().getAge

Defined in

src/lib/k8s/KubeObject.ts:149


getAuthorization()

getAuthorization(verb: string, reqResourseAttrs?: AuthRequestResourceAttrs): Promise<any>

Parameters

ParameterType
verbstring
reqResourseAttrs?AuthRequestResourceAttrs

Returns

Promise<any>

Inherited from

makeKubeObject<KubeRoleBinding>().getAuthorization

Defined in

src/lib/k8s/KubeObject.ts:559


getCreationTs()

getCreationTs(): string

Returns

string

Inherited from

makeKubeObject<KubeRoleBinding>().getCreationTs

Defined in

src/lib/k8s/KubeObject.ts:145


getDetailsLink(): string

Returns

string

Inherited from

makeKubeObject<KubeRoleBinding>().getDetailsLink

Defined in

src/lib/k8s/KubeObject.ts:124


getEditableObject()

getEditableObject(): object

Returns

object

Inherited from

makeKubeObject<KubeRoleBinding>().getEditableObject

Defined in

src/lib/k8s/KubeObject.ts:165


getListLink(): string

Returns

string

Inherited from

makeKubeObject<KubeRoleBinding>().getListLink

Defined in

src/lib/k8s/KubeObject.ts:133


getName()

getName(): string

Returns

string

Inherited from

makeKubeObject<KubeRoleBinding>().getName

Defined in

src/lib/k8s/KubeObject.ts:137


getNamespace()

getNamespace(): undefined | string

Returns

undefined | string

Inherited from

makeKubeObject<KubeRoleBinding>().getNamespace

Defined in

src/lib/k8s/KubeObject.ts:141


getValue()

getValue(prop: string): any

Parameters

ParameterType
propstring

Returns

any

Inherited from

makeKubeObject<KubeRoleBinding>().getValue

Defined in

src/lib/k8s/KubeObject.ts:153


patch()

patch(body: OpPatch[]): Promise<any>

Parameters

ParameterType
bodyOpPatch[]

Returns

Promise<any>

Inherited from

makeKubeObject<KubeRoleBinding>().patch

Defined in

src/lib/k8s/KubeObject.ts:460


scale()

scale(numReplicas: number): Promise<any>

Parameters

ParameterType
numReplicasnumber

Returns

Promise<any>

Inherited from

makeKubeObject<KubeRoleBinding>().scale

Defined in

src/lib/k8s/KubeObject.ts:431


update()

update(data: KubeObjectInterface): Promise<KubeObjectInterface>

Parameters

ParameterType
dataKubeObjectInterface

Returns

Promise<KubeObjectInterface>

Inherited from

makeKubeObject<KubeRoleBinding>().update

Defined in

src/lib/k8s/KubeObject.ts:423


apiGet()

static apiGet<K>(
this: (...args: any) => K & typeof KubeObject,
onGet: (...args: any) => void,
name: string,
namespace?: string,
onError?: (err: null | ApiError, cluster?: string) => void,
opts?: object): (...args: any[]) => Promise<CancelFunction>

Type Parameters

Type Parameter
K extends KubeObject<any>

Parameters

ParameterType
this(...args: any) => K & typeof KubeObject
onGet(...args: any) => void
namestring
namespace?string
onError?(err: null | ApiError, cluster?: string) => void
opts?object
opts.cluster?string
opts.queryParams?QueryParameters

Returns

Function

Parameters
ParameterType
...argsany[]
Returns

Promise<CancelFunction>

Inherited from

makeKubeObject<KubeRoleBinding>().apiGet

Defined in

src/lib/k8s/KubeObject.ts:367


apiList()

static apiList<K>(
this: (...args: any) => K & typeof KubeObject,
onList: (arg: K[]) => void,
onError?: (err: ApiError, cluster?: string) => void,
opts?: ApiListSingleNamespaceOptions): (...args: any[]) => Promise<CancelFunction>

Returns the API endpoint for this object.

Type Parameters

Type Parameter
K extends KubeObject<any>

Parameters

ParameterTypeDescription
this(...args: any) => K & typeof KubeObject-
onList(arg: K[]) => voidCallback function to be called when the list is retrieved.
onError?(err: ApiError, cluster?: string) => voidCallback function to be called when an error occurs.
opts?ApiListSingleNamespaceOptionsOptions to be passed to the API endpoint.

Returns

Function

The API endpoint for this object.

Parameters
ParameterType
...argsany[]
Returns

Promise<CancelFunction>

Inherited from

makeKubeObject<KubeRoleBinding>().apiList

Defined in

src/lib/k8s/KubeObject.ts:195


create()

static create<Args, T>(this: (...args: Args) => T, ...item: Args): T

Type Parameters

Type Parameter
Args extends any[]
T extends KubeObject<any>

Parameters

ParameterType
this(...args: Args) => T
...itemArgs

Returns

T

Inherited from

makeKubeObject<KubeRoleBinding>().create

Defined in

src/lib/k8s/KubeObject.ts:360


fetchAuthorization()

static fetchAuthorization(reqResourseAttrs?: AuthRequestResourceAttrs): Promise<any>

Performs a request to check if the user has the given permission.

Parameters

ParameterType
reqResourseAttrs?AuthRequestResourceAttrs

Returns

Promise<any>

The result of the access request.

Inherited from

makeKubeObject<KubeRoleBinding>().fetchAuthorization

Defined in

src/lib/k8s/KubeObject.ts:477


getAuthorization()

static getAuthorization(verb: string, reqResourseAttrs?: AuthRequestResourceAttrs): Promise<any>

Parameters

ParameterType
verbstring
reqResourseAttrs?AuthRequestResourceAttrs

Returns

Promise<any>

Inherited from

makeKubeObject<KubeRoleBinding>().getAuthorization

Defined in

src/lib/k8s/KubeObject.ts:504


getBaseObject()

static getBaseObject(): Omit<KubeObjectInterface, "metadata"> & object

Returns

Omit<KubeObjectInterface, "metadata"> & object

Inherited from

makeKubeObject<KubeRoleBinding>().getBaseObject

Defined in

src/lib/k8s/KubeObject.ts:603


getErrorMessage()

static getErrorMessage(err: null | ApiError): null | "Error: Not found" | "Error: No permissions" | "Error"

Parameters

ParameterType
errnull | ApiError

Returns

null | "Error: Not found" | "Error: No permissions" | "Error"

Inherited from

makeKubeObject<KubeRoleBinding>().getErrorMessage

Defined in

src/lib/k8s/KubeObject.ts:588


put()

static put(data: KubeObjectInterface): Promise<KubeObjectInterface>

Parameters

ParameterType
dataKubeObjectInterface

Returns

Promise<KubeObjectInterface>

Inherited from

makeKubeObject<KubeRoleBinding>().put

Defined in

src/lib/k8s/KubeObject.ts:427


useApiGet()

static useApiGet<K>(
this: (...args: any) => K & typeof KubeObject,
onGet: (item: null | K) => any,
name: string,
namespace?: string,
onError?: (err: null | ApiError, cluster?: string) => void,
opts?: object): void

Type Parameters

Type Parameter
K extends KubeObject<any>

Parameters

ParameterType
this(...args: any) => K & typeof KubeObject
onGet(item: null | K) => any
namestring
namespace?string
onError?(err: null | ApiError, cluster?: string) => void
opts?object
opts.cluster?string
opts.queryParams?QueryParameters

Returns

void

Inherited from

makeKubeObject<KubeRoleBinding>().useApiGet

Defined in

src/lib/k8s/KubeObject.ts:392


useApiList()

static useApiList<K>(
this: (...args: any) => K & typeof KubeObject,
onList: (...arg: any[]) => any,
onError?: (err: ApiError, cluster?: string) => void,
opts?: ApiListOptions): void

Type Parameters

Type Parameter
K extends KubeObject<any>

Parameters

ParameterType
this(...args: any) => K & typeof KubeObject
onList(...arg: any[]) => any
onError?(err: ApiError, cluster?: string) => void
opts?ApiListOptions

Returns

void

Inherited from

makeKubeObject<KubeRoleBinding>().useApiList

Defined in

src/lib/k8s/KubeObject.ts:228


useGet()

static useGet<K>(
this: (...args: any) => K,
name: string,
namespace?: string,
opts?: object): [null | K, null | ApiError] & QueryResponse<K, ApiError>

Type Parameters

Type Parameter
K extends KubeObject<any>

Parameters

ParameterType
this(...args: any) => K
namestring
namespace?string
opts?object
opts.cluster?string
opts.queryParams?QueryParameters

Returns

[null | K, null | ApiError] & QueryResponse<K, ApiError>

Inherited from

makeKubeObject<KubeRoleBinding>().useGet

Defined in

src/lib/k8s/KubeObject.ts:342


useList()

static useList<K>(this: (...args: any) => K & typeof KubeObject, __namedParameters: object & QueryParameters): [null | K[], null | ApiError] & QueryListResponse<(undefined | null | ListResponse<K>)[], K, ApiError>

Type Parameters

Type Parameter
K extends KubeObject<any>

Parameters

ParameterType
this(...args: any) => K & typeof KubeObject
__namedParametersobject & QueryParameters

Returns

[null | K[], null | ApiError] & QueryListResponse<(undefined | null | ListResponse<K>)[], K, ApiError>

Inherited from

makeKubeObject<KubeRoleBinding>().useList

Defined in

src/lib/k8s/KubeObject.ts:297