Skip to main content

Class: Ingress

Extends

  • any

Constructors

new Ingress()

new Ingress(json: KubeIngress): Ingress

Parameters

ParameterType
jsonKubeIngress

Returns

Ingress

Inherited from

makeKubeObject<KubeIngress>('ingress').constructor

Defined in

src/lib/k8s/cluster.ts:337

Properties

PropertyModifierTypeInherited fromDefined in
apiEndpointstaticApiWithNamespaceClient<KubeObjectInterface>-src/lib/k8s/ingress.ts:72
apiListstatic(onList: (arg: any[]) => void, onError?: (err: ApiError) => void, opts?: ApiListSingleNamespaceOptions) => anymakeKubeObject<KubeIngress>('ingress').apiListsrc/lib/k8s/cluster.ts:311
classNamestaticstringmakeKubeObject<KubeIngress>('ingress').classNamesrc/lib/k8s/cluster.ts:338
getAuthorization?static(arg: string, resourceAttrs?: AuthRequestResourceAttrs) => anymakeKubeObject<KubeIngress>('ingress').getAuthorizationsrc/lib/k8s/cluster.ts:340
getErrorMessagestatic(err?: null | ApiError) => null | stringmakeKubeObject<KubeIngress>('ingress').getErrorMessagesrc/lib/k8s/cluster.ts:336
useApiGetstatic(onGet: (...args: any) => void, name: string, namespace?: string, onError?: (err: ApiError) => void) => voidmakeKubeObject<KubeIngress>('ingress').useApiGetsrc/lib/k8s/cluster.ts:321
useApiListstatic(onList: (arg: any[]) => void, onError?: (err: ApiError) => void, opts?: ApiListOptions) => anymakeKubeObject<KubeIngress>('ingress').useApiListsrc/lib/k8s/cluster.ts:316
useGetstatic(name: string, namespace?: string, opts?: object) => [any, null | ApiError] & QueryResponse<any, ApiError>makeKubeObject<KubeIngress>('ingress').useGetsrc/lib/k8s/cluster.ts:328

Accessors

spec

get spec(): object

Returns

object

defaultBackend?
optional defaultBackend: object;
defaultBackend.resource?
optional resource: object;
defaultBackend.resource.apiVersion
apiVersion: string;
defaultBackend.resource.kind
kind: string;
defaultBackend.resource.name
name: string;
defaultBackend.service?
optional service: object;
defaultBackend.service.name
name: string;
defaultBackend.service.port
port: object;
defaultBackend.service.port.name?
optional name: string;
defaultBackend.service.port.number?
optional number: number;
ingressClassName?
optional ingressClassName: string;
rules
rules: IngressRule[] | LegacyIngressRule[];
tls?
optional tls: object[];

Defined in

src/lib/k8s/ingress.ts:79


listRoute

get static listRoute(): string

Returns

string

Defined in

src/lib/k8s/ingress.ts:133


pluralName

get static pluralName(): string

Returns

string

Defined in

src/lib/k8s/ingress.ts:137

Methods

getHosts()

getHosts(): string

Returns

string

Defined in

src/lib/k8s/ingress.ts:83


getRules()

getRules(): IngressRule[]

Returns

IngressRule[]

Defined in

src/lib/k8s/ingress.ts:87


useList()

static useList(options?: ApiListOptions): [null | any[], null | ApiError] & QueryListResponse<KubeList<any>, any, ApiError>

Parameters

ParameterType
options?ApiListOptions

Returns

[null | any[], null | ApiError] & QueryListResponse<KubeList<any>, any, ApiError>

Inherited from

makeKubeObject<KubeIngress>('ingress').useList

Defined in

src/lib/k8s/cluster.ts:327