Class: VPA
lib/k8s/vpa .VPA
Hierarchy
-
any
↳
VPA
Constructors
constructor
• new VPA(json
)
Parameters
Name | Type |
---|---|
json |
KubeVPA
|
Inherited from
makeKubeObject<KubeVPA>(‘verticalPodAutoscaler’).constructor
Defined in
Properties
apiEndpoint
▪ Static
apiEndpoint: Object
Index signature
▪ [other: string
]: any
Type declaration
Name | Type |
---|---|
scale? |
{ get : (namespace : string , name : string , clusterName? : string ) => Promise <any > ; put : (body : { metadata :
KubeMetadata
; spec : { replicas : number } }, clusterName? : string ) => Promise <any > } |
scale.get |
(namespace : string , name : string , clusterName? : string ) => Promise <any > |
scale.put |
(body : { metadata :
KubeMetadata
; spec : { replicas : number } }, clusterName? : string ) => Promise <any > |
Defined in
className
▪ Static
className: string
Inherited from
makeKubeObject<KubeVPA>(‘verticalPodAutoscaler’).className
Defined in
Accessors
referenceObject
• get
referenceObject(): any
Returns
any
Defined in
spec
• get
spec(): VpaSpec
Returns
VpaSpec
Defined in
status
• get
status(): VpaStatus
Returns
VpaStatus
Defined in
targetRecommendations
• get
targetRecommendations(): undefined
| null
| RecommendationValue
Returns
undefined
| null
| RecommendationValue
Defined in
Methods
apiList
▸ Static
apiList(onList
, onError?
, opts?
): any
Parameters
Name | Type |
---|---|
onList |
(arg : any []) => void |
onError? |
(err :
ApiError
) => void |
opts? |
ApiListSingleNamespaceOptions
|
Returns
any
Inherited from
makeKubeObject<KubeVPA>(‘verticalPodAutoscaler’).apiList
Defined in
getAuthorization
▸ Static
Optional
getAuthorization(arg
, resourceAttrs?
): any
Parameters
Name | Type |
---|---|
arg |
string |
resourceAttrs? |
AuthRequestResourceAttrs
|
Returns
any
Inherited from
makeKubeObject<KubeVPA>(‘verticalPodAutoscaler’).getAuthorization
Defined in
getErrorMessage
▸ Static
getErrorMessage(err?
): null
| string
Parameters
Name | Type |
---|---|
err? |
null |
ApiError
|
Returns
null
| string
Inherited from
makeKubeObject<KubeVPA>(‘verticalPodAutoscaler’).getErrorMessage
Defined in
isEnabled
▸ Static
isEnabled(): Promise
<boolean
>
Returns
Promise
<boolean
>
Defined in
useApiGet
▸ Static
useApiGet(onGet
, name
, namespace?
, onError?
): void
Parameters
Name | Type |
---|---|
onGet |
(…args : any ) => void |
name |
string |
namespace? |
string |
onError? |
(err :
ApiError
) => void |
Returns
void
Inherited from
makeKubeObject<KubeVPA>(‘verticalPodAutoscaler’).useApiGet
Defined in
useApiList
▸ Static
useApiList(onList
, onError?
, opts?
): any
Parameters
Name | Type |
---|---|
onList |
(arg : any []) => void |
onError? |
(err :
ApiError
) => void |
opts? |
ApiListOptions
|
Returns
any
Inherited from
makeKubeObject<KubeVPA>(‘verticalPodAutoscaler’).useApiList
Defined in
useGet
▸ Static
useGet(name
, namespace?
): [any
, null
|
ApiError
, (item
: any
) => void
, (err
: null
|
ApiError
) => void
]
Parameters
Name | Type |
---|---|
name |
string |
namespace? |
string |
Returns
[any
, null
|
ApiError
, (item
: any
) => void
, (err
: null
|
ApiError
) => void
]
Inherited from
makeKubeObject<KubeVPA>(‘verticalPodAutoscaler’).useGet
Defined in
useList
▸ Static
useList(opts?
): [any
[], null
|
ApiError
, (items
: any
[]) => void
, (err
: null
|
ApiError
) => void
]
Parameters
Name | Type |
---|---|
opts? |
ApiListOptions
|
Returns
[any
[], null
|
ApiError
, (items
: any
[]) => void
, (err
: null
|
ApiError
) => void
]
Inherited from
makeKubeObject<KubeVPA>(‘verticalPodAutoscaler’).useList