kubernetypes 1.36.0 → 1.36.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/admission/v1beta1.d.ts +10 -10
- package/dist/api/apiextensions/v1.d.ts +14 -14
- package/dist/api/authentication/v1alpha1.d.ts +5 -5
- package/dist/api/authorization/v1beta1.d.ts +12 -12
- package/dist/api/autoscaling/v1.d.ts +30 -30
- package/dist/api/autoscaling/v2.d.ts +20 -20
- package/dist/api/batch/v1.d.ts +9 -9
- package/dist/api/batch/v1beta1.d.ts +4 -4
- package/dist/api/core/v1.d.ts +13 -13
- package/dist/api/discovery/v1.d.ts +8 -8
- package/dist/api/extensions/v1beta1.d.ts +44 -44
- package/dist/api/networking/v1beta1.d.ts +21 -21
- package/dist/api/node/v1.d.ts +8 -8
- package/dist/api/node/v1beta1.d.ts +8 -8
- package/dist/api/policy/v1.d.ts +14 -14
- package/dist/api/resource/v1beta1.d.ts +40 -40
- package/dist/api/resource/v1beta2.d.ts +40 -40
- package/dist/api/storage/v1.d.ts +31 -31
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as m2 from 'kubernetypes/api/authentication/v1';
|
|
2
|
-
import * as
|
|
2
|
+
import * as m1 from 'kubernetypes/apimachinery/apis/meta/v1';
|
|
3
3
|
import * as m3 from 'kubernetypes/apimachinery/runtime';
|
|
4
|
-
import * as
|
|
4
|
+
import * as m0 from 'kubernetypes/apimachinery/types';
|
|
5
5
|
/**
|
|
6
6
|
* AdmissionRequest describes the admission.Attributes for the admission request.
|
|
7
7
|
*/
|
|
@@ -14,7 +14,7 @@ export type AdmissionRequest = {
|
|
|
14
14
|
/**
|
|
15
15
|
* kind is the fully-qualified type of object being submitted (for example, v1.Pod or autoscaling.v1.Scale)
|
|
16
16
|
*/
|
|
17
|
-
'kind'?:
|
|
17
|
+
'kind'?: m1.GroupVersionKind;
|
|
18
18
|
/**
|
|
19
19
|
* name is the name of the object as presented in the request. On a CREATE operation, the client may omit name and
|
|
20
20
|
* rely on the server to generate the name. If that is the case, this field will contain an empty string.
|
|
@@ -57,7 +57,7 @@ export type AdmissionRequest = {
|
|
|
57
57
|
*
|
|
58
58
|
* See documentation for the "matchPolicy" field in the webhook configuration type for more details.
|
|
59
59
|
*/
|
|
60
|
-
'requestKind'?:
|
|
60
|
+
'requestKind'?: m1.GroupVersionKind;
|
|
61
61
|
/**
|
|
62
62
|
* requestResource is the fully-qualified resource of the original API request (for example, v1.pods).
|
|
63
63
|
* If this is specified and differs from the value in "resource", an equivalent match and conversion was performed.
|
|
@@ -70,7 +70,7 @@ export type AdmissionRequest = {
|
|
|
70
70
|
*
|
|
71
71
|
* See documentation for the "matchPolicy" field in the webhook configuration type.
|
|
72
72
|
*/
|
|
73
|
-
'requestResource'?:
|
|
73
|
+
'requestResource'?: m1.GroupVersionResource;
|
|
74
74
|
/**
|
|
75
75
|
* requestSubResource is the name of the subresource of the original API request, if any (for example, "status" or "scale")
|
|
76
76
|
* If this is specified and differs from the value in "subResource", an equivalent match and conversion was performed.
|
|
@@ -80,7 +80,7 @@ export type AdmissionRequest = {
|
|
|
80
80
|
/**
|
|
81
81
|
* resource is the fully-qualified resource being requested (for example, v1.pods)
|
|
82
82
|
*/
|
|
83
|
-
'resource'?:
|
|
83
|
+
'resource'?: m1.GroupVersionResource;
|
|
84
84
|
/**
|
|
85
85
|
* subResource is the subresource being requested, if any (for example, "status" or "scale")
|
|
86
86
|
*/
|
|
@@ -91,7 +91,7 @@ export type AdmissionRequest = {
|
|
|
91
91
|
* The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request.
|
|
92
92
|
* It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging.
|
|
93
93
|
*/
|
|
94
|
-
'uid'?:
|
|
94
|
+
'uid'?: m0.UID;
|
|
95
95
|
/**
|
|
96
96
|
* userInfo is information about the requesting user
|
|
97
97
|
*/
|
|
@@ -126,12 +126,12 @@ export type AdmissionResponse = {
|
|
|
126
126
|
* status is the result contains extra details into why an admission request was denied.
|
|
127
127
|
* This field IS NOT consulted in any way if "Allowed" is "true".
|
|
128
128
|
*/
|
|
129
|
-
'status'?:
|
|
129
|
+
'status'?: m1.Status;
|
|
130
130
|
/**
|
|
131
131
|
* uid is an identifier for the individual request/response.
|
|
132
132
|
* This should be copied over from the corresponding AdmissionRequest.
|
|
133
133
|
*/
|
|
134
|
-
'uid'?:
|
|
134
|
+
'uid'?: m0.UID;
|
|
135
135
|
/**
|
|
136
136
|
* warnings is a list of warning messages to return to the requesting API client.
|
|
137
137
|
* Warning messages describe a problem the client making the API request should correct or be aware of.
|
|
@@ -143,7 +143,7 @@ export type AdmissionResponse = {
|
|
|
143
143
|
/**
|
|
144
144
|
* AdmissionReview describes an admission review request/response.
|
|
145
145
|
*/
|
|
146
|
-
export type AdmissionReview =
|
|
146
|
+
export type AdmissionReview = m1.TypeMeta<'admission.k8s.io/v1beta1', 'AdmissionReview'> & {
|
|
147
147
|
/**
|
|
148
148
|
* request describes the attributes for the admission request.
|
|
149
149
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
1
|
+
import * as m0 from 'kubernetypes/apimachinery/apis/meta/v1';
|
|
2
|
+
import * as m2 from 'kubernetypes/apimachinery/runtime';
|
|
3
|
+
import * as m1 from 'kubernetypes/apimachinery/types';
|
|
4
4
|
export type ConditionStatus = 'False' | 'True' | 'Unknown' | (string & {});
|
|
5
5
|
/**
|
|
6
6
|
* ConversionRequest describes the conversion request parameters.
|
|
@@ -13,14 +13,14 @@ export type ConversionRequest = {
|
|
|
13
13
|
/**
|
|
14
14
|
* objects is the list of custom resource objects to be converted.
|
|
15
15
|
*/
|
|
16
|
-
'objects':
|
|
16
|
+
'objects': m2.RawExtension[];
|
|
17
17
|
/**
|
|
18
18
|
* uid is an identifier for the individual request/response. It allows distinguishing instances of requests which are
|
|
19
19
|
* otherwise identical (parallel requests, etc).
|
|
20
20
|
* The UID is meant to track the round trip (request/response) between the Kubernetes API server and the webhook, not the user request.
|
|
21
21
|
* It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging.
|
|
22
22
|
*/
|
|
23
|
-
'uid':
|
|
23
|
+
'uid': m1.UID;
|
|
24
24
|
};
|
|
25
25
|
/**
|
|
26
26
|
* ConversionResponse describes a conversion response.
|
|
@@ -32,7 +32,7 @@ export type ConversionResponse = {
|
|
|
32
32
|
* must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
|
|
33
33
|
* The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
|
|
34
34
|
*/
|
|
35
|
-
'convertedObjects':
|
|
35
|
+
'convertedObjects': m2.RawExtension[];
|
|
36
36
|
/**
|
|
37
37
|
* result contains the result of conversion with extra details if the conversion failed. `result.status` determines if
|
|
38
38
|
* the conversion failed or succeeded. The `result.status` field is required and represents the success or failure of the
|
|
@@ -40,17 +40,17 @@ export type ConversionResponse = {
|
|
|
40
40
|
* `result.status` to `Failure` and provide more details in `result.message` and return http status 200. The `result.message`
|
|
41
41
|
* will be used to construct an error message for the end user.
|
|
42
42
|
*/
|
|
43
|
-
'result':
|
|
43
|
+
'result': m0.Status;
|
|
44
44
|
/**
|
|
45
45
|
* uid is an identifier for the individual request/response.
|
|
46
46
|
* This should be copied over from the corresponding `request.uid`.
|
|
47
47
|
*/
|
|
48
|
-
'uid':
|
|
48
|
+
'uid': m1.UID;
|
|
49
49
|
};
|
|
50
50
|
/**
|
|
51
51
|
* ConversionReview describes a conversion request/response.
|
|
52
52
|
*/
|
|
53
|
-
export type ConversionReview =
|
|
53
|
+
export type ConversionReview = m0.TypeMeta<'apiextensions.k8s.io/v1', 'ConversionReview'> & {
|
|
54
54
|
/**
|
|
55
55
|
* request describes the attributes for the conversion request.
|
|
56
56
|
*/
|
|
@@ -119,12 +119,12 @@ export type CustomResourceConversion = {
|
|
|
119
119
|
* CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format
|
|
120
120
|
* <.spec.name>.<.spec.group>.
|
|
121
121
|
*/
|
|
122
|
-
export type CustomResourceDefinition =
|
|
122
|
+
export type CustomResourceDefinition = m0.TypeMeta<'apiextensions.k8s.io/v1', 'CustomResourceDefinition'> & {
|
|
123
123
|
/**
|
|
124
124
|
* Standard object's metadata
|
|
125
125
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
126
126
|
*/
|
|
127
|
-
'metadata'?:
|
|
127
|
+
'metadata'?: m0.ObjectMeta;
|
|
128
128
|
/**
|
|
129
129
|
* spec describes how the user wants the resources to appear
|
|
130
130
|
*/
|
|
@@ -141,7 +141,7 @@ export type CustomResourceDefinitionCondition = {
|
|
|
141
141
|
/**
|
|
142
142
|
* lastTransitionTime last time the condition transitioned from one status to another.
|
|
143
143
|
*/
|
|
144
|
-
'lastTransitionTime'?:
|
|
144
|
+
'lastTransitionTime'?: m0.Time;
|
|
145
145
|
/**
|
|
146
146
|
* message is a human-readable message indicating details about last transition.
|
|
147
147
|
*/
|
|
@@ -173,7 +173,7 @@ export type CustomResourceDefinitionConditionType = 'Established' | 'KubernetesA
|
|
|
173
173
|
/**
|
|
174
174
|
* CustomResourceDefinitionList is a list of CustomResourceDefinition objects.
|
|
175
175
|
*/
|
|
176
|
-
export type CustomResourceDefinitionList =
|
|
176
|
+
export type CustomResourceDefinitionList = m0.TypeMeta<'apiextensions.k8s.io/v1', 'CustomResourceDefinitionList'> & {
|
|
177
177
|
/**
|
|
178
178
|
* items list individual CustomResourceDefinition objects
|
|
179
179
|
*/
|
|
@@ -182,7 +182,7 @@ export type CustomResourceDefinitionList = m2.TypeMeta<'apiextensions.k8s.io/v1'
|
|
|
182
182
|
* Standard object's metadata
|
|
183
183
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
184
184
|
*/
|
|
185
|
-
'metadata'?:
|
|
185
|
+
'metadata'?: m0.ListMeta;
|
|
186
186
|
};
|
|
187
187
|
/**
|
|
188
188
|
* CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as m0 from 'kubernetypes/api/authentication/v1';
|
|
2
|
+
import * as m1 from 'kubernetypes/apimachinery/apis/meta/v1';
|
|
3
3
|
/**
|
|
4
4
|
* SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request.
|
|
5
5
|
* When using impersonation, users will receive the user info of the user being impersonated. If impersonation or
|
|
6
6
|
* request header authentication is used, any extra keys will have their case ignored and returned as lowercase.
|
|
7
7
|
*/
|
|
8
|
-
export type SelfSubjectReview =
|
|
8
|
+
export type SelfSubjectReview = m1.TypeMeta<'authentication.k8s.io/v1alpha1', 'SelfSubjectReview'> & {
|
|
9
9
|
/**
|
|
10
10
|
* metadata is the standard object's metadata.
|
|
11
11
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
12
12
|
*/
|
|
13
|
-
'metadata'?:
|
|
13
|
+
'metadata'?: m1.ObjectMeta;
|
|
14
14
|
/**
|
|
15
15
|
* status is filled in by the server with the user attributes.
|
|
16
16
|
*/
|
|
@@ -23,5 +23,5 @@ export type SelfSubjectReviewStatus = {
|
|
|
23
23
|
/**
|
|
24
24
|
* userInfo is a set of attributes belonging to the user making this request.
|
|
25
25
|
*/
|
|
26
|
-
'userInfo'?:
|
|
26
|
+
'userInfo'?: m0.UserInfo;
|
|
27
27
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as m0 from 'kubernetypes/api/authorization/v1';
|
|
2
|
+
import * as m1 from 'kubernetypes/apimachinery/apis/meta/v1';
|
|
3
3
|
/**
|
|
4
4
|
* ExtraValue masks the value so protobuf can generate
|
|
5
5
|
*/
|
|
@@ -9,12 +9,12 @@ export type ExtraValue = string[];
|
|
|
9
9
|
* Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions
|
|
10
10
|
* checking.
|
|
11
11
|
*/
|
|
12
|
-
export type LocalSubjectAccessReview =
|
|
12
|
+
export type LocalSubjectAccessReview = m1.TypeMeta<'authorization.k8s.io/v1beta1', 'LocalSubjectAccessReview'> & {
|
|
13
13
|
/**
|
|
14
14
|
* metadata is the standard list metadata.
|
|
15
15
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
16
16
|
*/
|
|
17
|
-
'metadata'?:
|
|
17
|
+
'metadata'?: m1.ObjectMeta;
|
|
18
18
|
/**
|
|
19
19
|
* spec holds information about the request being evaluated. spec.namespace must be equal to the namespace
|
|
20
20
|
* you made the request against. If empty, it is defaulted.
|
|
@@ -59,7 +59,7 @@ export type ResourceAttributes = {
|
|
|
59
59
|
/**
|
|
60
60
|
* fieldSelector describes the limitation on access based on field. It can only limit access, not broaden it.
|
|
61
61
|
*/
|
|
62
|
-
'fieldSelector'?:
|
|
62
|
+
'fieldSelector'?: m0.FieldSelectorAttributes;
|
|
63
63
|
/**
|
|
64
64
|
* group is the API Group of the Resource. "*" means all.
|
|
65
65
|
*/
|
|
@@ -67,7 +67,7 @@ export type ResourceAttributes = {
|
|
|
67
67
|
/**
|
|
68
68
|
* labelSelector describes the limitation on access based on labels. It can only limit access, not broaden it.
|
|
69
69
|
*/
|
|
70
|
-
'labelSelector'?:
|
|
70
|
+
'labelSelector'?: m0.LabelSelectorAttributes;
|
|
71
71
|
/**
|
|
72
72
|
* name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.
|
|
73
73
|
*/
|
|
@@ -125,12 +125,12 @@ export type ResourceRule = {
|
|
|
125
125
|
* spec.namespace means "in all namespaces". Self is a special case, because users should always be able
|
|
126
126
|
* to check whether they can perform an action
|
|
127
127
|
*/
|
|
128
|
-
export type SelfSubjectAccessReview =
|
|
128
|
+
export type SelfSubjectAccessReview = m1.TypeMeta<'authorization.k8s.io/v1beta1', 'SelfSubjectAccessReview'> & {
|
|
129
129
|
/**
|
|
130
130
|
* metadata is the standard list metadata.
|
|
131
131
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
132
132
|
*/
|
|
133
|
-
'metadata'?:
|
|
133
|
+
'metadata'?: m1.ObjectMeta;
|
|
134
134
|
/**
|
|
135
135
|
* spec holds information about the request being evaluated. user and groups must be empty
|
|
136
136
|
*/
|
|
@@ -162,12 +162,12 @@ export type SelfSubjectAccessReviewSpec = {
|
|
|
162
162
|
* drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns.
|
|
163
163
|
* SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server.
|
|
164
164
|
*/
|
|
165
|
-
export type SelfSubjectRulesReview =
|
|
165
|
+
export type SelfSubjectRulesReview = m1.TypeMeta<'authorization.k8s.io/v1beta1', 'SelfSubjectRulesReview'> & {
|
|
166
166
|
/**
|
|
167
167
|
* metadata is the standard list metadata.
|
|
168
168
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
169
169
|
*/
|
|
170
|
-
'metadata'?:
|
|
170
|
+
'metadata'?: m1.ObjectMeta;
|
|
171
171
|
/**
|
|
172
172
|
* spec holds information about the request being evaluated.
|
|
173
173
|
*/
|
|
@@ -189,12 +189,12 @@ export type SelfSubjectRulesReviewSpec = {
|
|
|
189
189
|
/**
|
|
190
190
|
* SubjectAccessReview checks whether or not a user or group can perform an action.
|
|
191
191
|
*/
|
|
192
|
-
export type SubjectAccessReview =
|
|
192
|
+
export type SubjectAccessReview = m1.TypeMeta<'authorization.k8s.io/v1beta1', 'SubjectAccessReview'> & {
|
|
193
193
|
/**
|
|
194
194
|
* metadata is the standard list metadata.
|
|
195
195
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
196
196
|
*/
|
|
197
|
-
'metadata'?:
|
|
197
|
+
'metadata'?: m1.ObjectMeta;
|
|
198
198
|
/**
|
|
199
199
|
* spec holds information about the request being evaluated
|
|
200
200
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as m2 from 'kubernetypes/api/core/v1';
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as m0 from 'kubernetypes/apimachinery/api/resource';
|
|
3
|
+
import * as m1 from 'kubernetypes/apimachinery/apis/meta/v1';
|
|
4
4
|
/**
|
|
5
5
|
* ContainerResourceMetricSource indicates how to scale on a resource metric known to
|
|
6
6
|
* Kubernetes, as specified in the requests and limits, describing a single container in
|
|
@@ -30,7 +30,7 @@ export type ContainerResourceMetricSource = {
|
|
|
30
30
|
* resource metric across all relevant pods, as a raw value (instead of as
|
|
31
31
|
* a percentage of the request), similar to the "pods" metric source type.
|
|
32
32
|
*/
|
|
33
|
-
'targetAverageValue'?:
|
|
33
|
+
'targetAverageValue'?: m0.Quantity;
|
|
34
34
|
};
|
|
35
35
|
/**
|
|
36
36
|
* ContainerResourceMetricStatus indicates the current value of a resource metric known to
|
|
@@ -58,7 +58,7 @@ export type ContainerResourceMetricStatus = {
|
|
|
58
58
|
* a percentage of the request), similar to the "pods" metric source type.
|
|
59
59
|
* It will always be set, regardless of the corresponding metric specification.
|
|
60
60
|
*/
|
|
61
|
-
'currentAverageValue':
|
|
61
|
+
'currentAverageValue': m0.Quantity;
|
|
62
62
|
/**
|
|
63
63
|
* name is the name of the resource in question.
|
|
64
64
|
*/
|
|
@@ -95,17 +95,17 @@ export type ExternalMetricSource = {
|
|
|
95
95
|
* metricSelector is used to identify a specific time series
|
|
96
96
|
* within a given metric.
|
|
97
97
|
*/
|
|
98
|
-
'metricSelector'?:
|
|
98
|
+
'metricSelector'?: m1.LabelSelector;
|
|
99
99
|
/**
|
|
100
100
|
* targetAverageValue is the target per-pod value of global metric (as a quantity).
|
|
101
101
|
* Mutually exclusive with TargetValue.
|
|
102
102
|
*/
|
|
103
|
-
'targetAverageValue'?:
|
|
103
|
+
'targetAverageValue'?: m0.Quantity;
|
|
104
104
|
/**
|
|
105
105
|
* targetValue is the target value of the metric (as a quantity).
|
|
106
106
|
* Mutually exclusive with TargetAverageValue.
|
|
107
107
|
*/
|
|
108
|
-
'targetValue'?:
|
|
108
|
+
'targetValue'?: m0.Quantity;
|
|
109
109
|
};
|
|
110
110
|
/**
|
|
111
111
|
* ExternalMetricStatus indicates the current value of a global metric
|
|
@@ -115,11 +115,11 @@ export type ExternalMetricStatus = {
|
|
|
115
115
|
/**
|
|
116
116
|
* currentAverageValue is the current value of metric averaged over autoscaled pods.
|
|
117
117
|
*/
|
|
118
|
-
'currentAverageValue'?:
|
|
118
|
+
'currentAverageValue'?: m0.Quantity;
|
|
119
119
|
/**
|
|
120
120
|
* currentValue is the current value of the metric (as a quantity)
|
|
121
121
|
*/
|
|
122
|
-
'currentValue':
|
|
122
|
+
'currentValue': m0.Quantity;
|
|
123
123
|
/**
|
|
124
124
|
* metricName is the name of a metric used for autoscaling in
|
|
125
125
|
* metric system.
|
|
@@ -129,16 +129,16 @@ export type ExternalMetricStatus = {
|
|
|
129
129
|
* metricSelector is used to identify a specific time series
|
|
130
130
|
* within a given metric.
|
|
131
131
|
*/
|
|
132
|
-
'metricSelector'?:
|
|
132
|
+
'metricSelector'?: m1.LabelSelector;
|
|
133
133
|
};
|
|
134
134
|
/**
|
|
135
135
|
* configuration of a horizontal pod autoscaler.
|
|
136
136
|
*/
|
|
137
|
-
export type HorizontalPodAutoscaler =
|
|
137
|
+
export type HorizontalPodAutoscaler = m1.TypeMeta<'autoscaling/v1', 'HorizontalPodAutoscaler'> & {
|
|
138
138
|
/**
|
|
139
139
|
* Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
140
140
|
*/
|
|
141
|
-
'metadata'?:
|
|
141
|
+
'metadata'?: m1.ObjectMeta;
|
|
142
142
|
/**
|
|
143
143
|
* spec defines the behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
|
|
144
144
|
*/
|
|
@@ -157,7 +157,7 @@ export type HorizontalPodAutoscalerCondition = {
|
|
|
157
157
|
* lastTransitionTime is the last time the condition transitioned from
|
|
158
158
|
* one status to another
|
|
159
159
|
*/
|
|
160
|
-
'lastTransitionTime'?:
|
|
160
|
+
'lastTransitionTime'?: m1.Time;
|
|
161
161
|
/**
|
|
162
162
|
* message is a human-readable explanation containing details about
|
|
163
163
|
* the transition
|
|
@@ -184,7 +184,7 @@ export type HorizontalPodAutoscalerConditionType = 'AbleToScale' | 'ScaledToZero
|
|
|
184
184
|
/**
|
|
185
185
|
* list of horizontal pod autoscaler objects.
|
|
186
186
|
*/
|
|
187
|
-
export type HorizontalPodAutoscalerList =
|
|
187
|
+
export type HorizontalPodAutoscalerList = m1.TypeMeta<'autoscaling/v1', 'HorizontalPodAutoscalerList'> & {
|
|
188
188
|
/**
|
|
189
189
|
* items is the list of horizontal pod autoscaler objects.
|
|
190
190
|
*/
|
|
@@ -192,7 +192,7 @@ export type HorizontalPodAutoscalerList = m0.TypeMeta<'autoscaling/v1', 'Horizon
|
|
|
192
192
|
/**
|
|
193
193
|
* Standard list metadata.
|
|
194
194
|
*/
|
|
195
|
-
'metadata'?:
|
|
195
|
+
'metadata'?: m1.ListMeta;
|
|
196
196
|
};
|
|
197
197
|
/**
|
|
198
198
|
* specification of a horizontal pod autoscaler.
|
|
@@ -242,7 +242,7 @@ export type HorizontalPodAutoscalerStatus = {
|
|
|
242
242
|
* lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods;
|
|
243
243
|
* used by the autoscaler to control how often the number of pods is changed.
|
|
244
244
|
*/
|
|
245
|
-
'lastScaleTime'?:
|
|
245
|
+
'lastScaleTime'?: m1.Time;
|
|
246
246
|
/**
|
|
247
247
|
* observedGeneration is the most recent generation observed by this autoscaler.
|
|
248
248
|
*/
|
|
@@ -352,7 +352,7 @@ export type ObjectMetricSource = {
|
|
|
352
352
|
* averageValue is the target value of the average of the
|
|
353
353
|
* metric across all relevant pods (as a quantity)
|
|
354
354
|
*/
|
|
355
|
-
'averageValue'?:
|
|
355
|
+
'averageValue'?: m0.Quantity;
|
|
356
356
|
/**
|
|
357
357
|
* metricName is the name of the metric in question.
|
|
358
358
|
*/
|
|
@@ -362,7 +362,7 @@ export type ObjectMetricSource = {
|
|
|
362
362
|
* When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping
|
|
363
363
|
* When unset, just the metricName will be used to gather metrics.
|
|
364
364
|
*/
|
|
365
|
-
'selector'?:
|
|
365
|
+
'selector'?: m1.LabelSelector;
|
|
366
366
|
/**
|
|
367
367
|
* target is the described Kubernetes object.
|
|
368
368
|
*/
|
|
@@ -370,7 +370,7 @@ export type ObjectMetricSource = {
|
|
|
370
370
|
/**
|
|
371
371
|
* targetValue is the target value of the metric (as a quantity).
|
|
372
372
|
*/
|
|
373
|
-
'targetValue':
|
|
373
|
+
'targetValue': m0.Quantity;
|
|
374
374
|
};
|
|
375
375
|
/**
|
|
376
376
|
* ObjectMetricStatus indicates the current value of a metric describing a
|
|
@@ -381,11 +381,11 @@ export type ObjectMetricStatus = {
|
|
|
381
381
|
* averageValue is the current value of the average of the
|
|
382
382
|
* metric across all relevant pods (as a quantity)
|
|
383
383
|
*/
|
|
384
|
-
'averageValue'?:
|
|
384
|
+
'averageValue'?: m0.Quantity;
|
|
385
385
|
/**
|
|
386
386
|
* currentValue is the current value of the metric (as a quantity).
|
|
387
387
|
*/
|
|
388
|
-
'currentValue':
|
|
388
|
+
'currentValue': m0.Quantity;
|
|
389
389
|
/**
|
|
390
390
|
* metricName is the name of the metric in question.
|
|
391
391
|
*/
|
|
@@ -395,7 +395,7 @@ export type ObjectMetricStatus = {
|
|
|
395
395
|
* When set in the ObjectMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping.
|
|
396
396
|
* When unset, just the metricName will be used to gather metrics.
|
|
397
397
|
*/
|
|
398
|
-
'selector'?:
|
|
398
|
+
'selector'?: m1.LabelSelector;
|
|
399
399
|
/**
|
|
400
400
|
* target is the described Kubernetes object.
|
|
401
401
|
*/
|
|
@@ -417,12 +417,12 @@ export type PodsMetricSource = {
|
|
|
417
417
|
* When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping
|
|
418
418
|
* When unset, just the metricName will be used to gather metrics.
|
|
419
419
|
*/
|
|
420
|
-
'selector'?:
|
|
420
|
+
'selector'?: m1.LabelSelector;
|
|
421
421
|
/**
|
|
422
422
|
* targetAverageValue is the target value of the average of the
|
|
423
423
|
* metric across all relevant pods (as a quantity)
|
|
424
424
|
*/
|
|
425
|
-
'targetAverageValue':
|
|
425
|
+
'targetAverageValue': m0.Quantity;
|
|
426
426
|
};
|
|
427
427
|
/**
|
|
428
428
|
* PodsMetricStatus indicates the current value of a metric describing each pod in
|
|
@@ -433,7 +433,7 @@ export type PodsMetricStatus = {
|
|
|
433
433
|
* currentAverageValue is the current value of the average of the
|
|
434
434
|
* metric across all relevant pods (as a quantity)
|
|
435
435
|
*/
|
|
436
|
-
'currentAverageValue':
|
|
436
|
+
'currentAverageValue': m0.Quantity;
|
|
437
437
|
/**
|
|
438
438
|
* metricName is the name of the metric in question
|
|
439
439
|
*/
|
|
@@ -443,7 +443,7 @@ export type PodsMetricStatus = {
|
|
|
443
443
|
* When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping.
|
|
444
444
|
* When unset, just the metricName will be used to gather metrics.
|
|
445
445
|
*/
|
|
446
|
-
'selector'?:
|
|
446
|
+
'selector'?: m1.LabelSelector;
|
|
447
447
|
};
|
|
448
448
|
/**
|
|
449
449
|
* ResourceMetricSource indicates how to scale on a resource metric known to
|
|
@@ -470,7 +470,7 @@ export type ResourceMetricSource = {
|
|
|
470
470
|
* resource metric across all relevant pods, as a raw value (instead of as
|
|
471
471
|
* a percentage of the request), similar to the "pods" metric source type.
|
|
472
472
|
*/
|
|
473
|
-
'targetAverageValue'?:
|
|
473
|
+
'targetAverageValue'?: m0.Quantity;
|
|
474
474
|
};
|
|
475
475
|
/**
|
|
476
476
|
* ResourceMetricStatus indicates the current value of a resource metric known to
|
|
@@ -494,7 +494,7 @@ export type ResourceMetricStatus = {
|
|
|
494
494
|
* a percentage of the request), similar to the "pods" metric source type.
|
|
495
495
|
* It will always be set, regardless of the corresponding metric specification.
|
|
496
496
|
*/
|
|
497
|
-
'currentAverageValue':
|
|
497
|
+
'currentAverageValue': m0.Quantity;
|
|
498
498
|
/**
|
|
499
499
|
* name is the name of the resource in question.
|
|
500
500
|
*/
|
|
@@ -503,11 +503,11 @@ export type ResourceMetricStatus = {
|
|
|
503
503
|
/**
|
|
504
504
|
* Scale represents a scaling request for a resource.
|
|
505
505
|
*/
|
|
506
|
-
export type Scale =
|
|
506
|
+
export type Scale = m1.TypeMeta<'autoscaling/v1', 'Scale'> & {
|
|
507
507
|
/**
|
|
508
508
|
* Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
|
509
509
|
*/
|
|
510
|
-
'metadata'?:
|
|
510
|
+
'metadata'?: m1.ObjectMeta;
|
|
511
511
|
/**
|
|
512
512
|
* spec defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
|
|
513
513
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
1
|
+
import * as m2 from 'kubernetypes/api/core/v1';
|
|
2
|
+
import * as m1 from 'kubernetypes/apimachinery/api/resource';
|
|
3
|
+
import * as m0 from 'kubernetypes/apimachinery/apis/meta/v1';
|
|
4
4
|
/**
|
|
5
5
|
* ContainerResourceMetricSource indicates how to scale on a resource metric known to
|
|
6
6
|
* Kubernetes, as specified in requests and limits, describing each pod in the
|
|
@@ -18,7 +18,7 @@ export type ContainerResourceMetricSource = {
|
|
|
18
18
|
/**
|
|
19
19
|
* name is the name of the resource in question.
|
|
20
20
|
*/
|
|
21
|
-
'name':
|
|
21
|
+
'name': m2.ResourceName;
|
|
22
22
|
/**
|
|
23
23
|
* target specifies the target value for the given metric
|
|
24
24
|
*/
|
|
@@ -43,7 +43,7 @@ export type ContainerResourceMetricStatus = {
|
|
|
43
43
|
/**
|
|
44
44
|
* name is the name of the resource in question.
|
|
45
45
|
*/
|
|
46
|
-
'name':
|
|
46
|
+
'name': m2.ResourceName;
|
|
47
47
|
};
|
|
48
48
|
/**
|
|
49
49
|
* CrossVersionObjectReference contains enough information to let you identify the referred resource.
|
|
@@ -163,19 +163,19 @@ export type HPAScalingRules = {
|
|
|
163
163
|
* This is an beta field and requires the HPAConfigurableTolerance feature
|
|
164
164
|
* gate to be enabled.
|
|
165
165
|
*/
|
|
166
|
-
'tolerance'?:
|
|
166
|
+
'tolerance'?: m1.Quantity;
|
|
167
167
|
};
|
|
168
168
|
/**
|
|
169
169
|
* HorizontalPodAutoscaler is the configuration for a horizontal pod
|
|
170
170
|
* autoscaler, which automatically manages the replica count of any resource
|
|
171
171
|
* implementing the scale subresource based on the metrics specified.
|
|
172
172
|
*/
|
|
173
|
-
export type HorizontalPodAutoscaler =
|
|
173
|
+
export type HorizontalPodAutoscaler = m0.TypeMeta<'autoscaling/v2', 'HorizontalPodAutoscaler'> & {
|
|
174
174
|
/**
|
|
175
175
|
* metadata is the standard object metadata.
|
|
176
176
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
177
177
|
*/
|
|
178
|
-
'metadata'?:
|
|
178
|
+
'metadata'?: m0.ObjectMeta;
|
|
179
179
|
/**
|
|
180
180
|
* spec is the specification for the behaviour of the autoscaler.
|
|
181
181
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
|
|
@@ -216,7 +216,7 @@ export type HorizontalPodAutoscalerCondition = {
|
|
|
216
216
|
* lastTransitionTime is the last time the condition transitioned from
|
|
217
217
|
* one status to another
|
|
218
218
|
*/
|
|
219
|
-
'lastTransitionTime'?:
|
|
219
|
+
'lastTransitionTime'?: m0.Time;
|
|
220
220
|
/**
|
|
221
221
|
* message is a human-readable explanation containing details about
|
|
222
222
|
* the transition
|
|
@@ -229,7 +229,7 @@ export type HorizontalPodAutoscalerCondition = {
|
|
|
229
229
|
/**
|
|
230
230
|
* status is the status of the condition (True, False, Unknown)
|
|
231
231
|
*/
|
|
232
|
-
'status':
|
|
232
|
+
'status': m2.ConditionStatus;
|
|
233
233
|
/**
|
|
234
234
|
* type describes the current condition
|
|
235
235
|
*/
|
|
@@ -243,7 +243,7 @@ export type HorizontalPodAutoscalerConditionType = 'AbleToScale' | 'ScaledToZero
|
|
|
243
243
|
/**
|
|
244
244
|
* HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects.
|
|
245
245
|
*/
|
|
246
|
-
export type HorizontalPodAutoscalerList =
|
|
246
|
+
export type HorizontalPodAutoscalerList = m0.TypeMeta<'autoscaling/v2', 'HorizontalPodAutoscalerList'> & {
|
|
247
247
|
/**
|
|
248
248
|
* items is the list of horizontal pod autoscaler objects.
|
|
249
249
|
*/
|
|
@@ -251,7 +251,7 @@ export type HorizontalPodAutoscalerList = m1.TypeMeta<'autoscaling/v2', 'Horizon
|
|
|
251
251
|
/**
|
|
252
252
|
* metadata is the standard list metadata.
|
|
253
253
|
*/
|
|
254
|
-
'metadata'?:
|
|
254
|
+
'metadata'?: m0.ListMeta;
|
|
255
255
|
};
|
|
256
256
|
/**
|
|
257
257
|
* HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.
|
|
@@ -320,7 +320,7 @@ export type HorizontalPodAutoscalerStatus = {
|
|
|
320
320
|
* lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods,
|
|
321
321
|
* used by the autoscaler to control how often the number of pods is changed.
|
|
322
322
|
*/
|
|
323
|
-
'lastScaleTime'?:
|
|
323
|
+
'lastScaleTime'?: m0.Time;
|
|
324
324
|
/**
|
|
325
325
|
* observedGeneration is the most recent generation observed by this autoscaler.
|
|
326
326
|
*/
|
|
@@ -339,7 +339,7 @@ export type MetricIdentifier = {
|
|
|
339
339
|
* When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping.
|
|
340
340
|
* When unset, just the metricName will be used to gather metrics.
|
|
341
341
|
*/
|
|
342
|
-
'selector'?:
|
|
342
|
+
'selector'?: m0.LabelSelector;
|
|
343
343
|
};
|
|
344
344
|
/**
|
|
345
345
|
* MetricSourceType indicates the type of metric.
|
|
@@ -451,7 +451,7 @@ export type MetricTarget = {
|
|
|
451
451
|
* averageValue is the target value of the average of the
|
|
452
452
|
* metric across all relevant pods (as a quantity)
|
|
453
453
|
*/
|
|
454
|
-
'averageValue'?:
|
|
454
|
+
'averageValue'?: m1.Quantity;
|
|
455
455
|
/**
|
|
456
456
|
* type represents whether the metric type is Utilization, Value, or AverageValue
|
|
457
457
|
*/
|
|
@@ -459,7 +459,7 @@ export type MetricTarget = {
|
|
|
459
459
|
/**
|
|
460
460
|
* value is the target value of the metric (as a quantity).
|
|
461
461
|
*/
|
|
462
|
-
'value'?:
|
|
462
|
+
'value'?: m1.Quantity;
|
|
463
463
|
};
|
|
464
464
|
/**
|
|
465
465
|
* MetricTargetType specifies the type of metric being targeted, and should be either
|
|
@@ -480,11 +480,11 @@ export type MetricValueStatus = {
|
|
|
480
480
|
* averageValue is the current value of the average of the
|
|
481
481
|
* metric across all relevant pods (as a quantity)
|
|
482
482
|
*/
|
|
483
|
-
'averageValue'?:
|
|
483
|
+
'averageValue'?: m1.Quantity;
|
|
484
484
|
/**
|
|
485
485
|
* value is the current value of the metric (as a quantity).
|
|
486
486
|
*/
|
|
487
|
-
'value'?:
|
|
487
|
+
'value'?: m1.Quantity;
|
|
488
488
|
};
|
|
489
489
|
/**
|
|
490
490
|
* ObjectMetricSource indicates how to scale on a metric describing a
|
|
@@ -565,7 +565,7 @@ export type ResourceMetricSource = {
|
|
|
565
565
|
/**
|
|
566
566
|
* name is the name of the resource in question.
|
|
567
567
|
*/
|
|
568
|
-
'name':
|
|
568
|
+
'name': m2.ResourceName;
|
|
569
569
|
/**
|
|
570
570
|
* target specifies the target value for the given metric
|
|
571
571
|
*/
|
|
@@ -586,7 +586,7 @@ export type ResourceMetricStatus = {
|
|
|
586
586
|
/**
|
|
587
587
|
* name is the name of the resource in question.
|
|
588
588
|
*/
|
|
589
|
-
'name':
|
|
589
|
+
'name': m2.ResourceName;
|
|
590
590
|
};
|
|
591
591
|
/**
|
|
592
592
|
* ScalingPolicySelect is used to specify which policy should be used while scaling in a certain direction
|