kubernetypes 1.35.2 → 1.35.3
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/apps/v1.d.ts +40 -40
- package/dist/api/authorization/v1beta1.d.ts +12 -12
- package/dist/api/autoscaling/v1.d.ts +21 -21
- package/dist/api/autoscaling/v2.d.ts +14 -14
- package/dist/api/batch/v1.d.ts +26 -26
- package/dist/api/certificates/v1.d.ts +9 -9
- package/dist/api/certificates/v1beta1.d.ts +21 -21
- package/dist/api/core/v1.d.ts +8 -8
- package/dist/api/discovery/v1beta1.d.ts +8 -8
- package/dist/api/extensions/v1beta1.d.ts +44 -44
- package/dist/api/networking/v1.d.ts +31 -31
- package/dist/api/networking/v1beta1.d.ts +5 -5
- package/dist/api/node/v1.d.ts +8 -8
- package/dist/api/node/v1alpha1.d.ts +8 -8
- package/dist/api/policy/v1.d.ts +14 -14
- package/dist/api/resource/v1.d.ts +41 -41
- package/dist/api/resource/v1beta2.d.ts +41 -41
- package/dist/api/storage/v1alpha1.d.ts +5 -5
- package/dist/apimachinery/apis/meta/v1.d.ts +9 -9
- package/package.json +1 -1
package/dist/api/apps/v1.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as m0 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
4
|
import * as m2 from 'kubernetypes/apimachinery/util/intstr';
|
|
5
5
|
/**
|
|
@@ -13,7 +13,7 @@ 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
|
*/
|
|
@@ -22,7 +22,7 @@ export type ControllerRevision = m0.TypeMeta<'apps/v1', 'ControllerRevision'> &
|
|
|
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
|
*/
|
|
@@ -31,7 +31,7 @@ export type ControllerRevision = m0.TypeMeta<'apps/v1', 'ControllerRevision'> &
|
|
|
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,17 +39,17 @@ 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
|
|
@@ -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,7 +83,7 @@ export type DaemonSetCondition = {
|
|
|
83
83
|
/**
|
|
84
84
|
* Status of the condition, one of True, False, Unknown.
|
|
85
85
|
*/
|
|
86
|
-
'status':
|
|
86
|
+
'status': m0.ConditionStatus;
|
|
87
87
|
/**
|
|
88
88
|
* Type of DaemonSet condition.
|
|
89
89
|
*/
|
|
@@ -93,7 +93,7 @@ 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': m0.PodTemplateSpec;
|
|
140
140
|
/**
|
|
141
141
|
* An update strategy to replace existing DaemonSet pods with new pods.
|
|
142
142
|
*/
|
|
@@ -221,12 +221,12 @@ 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
|
*/
|
|
@@ -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,7 +259,7 @@ export type DeploymentCondition = {
|
|
|
259
259
|
/**
|
|
260
260
|
* Status of the condition, one of True, False, Unknown.
|
|
261
261
|
*/
|
|
262
|
-
'status':
|
|
262
|
+
'status': m0.ConditionStatus;
|
|
263
263
|
/**
|
|
264
264
|
* Type of deployment condition.
|
|
265
265
|
*/
|
|
@@ -269,7 +269,7 @@ export type DeploymentConditionType = 'Available' | 'Progressing' | 'ReplicaFail
|
|
|
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': m0.PodTemplateSpec;
|
|
330
330
|
};
|
|
331
331
|
/**
|
|
332
332
|
* DeploymentStatus is the most recently observed status of the Deployment.
|
|
@@ -407,14 +407,14 @@ 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
|
|
@@ -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,7 +448,7 @@ export type ReplicaSetCondition = {
|
|
|
448
448
|
/**
|
|
449
449
|
* Status of the condition, one of True, False, Unknown.
|
|
450
450
|
*/
|
|
451
|
-
'status':
|
|
451
|
+
'status': m0.ConditionStatus;
|
|
452
452
|
/**
|
|
453
453
|
* Type of replica set condition.
|
|
454
454
|
*/
|
|
@@ -458,7 +458,7 @@ 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'?: m0.PodTemplateSpec;
|
|
503
503
|
};
|
|
504
504
|
/**
|
|
505
505
|
* ReplicaSetStatus represents the current status of a ReplicaSet.
|
|
@@ -644,12 +644,12 @@ 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
|
*/
|
|
@@ -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,7 +679,7 @@ export type StatefulSetCondition = {
|
|
|
679
679
|
/**
|
|
680
680
|
* Status of the condition, one of True, False, Unknown.
|
|
681
681
|
*/
|
|
682
|
-
'status':
|
|
682
|
+
'status': m0.ConditionStatus;
|
|
683
683
|
/**
|
|
684
684
|
* Type of statefulset condition.
|
|
685
685
|
*/
|
|
@@ -689,7 +689,7 @@ export type StatefulSetConditionType = 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': m0.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'?: m0.PersistentVolumeClaim[];
|
|
832
832
|
};
|
|
833
833
|
/**
|
|
834
834
|
* StatefulSetStatus represents the current state of a StatefulSet.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as m1 from 'kubernetypes/api/authorization/v1';
|
|
2
|
+
import * as m0 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 = m0.TypeMeta<'authorization.k8s.io/v1beta1', 'LocalSubjectAccessReview'> & {
|
|
13
13
|
/**
|
|
14
14
|
* 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'?: m0.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'?: m1.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'?: m1.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 = m0.TypeMeta<'authorization.k8s.io/v1beta1', 'SelfSubjectAccessReview'> & {
|
|
129
129
|
/**
|
|
130
130
|
* 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'?: m0.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 = m0.TypeMeta<'authorization.k8s.io/v1beta1', 'SelfSubjectRulesReview'> & {
|
|
166
166
|
/**
|
|
167
167
|
* 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'?: m0.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 = m0.TypeMeta<'authorization.k8s.io/v1beta1', 'SubjectAccessReview'> & {
|
|
193
193
|
/**
|
|
194
194
|
* 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'?: m0.ObjectMeta;
|
|
198
198
|
/**
|
|
199
199
|
* Spec holds information about the request being evaluated
|
|
200
200
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as m2 from 'kubernetypes/api/core/v1';
|
|
2
|
+
import * as m1 from 'kubernetypes/apimachinery/api/resource';
|
|
3
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
|
|
@@ -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
|
* targetAverageUtilization is the target value of the average of the
|
|
24
24
|
* resource metric across all relevant pods, represented as a percentage of
|
|
@@ -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'?: m1.Quantity;
|
|
34
34
|
};
|
|
35
35
|
/**
|
|
36
36
|
* ContainerResourceMetricStatus indicates the current value of a resource metric known to
|
|
@@ -58,11 +58,11 @@ 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': m1.Quantity;
|
|
62
62
|
/**
|
|
63
63
|
* name is the name of the resource in question.
|
|
64
64
|
*/
|
|
65
|
-
'name':
|
|
65
|
+
'name': m2.ResourceName;
|
|
66
66
|
};
|
|
67
67
|
/**
|
|
68
68
|
* CrossVersionObjectReference contains enough information to let you identify the referred resource.
|
|
@@ -100,12 +100,12 @@ export type ExternalMetricSource = {
|
|
|
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'?: m1.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'?: m1.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'?: m1.Quantity;
|
|
119
119
|
/**
|
|
120
120
|
* currentValue is the current value of the metric (as a quantity)
|
|
121
121
|
*/
|
|
122
|
-
'currentValue':
|
|
122
|
+
'currentValue': m1.Quantity;
|
|
123
123
|
/**
|
|
124
124
|
* metricName is the name of a metric used for autoscaling in
|
|
125
125
|
* metric system.
|
|
@@ -170,7 +170,7 @@ export type HorizontalPodAutoscalerCondition = {
|
|
|
170
170
|
/**
|
|
171
171
|
* status is the status of the condition (True, False, Unknown)
|
|
172
172
|
*/
|
|
173
|
-
'status':
|
|
173
|
+
'status': m2.ConditionStatus;
|
|
174
174
|
/**
|
|
175
175
|
* type describes the current condition
|
|
176
176
|
*/
|
|
@@ -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'?: m1.Quantity;
|
|
356
356
|
/**
|
|
357
357
|
* metricName is the name of the metric in question.
|
|
358
358
|
*/
|
|
@@ -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': m1.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'?: m1.Quantity;
|
|
385
385
|
/**
|
|
386
386
|
* currentValue is the current value of the metric (as a quantity).
|
|
387
387
|
*/
|
|
388
|
-
'currentValue':
|
|
388
|
+
'currentValue': m1.Quantity;
|
|
389
389
|
/**
|
|
390
390
|
* metricName is the name of the metric in question.
|
|
391
391
|
*/
|
|
@@ -422,7 +422,7 @@ export type PodsMetricSource = {
|
|
|
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': m1.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': m1.Quantity;
|
|
437
437
|
/**
|
|
438
438
|
* metricName is the name of the metric in question
|
|
439
439
|
*/
|
|
@@ -458,7 +458,7 @@ export type ResourceMetricSource = {
|
|
|
458
458
|
/**
|
|
459
459
|
* name is the name of the resource in question.
|
|
460
460
|
*/
|
|
461
|
-
'name':
|
|
461
|
+
'name': m2.ResourceName;
|
|
462
462
|
/**
|
|
463
463
|
* targetAverageUtilization is the target value of the average of the
|
|
464
464
|
* resource metric across all relevant pods, represented as a percentage of
|
|
@@ -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'?: m1.Quantity;
|
|
474
474
|
};
|
|
475
475
|
/**
|
|
476
476
|
* ResourceMetricStatus indicates the current value of a resource metric known to
|
|
@@ -494,11 +494,11 @@ 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': m1.Quantity;
|
|
498
498
|
/**
|
|
499
499
|
* name is the name of the resource in question.
|
|
500
500
|
*/
|
|
501
|
-
'name':
|
|
501
|
+
'name': m2.ResourceName;
|
|
502
502
|
};
|
|
503
503
|
/**
|
|
504
504
|
* Scale represents a scaling request for a resource.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as m0 from 'kubernetypes/api/core/v1';
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as m2 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 requests and limits, describing each pod in the
|
|
@@ -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'?: m2.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 = m1.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'?: m1.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'?: m1.Time;
|
|
220
220
|
/**
|
|
221
221
|
* message is a human-readable explanation containing details about
|
|
222
222
|
* the transition
|
|
@@ -243,7 +243,7 @@ export type HorizontalPodAutoscalerConditionType = 'AbleToScale' | 'ScalingActiv
|
|
|
243
243
|
/**
|
|
244
244
|
* HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects.
|
|
245
245
|
*/
|
|
246
|
-
export type HorizontalPodAutoscalerList =
|
|
246
|
+
export type HorizontalPodAutoscalerList = m1.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 = m2.TypeMeta<'autoscaling/v2', 'Horizon
|
|
|
251
251
|
/**
|
|
252
252
|
* metadata is the standard list metadata.
|
|
253
253
|
*/
|
|
254
|
-
'metadata'?:
|
|
254
|
+
'metadata'?: m1.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'?: m1.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'?: m1.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'?: m2.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'?: m2.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'?: m2.Quantity;
|
|
484
484
|
/**
|
|
485
485
|
* value is the current value of the metric (as a quantity).
|
|
486
486
|
*/
|
|
487
|
-
'value'?:
|
|
487
|
+
'value'?: m2.Quantity;
|
|
488
488
|
};
|
|
489
489
|
/**
|
|
490
490
|
* ObjectMetricSource indicates how to scale on a metric describing a
|