Class: Ingress#
Hierarchy#
↳ Ingress
Table of contents#
Constructors#
Properties#
Accessors#
Methods#
- delete
- getAge
- getAnnotations
- getFinalizers
- getHosts
- getId
- getLabels
- getLoadBalancers
- getName
- getNs
- getOwnerRefs
- getPorts
- getResourceVersion
- getRoutes
- getSearchFields
- getServiceNamePort
- getTimeDiffFromNow
- toPlainObject
- update
- create
- isJsonApiData
- isJsonApiDataList
- isKubeJsonApiListMetadata
- isKubeJsonApiMetadata
- isNonSystem
- isPartialJsonApiData
- isPartialJsonApiMetadata
- stringifyLabels
Constructors#
constructor#
• new Ingress(data
)
Parameters#
Name | Type |
---|---|
data |
KubeJsonApiData |
Inherited from#
Properties#
apiVersion#
• apiVersion: string
Inherited from#
kind#
• kind: string
Inherited from#
managedFields#
• Optional
managedFields: any
Inherited from#
metadata#
• metadata: KubeObjectMetadata
Inherited from#
spec#
• spec: Object
Type declaration#
Name | Type |
---|---|
backend? |
IExtensionsBackend |
defaultBackend? |
INetworkingBackend & { resource : { apiGroup : string ; kind : string ; name : string } } |
rules? |
{ host? : string ; http : { paths : { backend : IIngressBackend ; path? : string }[] } }[] |
tls |
{ secretName : string }[] |
Inherited from#
status#
• status: Object
Type declaration#
Name | Type |
---|---|
loadBalancer |
Object |
loadBalancer.ingress |
ILoadBalancerIngress [] |
Inherited from#
apiBase#
▪ Static
apiBase: string
= "/apis/networking.k8s.io/v1/ingresses"
kind#
▪ Static
kind: string
= "Ingress"
Inherited from#
namespaced#
▪ Static
namespaced: boolean
= true
Inherited from#
nonEditableFields#
▪ Static
Protected
Readonly
nonEditableFields: string
[]
Inherited from#
Accessors#
selfLink#
• get
selfLink(): string
Returns#
string
Methods#
delete#
▸ delete(params?
): Promise
<KubeJsonApiData>
Parameters#
Name | Type |
---|---|
params? |
JsonApiParams <any> |
Returns#
Promise
<KubeJsonApiData>
Inherited from#
getAge#
▸ getAge(humanize?
, compact?
, fromNow?
): string
| number
Parameters#
Name | Type | Default value |
---|---|---|
humanize |
boolean |
true |
compact |
boolean |
true |
fromNow |
boolean |
false |
Returns#
string
| number
Inherited from#
getAnnotations#
▸ getAnnotations(filter?
): string
[]
Parameters#
Name | Type | Default value |
---|---|---|
filter |
boolean |
false |
Returns#
string
[]
Inherited from#
getFinalizers#
▸ getFinalizers(): string
[]
Returns#
string
[]
Inherited from#
getHosts#
▸ getHosts(): string
[]
Returns#
string
[]
getId#
▸ getId(): string
Returns#
string
Inherited from#
getLabels#
▸ getLabels(): string
[]
Returns#
string
[]
Inherited from#
getLoadBalancers#
▸ getLoadBalancers(): string
[]
Returns#
string
[]
getName#
▸ getName(): string
Returns#
string
Inherited from#
getNs#
▸ getNs(): string
Returns#
string
Inherited from#
getOwnerRefs#
▸ getOwnerRefs(): { apiVersion
: string
; blockOwnerDeletion
: boolean
; controller
: boolean
; kind
: string
; name
: string
; namespace
: string
; uid
: string
}[]
Returns#
{ apiVersion
: string
; blockOwnerDeletion
: boolean
; controller
: boolean
; kind
: string
; name
: string
; namespace
: string
; uid
: string
}[]
Inherited from#
getPorts#
▸ getPorts(): string
Returns#
string
getResourceVersion#
▸ getResourceVersion(): string
Returns#
string
Inherited from#
getRoutes#
▸ getRoutes(): string
[]
Returns#
string
[]
getSearchFields#
▸ getSearchFields(): string
[]
Returns#
string
[]
Inherited from#
getServiceNamePort#
▸ getServiceNamePort(): Object
Returns#
Object
Name | Type |
---|---|
serviceName |
string |
servicePort |
string | number |
getTimeDiffFromNow#
▸ getTimeDiffFromNow(): number
Returns#
number
Inherited from#
toPlainObject#
▸ toPlainObject(): object
Returns#
object
Inherited from#
update#
▸ update(data
): Promise
<KubeJsonApiData>
Parameters#
Name | Type |
---|---|
data |
Partial <Ingress> |
Returns#
Promise
<KubeJsonApiData>
Inherited from#
create#
▸ Static
create(data
): KubeObject<KubeObjectMetadata, any, any>
Parameters#
Name | Type |
---|---|
data |
KubeJsonApiData |
Returns#
KubeObject<KubeObjectMetadata, any, any>
Inherited from#
isJsonApiData#
▸ Static
isJsonApiData(object
): object is KubeJsonApiData
Parameters#
Name | Type |
---|---|
object |
unknown |
Returns#
object is KubeJsonApiData
Inherited from#
isJsonApiDataList#
▸ Static
isJsonApiDataList<T>(object
, verifyItem
): object is KubeJsonApiDataList<T>
Type parameters#
Name |
---|
T |
Parameters#
Name | Type |
---|---|
object |
unknown |
verifyItem |
(val : unknown ) => val is T |
Returns#
object is KubeJsonApiDataList<T>
Inherited from#
isKubeJsonApiListMetadata#
▸ Static
isKubeJsonApiListMetadata(object
): object is KubeJsonApiListMetadata
Parameters#
Name | Type |
---|---|
object |
unknown |
Returns#
object is KubeJsonApiListMetadata
Inherited from#
KubeObject.isKubeJsonApiListMetadata
isKubeJsonApiMetadata#
▸ Static
isKubeJsonApiMetadata(object
): object is KubeJsonApiMetadata
Parameters#
Name | Type |
---|---|
object |
unknown |
Returns#
object is KubeJsonApiMetadata
Inherited from#
KubeObject.isKubeJsonApiMetadata
isNonSystem#
▸ Static
isNonSystem(item
): boolean
Parameters#
Name | Type |
---|---|
item |
KubeObject<KubeObjectMetadata, any, any> | KubeJsonApiData |
Returns#
boolean
Inherited from#
isPartialJsonApiData#
▸ Static
isPartialJsonApiData(object
): object is Partial<KubeJsonApiData>
Parameters#
Name | Type |
---|---|
object |
unknown |
Returns#
object is Partial<KubeJsonApiData>
Inherited from#
KubeObject.isPartialJsonApiData
isPartialJsonApiMetadata#
▸ Static
isPartialJsonApiMetadata(object
): object is Partial<KubeJsonApiMetadata>
Parameters#
Name | Type |
---|---|
object |
unknown |
Returns#
object is Partial<KubeJsonApiMetadata>
Inherited from#
KubeObject.isPartialJsonApiMetadata
stringifyLabels#
▸ Static
stringifyLabels(labels?
): string
[]
Parameters#
Name | Type |
---|---|
labels? |
Object |
Returns#
string
[]