kubernetypes 1.36.3 → 1.37.0
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/apps/v1.d.ts +58 -58
- package/dist/api/authentication/v1.d.ts +26 -11
- package/dist/api/autoscaling/v1.d.ts +30 -24
- package/dist/api/autoscaling/v2.d.ts +24 -22
- package/dist/api/batch/v1.d.ts +59 -12
- package/dist/api/certificates/v1.d.ts +274 -2
- package/dist/api/certificates/v1alpha1.d.ts +1 -1
- package/dist/api/certificates/v1beta1.d.ts +22 -22
- package/dist/api/coordination/v1.d.ts +3 -2
- package/dist/api/coordination/v1alpha2.d.ts +7 -6
- package/dist/api/coordination/v1beta1.d.ts +10 -8
- package/dist/api/core/v1.d.ts +427 -151
- package/dist/api/discovery/v1beta1.d.ts +8 -8
- package/dist/api/events/v1.d.ts +2 -2
- package/dist/api/events/v1beta1.d.ts +2 -2
- package/dist/api/flowcontrol/v1.d.ts +7 -9
- package/dist/api/flowcontrol/v1beta1.d.ts +7 -9
- package/dist/api/flowcontrol/v1beta2.d.ts +7 -9
- package/dist/api/flowcontrol/v1beta3.d.ts +7 -9
- package/dist/api/imagepolicy/v1alpha1.d.ts +10 -10
- package/dist/api/networking/v1.d.ts +43 -40
- package/dist/api/networking/v1beta1.d.ts +13 -10
- package/dist/api/node/v1.d.ts +1 -0
- package/dist/api/node/v1alpha1.d.ts +9 -8
- package/dist/api/node/v1beta1.d.ts +9 -8
- package/dist/api/policy/v1.d.ts +9 -9
- package/dist/api/policy/v1beta1.d.ts +23 -23
- package/dist/api/resource/v1.d.ts +407 -77
- package/dist/api/resource/v1alpha3.d.ts +112 -1
- package/dist/api/resource/v1beta1.d.ts +288 -67
- package/dist/api/resource/v1beta2.d.ts +263 -42
- package/dist/api/scheduling/v1.d.ts +1 -1
- package/dist/api/scheduling/v1alpha3.d.ts +1068 -0
- package/dist/api/scheduling/v1beta1.d.ts +598 -1
- package/dist/api/storage/v1.d.ts +80 -16
- package/dist/api/storage/v1alpha1.d.ts +9 -9
- package/dist/api/storage/v1beta1.d.ts +80 -15
- package/dist/apimachinery/apis/meta/v1.d.ts +9 -6
- package/dist/apimachinery/runtime.d.ts +3 -3
- package/package.json +4 -4
|
@@ -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
|
*/
|
package/dist/api/apps/v1.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as m2 from 'kubernetypes/api/core/v1';
|
|
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/util/intstr';
|
|
5
5
|
/**
|
|
6
6
|
* ControllerRevision implements an immutable snapshot of state data. Clients
|
|
7
7
|
* are responsible for serializing and deserializing the objects that contain
|
|
@@ -13,25 +13,25 @@ import * as m2 from 'kubernetypes/apimachinery/util/intstr';
|
|
|
13
13
|
* it may be subject to name and representation changes in future releases, and clients should not
|
|
14
14
|
* depend on its stability. It is primarily for internal use by controllers.
|
|
15
15
|
*/
|
|
16
|
-
export type ControllerRevision =
|
|
16
|
+
export type ControllerRevision = m1.TypeMeta<'apps/v1', 'ControllerRevision'> & {
|
|
17
17
|
/**
|
|
18
18
|
* Data is the serialized representation of the state.
|
|
19
19
|
*/
|
|
20
|
-
'data'
|
|
20
|
+
'data': m3.RawExtension;
|
|
21
21
|
/**
|
|
22
22
|
* Standard object's metadata.
|
|
23
23
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
24
24
|
*/
|
|
25
|
-
'metadata'?:
|
|
25
|
+
'metadata'?: m1.ObjectMeta;
|
|
26
26
|
/**
|
|
27
27
|
* Revision indicates the revision of the state represented by Data.
|
|
28
28
|
*/
|
|
29
|
-
'revision'
|
|
29
|
+
'revision'?: number;
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
32
|
* ControllerRevisionList is a resource containing a list of ControllerRevision objects.
|
|
33
33
|
*/
|
|
34
|
-
export type ControllerRevisionList =
|
|
34
|
+
export type ControllerRevisionList = m1.TypeMeta<'apps/v1', 'ControllerRevisionList'> & {
|
|
35
35
|
/**
|
|
36
36
|
* Items is the list of ControllerRevisions
|
|
37
37
|
*/
|
|
@@ -39,22 +39,22 @@ export type ControllerRevisionList = m0.TypeMeta<'apps/v1', 'ControllerRevisionL
|
|
|
39
39
|
/**
|
|
40
40
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
41
41
|
*/
|
|
42
|
-
'metadata'?:
|
|
42
|
+
'metadata'?: m1.ListMeta;
|
|
43
43
|
};
|
|
44
44
|
/**
|
|
45
45
|
* DaemonSet represents the configuration of a daemon set.
|
|
46
46
|
*/
|
|
47
|
-
export type DaemonSet =
|
|
47
|
+
export type DaemonSet = m1.TypeMeta<'apps/v1', 'DaemonSet'> & {
|
|
48
48
|
/**
|
|
49
49
|
* Standard object's metadata.
|
|
50
50
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
51
51
|
*/
|
|
52
|
-
'metadata'?:
|
|
52
|
+
'metadata'?: m1.ObjectMeta;
|
|
53
53
|
/**
|
|
54
54
|
* The desired behavior of this daemon set.
|
|
55
55
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
|
56
56
|
*/
|
|
57
|
-
'spec'
|
|
57
|
+
'spec': DaemonSetSpec;
|
|
58
58
|
/**
|
|
59
59
|
* The current status of this daemon set. This data may be
|
|
60
60
|
* out of date by some window of time.
|
|
@@ -71,7 +71,7 @@ export type DaemonSetCondition = {
|
|
|
71
71
|
/**
|
|
72
72
|
* Last time the condition transitioned from one status to another.
|
|
73
73
|
*/
|
|
74
|
-
'lastTransitionTime'?:
|
|
74
|
+
'lastTransitionTime'?: m1.Time;
|
|
75
75
|
/**
|
|
76
76
|
* A human readable message indicating details about the transition.
|
|
77
77
|
*/
|
|
@@ -83,17 +83,17 @@ export type DaemonSetCondition = {
|
|
|
83
83
|
/**
|
|
84
84
|
* Status of the condition, one of True, False, Unknown.
|
|
85
85
|
*/
|
|
86
|
-
'status'
|
|
86
|
+
'status'?: m2.ConditionStatus;
|
|
87
87
|
/**
|
|
88
88
|
* Type of DaemonSet condition.
|
|
89
89
|
*/
|
|
90
|
-
'type'
|
|
90
|
+
'type'?: DaemonSetConditionType;
|
|
91
91
|
};
|
|
92
92
|
export type DaemonSetConditionType = string;
|
|
93
93
|
/**
|
|
94
94
|
* DaemonSetList is a collection of daemon sets.
|
|
95
95
|
*/
|
|
96
|
-
export type DaemonSetList =
|
|
96
|
+
export type DaemonSetList = m1.TypeMeta<'apps/v1', 'DaemonSetList'> & {
|
|
97
97
|
/**
|
|
98
98
|
* A list of daemon sets.
|
|
99
99
|
*/
|
|
@@ -102,7 +102,7 @@ export type DaemonSetList = m0.TypeMeta<'apps/v1', 'DaemonSetList'> & {
|
|
|
102
102
|
* Standard list metadata.
|
|
103
103
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
104
104
|
*/
|
|
105
|
-
'metadata'?:
|
|
105
|
+
'metadata'?: m1.ListMeta;
|
|
106
106
|
};
|
|
107
107
|
/**
|
|
108
108
|
* DaemonSetSpec is the specification of a daemon set.
|
|
@@ -127,7 +127,7 @@ export type DaemonSetSpec = {
|
|
|
127
127
|
* It must match the pod template's labels.
|
|
128
128
|
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
|
|
129
129
|
*/
|
|
130
|
-
'selector':
|
|
130
|
+
'selector': m1.LabelSelector;
|
|
131
131
|
/**
|
|
132
132
|
* An object that describes the pod that will be created.
|
|
133
133
|
* The DaemonSet will create exactly one copy of this pod on every node
|
|
@@ -136,7 +136,7 @@ export type DaemonSetSpec = {
|
|
|
136
136
|
* The only allowed template.spec.restartPolicy value is "Always".
|
|
137
137
|
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
|
|
138
138
|
*/
|
|
139
|
-
'template':
|
|
139
|
+
'template': m2.PodTemplateSpec;
|
|
140
140
|
/**
|
|
141
141
|
* An update strategy to replace existing DaemonSet pods with new pods.
|
|
142
142
|
*/
|
|
@@ -221,16 +221,16 @@ export type DaemonSetUpdateStrategyType = 'OnDelete' | 'RollingUpdate';
|
|
|
221
221
|
/**
|
|
222
222
|
* Deployment enables declarative updates for Pods and ReplicaSets.
|
|
223
223
|
*/
|
|
224
|
-
export type Deployment =
|
|
224
|
+
export type Deployment = m1.TypeMeta<'apps/v1', 'Deployment'> & {
|
|
225
225
|
/**
|
|
226
226
|
* Standard object's metadata.
|
|
227
227
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
228
228
|
*/
|
|
229
|
-
'metadata'?:
|
|
229
|
+
'metadata'?: m1.ObjectMeta;
|
|
230
230
|
/**
|
|
231
231
|
* Specification of the desired behavior of the Deployment.
|
|
232
232
|
*/
|
|
233
|
-
'spec'
|
|
233
|
+
'spec': DeploymentSpec;
|
|
234
234
|
/**
|
|
235
235
|
* Most recently observed status of the Deployment.
|
|
236
236
|
*/
|
|
@@ -243,11 +243,11 @@ export type DeploymentCondition = {
|
|
|
243
243
|
/**
|
|
244
244
|
* Last time the condition transitioned from one status to another.
|
|
245
245
|
*/
|
|
246
|
-
'lastTransitionTime'?:
|
|
246
|
+
'lastTransitionTime'?: m1.Time;
|
|
247
247
|
/**
|
|
248
248
|
* The last time this condition was updated.
|
|
249
249
|
*/
|
|
250
|
-
'lastUpdateTime'?:
|
|
250
|
+
'lastUpdateTime'?: m1.Time;
|
|
251
251
|
/**
|
|
252
252
|
* A human readable message indicating details about the transition.
|
|
253
253
|
*/
|
|
@@ -259,17 +259,17 @@ export type DeploymentCondition = {
|
|
|
259
259
|
/**
|
|
260
260
|
* Status of the condition, one of True, False, Unknown.
|
|
261
261
|
*/
|
|
262
|
-
'status'
|
|
262
|
+
'status'?: m2.ConditionStatus;
|
|
263
263
|
/**
|
|
264
264
|
* Type of deployment condition.
|
|
265
265
|
*/
|
|
266
|
-
'type'
|
|
266
|
+
'type'?: DeploymentConditionType;
|
|
267
267
|
};
|
|
268
268
|
export type DeploymentConditionType = 'Available' | 'Progressing' | 'ReplicaFailure' | (string & {});
|
|
269
269
|
/**
|
|
270
270
|
* DeploymentList is a list of Deployments.
|
|
271
271
|
*/
|
|
272
|
-
export type DeploymentList =
|
|
272
|
+
export type DeploymentList = m1.TypeMeta<'apps/v1', 'DeploymentList'> & {
|
|
273
273
|
/**
|
|
274
274
|
* Items is the list of Deployments.
|
|
275
275
|
*/
|
|
@@ -277,7 +277,7 @@ export type DeploymentList = m0.TypeMeta<'apps/v1', 'DeploymentList'> & {
|
|
|
277
277
|
/**
|
|
278
278
|
* Standard list metadata.
|
|
279
279
|
*/
|
|
280
|
-
'metadata'?:
|
|
280
|
+
'metadata'?: m1.ListMeta;
|
|
281
281
|
};
|
|
282
282
|
/**
|
|
283
283
|
* DeploymentSpec is the specification of the desired behavior of the Deployment.
|
|
@@ -317,7 +317,7 @@ export type DeploymentSpec = {
|
|
|
317
317
|
* selected by this will be the ones affected by this deployment.
|
|
318
318
|
* It must match the pod template's labels.
|
|
319
319
|
*/
|
|
320
|
-
'selector':
|
|
320
|
+
'selector': m1.LabelSelector;
|
|
321
321
|
/**
|
|
322
322
|
* The deployment strategy to use to replace existing pods with new ones.
|
|
323
323
|
*/
|
|
@@ -326,7 +326,7 @@ export type DeploymentSpec = {
|
|
|
326
326
|
* Template describes the pods that will be created.
|
|
327
327
|
* The only allowed template.spec.restartPolicy value is "Always".
|
|
328
328
|
*/
|
|
329
|
-
'template':
|
|
329
|
+
'template': m2.PodTemplateSpec;
|
|
330
330
|
};
|
|
331
331
|
/**
|
|
332
332
|
* DeploymentStatus is the most recently observed status of the Deployment.
|
|
@@ -407,19 +407,19 @@ export type PodManagementPolicyType = 'OrderedReady' | 'Parallel';
|
|
|
407
407
|
/**
|
|
408
408
|
* ReplicaSet ensures that a specified number of pod replicas are running at any given time.
|
|
409
409
|
*/
|
|
410
|
-
export type ReplicaSet =
|
|
410
|
+
export type ReplicaSet = m1.TypeMeta<'apps/v1', 'ReplicaSet'> & {
|
|
411
411
|
/**
|
|
412
412
|
* If the Labels of a ReplicaSet are empty, they are defaulted to
|
|
413
413
|
* be the same as the Pod(s) that the ReplicaSet manages.
|
|
414
414
|
* Standard object's metadata.
|
|
415
415
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
416
416
|
*/
|
|
417
|
-
'metadata'?:
|
|
417
|
+
'metadata'?: m1.ObjectMeta;
|
|
418
418
|
/**
|
|
419
419
|
* Spec defines the specification of the desired behavior of the ReplicaSet.
|
|
420
420
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
|
421
421
|
*/
|
|
422
|
-
'spec'
|
|
422
|
+
'spec': ReplicaSetSpec;
|
|
423
423
|
/**
|
|
424
424
|
* Status is the most recently observed status of the ReplicaSet.
|
|
425
425
|
* This data may be out of date by some window of time.
|
|
@@ -436,7 +436,7 @@ export type ReplicaSetCondition = {
|
|
|
436
436
|
/**
|
|
437
437
|
* The last time the condition transitioned from one status to another.
|
|
438
438
|
*/
|
|
439
|
-
'lastTransitionTime'?:
|
|
439
|
+
'lastTransitionTime'?: m1.Time;
|
|
440
440
|
/**
|
|
441
441
|
* A human readable message indicating details about the transition.
|
|
442
442
|
*/
|
|
@@ -448,17 +448,17 @@ export type ReplicaSetCondition = {
|
|
|
448
448
|
/**
|
|
449
449
|
* Status of the condition, one of True, False, Unknown.
|
|
450
450
|
*/
|
|
451
|
-
'status'
|
|
451
|
+
'status'?: m2.ConditionStatus;
|
|
452
452
|
/**
|
|
453
453
|
* Type of replica set condition.
|
|
454
454
|
*/
|
|
455
|
-
'type'
|
|
455
|
+
'type'?: ReplicaSetConditionType;
|
|
456
456
|
};
|
|
457
457
|
export type ReplicaSetConditionType = 'ReplicaFailure' | (string & {});
|
|
458
458
|
/**
|
|
459
459
|
* ReplicaSetList is a collection of ReplicaSets.
|
|
460
460
|
*/
|
|
461
|
-
export type ReplicaSetList =
|
|
461
|
+
export type ReplicaSetList = m1.TypeMeta<'apps/v1', 'ReplicaSetList'> & {
|
|
462
462
|
/**
|
|
463
463
|
* List of ReplicaSets.
|
|
464
464
|
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset
|
|
@@ -468,7 +468,7 @@ export type ReplicaSetList = m0.TypeMeta<'apps/v1', 'ReplicaSetList'> & {
|
|
|
468
468
|
* Standard list metadata.
|
|
469
469
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
470
470
|
*/
|
|
471
|
-
'metadata'?:
|
|
471
|
+
'metadata'?: m1.ListMeta;
|
|
472
472
|
};
|
|
473
473
|
/**
|
|
474
474
|
* ReplicaSetSpec is the specification of a ReplicaSet.
|
|
@@ -493,13 +493,13 @@ export type ReplicaSetSpec = {
|
|
|
493
493
|
* It must match the pod template's labels.
|
|
494
494
|
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
|
|
495
495
|
*/
|
|
496
|
-
'selector':
|
|
496
|
+
'selector': m1.LabelSelector;
|
|
497
497
|
/**
|
|
498
498
|
* Template is the object that describes the pod that will be created if
|
|
499
499
|
* insufficient replicas are detected.
|
|
500
500
|
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/#pod-template
|
|
501
501
|
*/
|
|
502
|
-
'template'?:
|
|
502
|
+
'template'?: m2.PodTemplateSpec;
|
|
503
503
|
};
|
|
504
504
|
/**
|
|
505
505
|
* ReplicaSetStatus represents the current status of a ReplicaSet.
|
|
@@ -562,7 +562,7 @@ export type RollingUpdateDaemonSet = {
|
|
|
562
562
|
* so resource intensive daemonsets should take into account that they may
|
|
563
563
|
* cause evictions during disruption.
|
|
564
564
|
*/
|
|
565
|
-
'maxSurge'?:
|
|
565
|
+
'maxSurge'?: m0.IntOrString;
|
|
566
566
|
/**
|
|
567
567
|
* The maximum number of DaemonSet pods that can be unavailable during the
|
|
568
568
|
* update. Value can be an absolute number (ex: 5) or a percentage of total
|
|
@@ -579,7 +579,7 @@ export type RollingUpdateDaemonSet = {
|
|
|
579
579
|
* 70% of original number of DaemonSet pods are available at all times during
|
|
580
580
|
* the update.
|
|
581
581
|
*/
|
|
582
|
-
'maxUnavailable'?:
|
|
582
|
+
'maxUnavailable'?: m0.IntOrString;
|
|
583
583
|
};
|
|
584
584
|
/**
|
|
585
585
|
* Spec to control the desired behavior of rolling update.
|
|
@@ -598,7 +598,7 @@ export type RollingUpdateDeployment = {
|
|
|
598
598
|
* new ReplicaSet can be scaled up further, ensuring that total number of pods running
|
|
599
599
|
* at any time during the update is at most 130% of desired pods.
|
|
600
600
|
*/
|
|
601
|
-
'maxSurge'?:
|
|
601
|
+
'maxSurge'?: m0.IntOrString;
|
|
602
602
|
/**
|
|
603
603
|
* The maximum number of pods that can be unavailable during the update.
|
|
604
604
|
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
|
|
@@ -611,7 +611,7 @@ export type RollingUpdateDeployment = {
|
|
|
611
611
|
* that the total number of pods available at all times during the update is at
|
|
612
612
|
* least 70% of desired pods.
|
|
613
613
|
*/
|
|
614
|
-
'maxUnavailable'?:
|
|
614
|
+
'maxUnavailable'?: m0.IntOrString;
|
|
615
615
|
};
|
|
616
616
|
/**
|
|
617
617
|
* RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.
|
|
@@ -626,7 +626,7 @@ export type RollingUpdateStatefulSetStrategy = {
|
|
|
626
626
|
* will be counted towards MaxUnavailable.
|
|
627
627
|
* This setting might not be effective for the OrderedReady podManagementPolicy. That policy ensures pods are created and become ready one at a time.
|
|
628
628
|
*/
|
|
629
|
-
'maxUnavailable'?:
|
|
629
|
+
'maxUnavailable'?: m0.IntOrString;
|
|
630
630
|
/**
|
|
631
631
|
* Partition indicates the ordinal at which the StatefulSet should be partitioned
|
|
632
632
|
* for updates. During a rolling update, all pods from ordinal Replicas-1 to
|
|
@@ -644,16 +644,16 @@ export type RollingUpdateStatefulSetStrategy = {
|
|
|
644
644
|
* The StatefulSet guarantees that a given network identity will always
|
|
645
645
|
* map to the same storage identity.
|
|
646
646
|
*/
|
|
647
|
-
export type StatefulSet =
|
|
647
|
+
export type StatefulSet = m1.TypeMeta<'apps/v1', 'StatefulSet'> & {
|
|
648
648
|
/**
|
|
649
649
|
* Standard object's metadata.
|
|
650
650
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
651
651
|
*/
|
|
652
|
-
'metadata'?:
|
|
652
|
+
'metadata'?: m1.ObjectMeta;
|
|
653
653
|
/**
|
|
654
654
|
* Spec defines the desired identities of pods in this set.
|
|
655
655
|
*/
|
|
656
|
-
'spec'
|
|
656
|
+
'spec': StatefulSetSpec;
|
|
657
657
|
/**
|
|
658
658
|
* Status is the current status of Pods in this StatefulSet. This data
|
|
659
659
|
* may be out of date by some window of time.
|
|
@@ -667,7 +667,7 @@ export type StatefulSetCondition = {
|
|
|
667
667
|
/**
|
|
668
668
|
* Last time the condition transitioned from one status to another.
|
|
669
669
|
*/
|
|
670
|
-
'lastTransitionTime'?:
|
|
670
|
+
'lastTransitionTime'?: m1.Time;
|
|
671
671
|
/**
|
|
672
672
|
* A human readable message indicating details about the transition.
|
|
673
673
|
*/
|
|
@@ -679,17 +679,17 @@ export type StatefulSetCondition = {
|
|
|
679
679
|
/**
|
|
680
680
|
* Status of the condition, one of True, False, Unknown.
|
|
681
681
|
*/
|
|
682
|
-
'status'
|
|
682
|
+
'status'?: m2.ConditionStatus;
|
|
683
683
|
/**
|
|
684
684
|
* Type of statefulset condition.
|
|
685
685
|
*/
|
|
686
|
-
'type'
|
|
686
|
+
'type'?: StatefulSetConditionType;
|
|
687
687
|
};
|
|
688
|
-
export type StatefulSetConditionType = string;
|
|
688
|
+
export type StatefulSetConditionType = 'Progressing' | (string & {});
|
|
689
689
|
/**
|
|
690
690
|
* StatefulSetList is a collection of StatefulSets.
|
|
691
691
|
*/
|
|
692
|
-
export type StatefulSetList =
|
|
692
|
+
export type StatefulSetList = m1.TypeMeta<'apps/v1', 'StatefulSetList'> & {
|
|
693
693
|
/**
|
|
694
694
|
* Items is the list of stateful sets.
|
|
695
695
|
*/
|
|
@@ -698,7 +698,7 @@ export type StatefulSetList = m0.TypeMeta<'apps/v1', 'StatefulSetList'> & {
|
|
|
698
698
|
* Standard list's metadata.
|
|
699
699
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
700
700
|
*/
|
|
701
|
-
'metadata'?:
|
|
701
|
+
'metadata'?: m1.ListMeta;
|
|
702
702
|
};
|
|
703
703
|
/**
|
|
704
704
|
* StatefulSetOrdinals describes the policy used for replica ordinal assignment
|
|
@@ -794,7 +794,7 @@ export type StatefulSetSpec = {
|
|
|
794
794
|
* It must match the pod template's labels.
|
|
795
795
|
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
|
|
796
796
|
*/
|
|
797
|
-
'selector':
|
|
797
|
+
'selector': m1.LabelSelector;
|
|
798
798
|
/**
|
|
799
799
|
* serviceName is the name of the service that governs this StatefulSet.
|
|
800
800
|
* This service must exist before the StatefulSet, and is responsible for
|
|
@@ -812,7 +812,7 @@ export type StatefulSetSpec = {
|
|
|
812
812
|
* "web" with index number "3" would be named "web-3".
|
|
813
813
|
* The only allowed template.spec.restartPolicy value is "Always".
|
|
814
814
|
*/
|
|
815
|
-
'template':
|
|
815
|
+
'template': m2.PodTemplateSpec;
|
|
816
816
|
/**
|
|
817
817
|
* updateStrategy indicates the StatefulSetUpdateStrategy that will be
|
|
818
818
|
* employed to update Pods in the StatefulSet when a revision is made to
|
|
@@ -828,7 +828,7 @@ export type StatefulSetSpec = {
|
|
|
828
828
|
* any volumes in the template, with the same name.
|
|
829
829
|
* TODO: Define the behavior if a claim already exists with the same name.
|
|
830
830
|
*/
|
|
831
|
-
'volumeClaimTemplates'?:
|
|
831
|
+
'volumeClaimTemplates'?: m2.PersistentVolumeClaim[];
|
|
832
832
|
};
|
|
833
833
|
/**
|
|
834
834
|
* StatefulSetStatus represents the current state of a StatefulSet.
|
|
@@ -902,4 +902,4 @@ export type StatefulSetUpdateStrategy = {
|
|
|
902
902
|
* StatefulSetUpdateStrategyType is a string enumeration type that enumerates
|
|
903
903
|
* all possible update strategies for the StatefulSet controller.
|
|
904
904
|
*/
|
|
905
|
-
export type StatefulSetUpdateStrategyType = 'OnDelete' | 'RollingUpdate';
|
|
905
|
+
export type StatefulSetUpdateStrategyType = 'OnDelete' | 'Recreate' | 'RollingUpdate';
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as m0 from 'kubernetypes/apimachinery/apis/meta/v1';
|
|
2
|
+
import * as m1 from 'kubernetypes/apimachinery/types';
|
|
3
|
+
/**
|
|
4
|
+
* AttestationValue masks the value so protobuf can generate
|
|
5
|
+
*/
|
|
6
|
+
export type AttestationValue = string[];
|
|
3
7
|
/**
|
|
4
8
|
* BoundObjectReference is a reference to an object that a token is bound to.
|
|
5
9
|
*/
|
|
@@ -9,7 +13,8 @@ export type BoundObjectReference = {
|
|
|
9
13
|
*/
|
|
10
14
|
'apiVersion'?: string;
|
|
11
15
|
/**
|
|
12
|
-
* kind of the referent. Valid kinds are 'Pod'
|
|
16
|
+
* kind of the referent. Valid kinds are 'Pod', 'Secret', 'Node',
|
|
17
|
+
* 'ValidatingWebhookConfiguration', and 'MutatingWebhookConfiguration'.
|
|
13
18
|
*/
|
|
14
19
|
'kind'?: string;
|
|
15
20
|
/**
|
|
@@ -19,7 +24,7 @@ export type BoundObjectReference = {
|
|
|
19
24
|
/**
|
|
20
25
|
* uid of the referent.
|
|
21
26
|
*/
|
|
22
|
-
'uid'?:
|
|
27
|
+
'uid'?: m1.UID;
|
|
23
28
|
};
|
|
24
29
|
/**
|
|
25
30
|
* ExtraValue masks the value so protobuf can generate
|
|
@@ -30,12 +35,12 @@ export type ExtraValue = string[];
|
|
|
30
35
|
* When using impersonation, users will receive the user info of the user being impersonated. If impersonation or
|
|
31
36
|
* request header authentication is used, any extra keys will have their case ignored and returned as lowercase.
|
|
32
37
|
*/
|
|
33
|
-
export type SelfSubjectReview =
|
|
38
|
+
export type SelfSubjectReview = m0.TypeMeta<'authentication.k8s.io/v1', 'SelfSubjectReview'> & {
|
|
34
39
|
/**
|
|
35
40
|
* metadata is standard object's metadata.
|
|
36
41
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
37
42
|
*/
|
|
38
|
-
'metadata'?:
|
|
43
|
+
'metadata'?: m0.ObjectMeta;
|
|
39
44
|
/**
|
|
40
45
|
* status is filled in by the server with the user attributes.
|
|
41
46
|
*/
|
|
@@ -53,12 +58,12 @@ export type SelfSubjectReviewStatus = {
|
|
|
53
58
|
/**
|
|
54
59
|
* TokenRequest requests a token for a given service account.
|
|
55
60
|
*/
|
|
56
|
-
export type TokenRequest =
|
|
61
|
+
export type TokenRequest = m0.TypeMeta<'authentication.k8s.io/v1', 'TokenRequest'> & {
|
|
57
62
|
/**
|
|
58
63
|
* metadata is the standard object's metadata.
|
|
59
64
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
60
65
|
*/
|
|
61
|
-
'metadata'?:
|
|
66
|
+
'metadata'?: m0.ObjectMeta;
|
|
62
67
|
/**
|
|
63
68
|
* spec holds information about the request being evaluated
|
|
64
69
|
*/
|
|
@@ -72,6 +77,16 @@ export type TokenRequest = m1.TypeMeta<'authentication.k8s.io/v1', 'TokenRequest
|
|
|
72
77
|
* TokenRequestSpec contains client provided parameters of a token request.
|
|
73
78
|
*/
|
|
74
79
|
export type TokenRequestSpec = {
|
|
80
|
+
/**
|
|
81
|
+
* attestations is a map of well-known keys to string-slice values.
|
|
82
|
+
* The values for each key have a specific semantic meaning, which is
|
|
83
|
+
* documented on the key definition. Requesters of tokens may ask
|
|
84
|
+
* the Kubernetes API Server to attest to certain claims. The API Server
|
|
85
|
+
* may perform authorization checks depending on the key of this map.
|
|
86
|
+
*/
|
|
87
|
+
'attestations'?: {
|
|
88
|
+
[key: string]: AttestationValue;
|
|
89
|
+
};
|
|
75
90
|
/**
|
|
76
91
|
* audiences are the intendend audiences of the token. A recipient of a
|
|
77
92
|
* token must identify themself with an identifier in the list of
|
|
@@ -103,7 +118,7 @@ export type TokenRequestStatus = {
|
|
|
103
118
|
/**
|
|
104
119
|
* expirationTimestamp is the time of expiration of the returned token.
|
|
105
120
|
*/
|
|
106
|
-
'expirationTimestamp'?:
|
|
121
|
+
'expirationTimestamp'?: m0.Time;
|
|
107
122
|
/**
|
|
108
123
|
* token is the opaque bearer token.
|
|
109
124
|
*/
|
|
@@ -114,12 +129,12 @@ export type TokenRequestStatus = {
|
|
|
114
129
|
* Note: TokenReview requests may be cached by the webhook token authenticator
|
|
115
130
|
* plugin in the kube-apiserver.
|
|
116
131
|
*/
|
|
117
|
-
export type TokenReview =
|
|
132
|
+
export type TokenReview = m0.TypeMeta<'authentication.k8s.io/v1', 'TokenReview'> & {
|
|
118
133
|
/**
|
|
119
134
|
* metadata is the standard object's metadata.
|
|
120
135
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
121
136
|
*/
|
|
122
|
-
'metadata'?:
|
|
137
|
+
'metadata'?: m0.ObjectMeta;
|
|
123
138
|
/**
|
|
124
139
|
* spec holds information about the request being evaluated
|
|
125
140
|
*/
|