kubernetypes 1.35.5 → 1.35.6

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.
@@ -1,6 +1,6 @@
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';
1
+ import * as m2 from 'kubernetypes/apimachinery/apis/meta/v1';
2
+ import * as m1 from 'kubernetypes/apimachinery/runtime';
3
+ import * as m0 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': m2.RawExtension[];
16
+ 'objects': m1.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': m1.UID;
23
+ 'uid': m0.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': m2.RawExtension[];
35
+ 'convertedObjects': m1.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': m0.Status;
43
+ 'result': m2.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': m1.UID;
48
+ 'uid': m0.UID;
49
49
  };
50
50
  /**
51
51
  * ConversionReview describes a conversion request/response.
52
52
  */
53
- export type ConversionReview = m0.TypeMeta<'apiextensions.k8s.io/v1', 'ConversionReview'> & {
53
+ export type ConversionReview = m2.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 = m0.TypeMeta<'apiextensions.k8s.io/v1', 'CustomResourceDefinition'> & {
122
+ export type CustomResourceDefinition = m2.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'?: m0.ObjectMeta;
127
+ 'metadata'?: m2.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'?: m0.Time;
144
+ 'lastTransitionTime'?: m2.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 = m0.TypeMeta<'apiextensions.k8s.io/v1', 'CustomResourceDefinitionList'> & {
176
+ export type CustomResourceDefinitionList = m2.TypeMeta<'apiextensions.k8s.io/v1', 'CustomResourceDefinitionList'> & {
177
177
  /**
178
178
  * items list individual CustomResourceDefinition objects
179
179
  */
@@ -182,7 +182,7 @@ export type CustomResourceDefinitionList = m0.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'?: m0.ListMeta;
185
+ 'metadata'?: m2.ListMeta;
186
186
  };
187
187
  /**
188
188
  * CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition
@@ -1,7 +1,7 @@
1
- import * as m2 from 'kubernetypes/api/core/v1';
1
+ import * as m0 from 'kubernetypes/api/core/v1';
2
2
  import * as m1 from 'kubernetypes/apimachinery/apis/meta/v1';
3
3
  import * as m3 from 'kubernetypes/apimachinery/runtime';
4
- import * as m0 from 'kubernetypes/apimachinery/util/intstr';
4
+ import * as m2 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
@@ -83,7 +83,7 @@ export type DaemonSetCondition = {
83
83
  /**
84
84
  * Status of the condition, one of True, False, Unknown.
85
85
  */
86
- 'status': m2.ConditionStatus;
86
+ 'status': m0.ConditionStatus;
87
87
  /**
88
88
  * Type of DaemonSet condition.
89
89
  */
@@ -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': m2.PodTemplateSpec;
139
+ 'template': m0.PodTemplateSpec;
140
140
  /**
141
141
  * An update strategy to replace existing DaemonSet pods with new pods.
142
142
  */
@@ -259,7 +259,7 @@ export type DeploymentCondition = {
259
259
  /**
260
260
  * Status of the condition, one of True, False, Unknown.
261
261
  */
262
- 'status': m2.ConditionStatus;
262
+ 'status': m0.ConditionStatus;
263
263
  /**
264
264
  * Type of deployment condition.
265
265
  */
@@ -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': m2.PodTemplateSpec;
329
+ 'template': m0.PodTemplateSpec;
330
330
  };
331
331
  /**
332
332
  * DeploymentStatus is the most recently observed status of the Deployment.
@@ -448,7 +448,7 @@ export type ReplicaSetCondition = {
448
448
  /**
449
449
  * Status of the condition, one of True, False, Unknown.
450
450
  */
451
- 'status': m2.ConditionStatus;
451
+ 'status': m0.ConditionStatus;
452
452
  /**
453
453
  * Type of replica set condition.
454
454
  */
@@ -499,7 +499,7 @@ export type ReplicaSetSpec = {
499
499
  * insufficient replicas are detected.
500
500
  * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/#pod-template
501
501
  */
502
- 'template'?: m2.PodTemplateSpec;
502
+ 'template'?: m0.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'?: m0.IntOrString;
565
+ 'maxSurge'?: m2.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'?: m0.IntOrString;
582
+ 'maxUnavailable'?: m2.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'?: m0.IntOrString;
601
+ 'maxSurge'?: m2.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'?: m0.IntOrString;
614
+ 'maxUnavailable'?: m2.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'?: m0.IntOrString;
629
+ 'maxUnavailable'?: m2.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
@@ -679,7 +679,7 @@ export type StatefulSetCondition = {
679
679
  /**
680
680
  * Status of the condition, one of True, False, Unknown.
681
681
  */
682
- 'status': m2.ConditionStatus;
682
+ 'status': m0.ConditionStatus;
683
683
  /**
684
684
  * Type of statefulset condition.
685
685
  */
@@ -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': m2.PodTemplateSpec;
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'?: m2.PersistentVolumeClaim[];
831
+ 'volumeClaimTemplates'?: m0.PersistentVolumeClaim[];
832
832
  };
833
833
  /**
834
834
  * StatefulSetStatus represents the current state of a StatefulSet.
@@ -1,16 +1,16 @@
1
- import * as m0 from 'kubernetypes/api/authentication/v1';
2
- import * as m1 from 'kubernetypes/apimachinery/apis/meta/v1';
1
+ import * as m1 from 'kubernetypes/api/authentication/v1';
2
+ import * as m0 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 = m1.TypeMeta<'authentication.k8s.io/v1alpha1', 'SelfSubjectReview'> & {
8
+ export type SelfSubjectReview = m0.TypeMeta<'authentication.k8s.io/v1alpha1', 'SelfSubjectReview'> & {
9
9
  /**
10
10
  * 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'?: m1.ObjectMeta;
13
+ 'metadata'?: m0.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
  * User attributes of the user making this request.
25
25
  */
26
- 'userInfo'?: m0.UserInfo;
26
+ 'userInfo'?: m1.UserInfo;
27
27
  };
@@ -1,5 +1,5 @@
1
- import * as m0 from 'kubernetypes/api/authentication/v1';
2
- import * as m1 from 'kubernetypes/apimachinery/apis/meta/v1';
1
+ import * as m1 from 'kubernetypes/api/authentication/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
  * When using impersonation, users will receive the user info of the user being impersonated. If impersonation or
10
10
  * request header authentication is used, any extra keys will have their case ignored and returned as lowercase.
11
11
  */
12
- export type SelfSubjectReview = m1.TypeMeta<'authentication.k8s.io/v1beta1', 'SelfSubjectReview'> & {
12
+ export type SelfSubjectReview = m0.TypeMeta<'authentication.k8s.io/v1beta1', 'SelfSubjectReview'> & {
13
13
  /**
14
14
  * Standard object's metadata.
15
15
  * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
16
16
  */
17
- 'metadata'?: m1.ObjectMeta;
17
+ 'metadata'?: m0.ObjectMeta;
18
18
  /**
19
19
  * Status is filled in by the server with the user attributes.
20
20
  */
@@ -27,19 +27,19 @@ export type SelfSubjectReviewStatus = {
27
27
  /**
28
28
  * User attributes of the user making this request.
29
29
  */
30
- 'userInfo'?: m0.UserInfo;
30
+ 'userInfo'?: m1.UserInfo;
31
31
  };
32
32
  /**
33
33
  * TokenReview attempts to authenticate a token to a known user.
34
34
  * Note: TokenReview requests may be cached by the webhook token authenticator
35
35
  * plugin in the kube-apiserver.
36
36
  */
37
- export type TokenReview = m1.TypeMeta<'authentication.k8s.io/v1beta1', 'TokenReview'> & {
37
+ export type TokenReview = m0.TypeMeta<'authentication.k8s.io/v1beta1', 'TokenReview'> & {
38
38
  /**
39
39
  * Standard object's metadata.
40
40
  * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
41
41
  */
42
- 'metadata'?: m1.ObjectMeta;
42
+ 'metadata'?: m0.ObjectMeta;
43
43
  /**
44
44
  * Spec holds information about the request being evaluated
45
45
  */
@@ -1,6 +1,6 @@
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';
1
+ import * as m0 from 'kubernetypes/api/core/v1';
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
@@ -18,7 +18,7 @@ export type ContainerResourceMetricSource = {
18
18
  /**
19
19
  * name is the name of the resource in question.
20
20
  */
21
- 'name': m2.ResourceName;
21
+ 'name': m0.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': m2.ResourceName;
46
+ 'name': m0.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'?: m1.Quantity;
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 = m0.TypeMeta<'autoscaling/v2', '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'?: m0.ObjectMeta;
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'?: m0.Time;
219
+ 'lastTransitionTime'?: m1.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': m2.ConditionStatus;
232
+ 'status': m0.ConditionStatus;
233
233
  /**
234
234
  * type describes the current condition
235
235
  */
@@ -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 = m0.TypeMeta<'autoscaling/v2', '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 = m0.TypeMeta<'autoscaling/v2', 'Horizon
251
251
  /**
252
252
  * metadata is the standard list metadata.
253
253
  */
254
- 'metadata'?: m0.ListMeta;
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'?: m0.Time;
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'?: m0.LabelSelector;
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'?: m1.Quantity;
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'?: m1.Quantity;
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'?: m1.Quantity;
483
+ 'averageValue'?: m2.Quantity;
484
484
  /**
485
485
  * value is the current value of the metric (as a quantity).
486
486
  */
487
- 'value'?: m1.Quantity;
487
+ 'value'?: m2.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': m2.ResourceName;
568
+ 'name': m0.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': m2.ResourceName;
589
+ 'name': m0.ResourceName;
590
590
  };
591
591
  /**
592
592
  * ScalingPolicySelect is used to specify which policy should be used while scaling in a certain direction
@@ -1,6 +1,6 @@
1
- import * as m1 from 'kubernetypes/api/core/v1';
2
- import * as m2 from 'kubernetypes/apimachinery/apis/meta/v1';
3
- import * as m0 from 'kubernetypes/apimachinery/types';
1
+ import * as m0 from 'kubernetypes/api/core/v1';
2
+ import * as m1 from 'kubernetypes/apimachinery/apis/meta/v1';
3
+ import * as m2 from 'kubernetypes/apimachinery/types';
4
4
  /**
5
5
  * CompletionMode specifies how Pod completions of a Job are tracked.
6
6
  */
@@ -15,12 +15,12 @@ export type ConcurrencyPolicy = 'Allow' | 'Forbid' | 'Replace';
15
15
  /**
16
16
  * CronJob represents the configuration of a single cron job.
17
17
  */
18
- export type CronJob = m2.TypeMeta<'batch/v1', 'CronJob'> & {
18
+ export type CronJob = m1.TypeMeta<'batch/v1', 'CronJob'> & {
19
19
  /**
20
20
  * Standard object's metadata.
21
21
  * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
22
22
  */
23
- 'metadata'?: m2.ObjectMeta;
23
+ 'metadata'?: m1.ObjectMeta;
24
24
  /**
25
25
  * Specification of the desired behavior of a cron job, including the schedule.
26
26
  * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
@@ -35,7 +35,7 @@ export type CronJob = m2.TypeMeta<'batch/v1', 'CronJob'> & {
35
35
  /**
36
36
  * CronJobList is a collection of cron jobs.
37
37
  */
38
- export type CronJobList = m2.TypeMeta<'batch/v1', 'CronJobList'> & {
38
+ export type CronJobList = m1.TypeMeta<'batch/v1', 'CronJobList'> & {
39
39
  /**
40
40
  * items is the list of CronJobs.
41
41
  */
@@ -44,7 +44,7 @@ export type CronJobList = m2.TypeMeta<'batch/v1', 'CronJobList'> & {
44
44
  * Standard list metadata.
45
45
  * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
46
46
  */
47
- 'metadata'?: m2.ListMeta;
47
+ 'metadata'?: m1.ListMeta;
48
48
  };
49
49
  /**
50
50
  * CronJobSpec describes how the job execution will look like and when it will actually run.
@@ -107,25 +107,25 @@ export type CronJobStatus = {
107
107
  /**
108
108
  * A list of pointers to currently running jobs.
109
109
  */
110
- 'active'?: m1.ObjectReference[];
110
+ 'active'?: m0.ObjectReference[];
111
111
  /**
112
112
  * Information when was the last time the job was successfully scheduled.
113
113
  */
114
- 'lastScheduleTime'?: m2.Time;
114
+ 'lastScheduleTime'?: m1.Time;
115
115
  /**
116
116
  * Information when was the last time the job successfully completed.
117
117
  */
118
- 'lastSuccessfulTime'?: m2.Time;
118
+ 'lastSuccessfulTime'?: m1.Time;
119
119
  };
120
120
  /**
121
121
  * Job represents the configuration of a single job.
122
122
  */
123
- export type Job = m2.TypeMeta<'batch/v1', 'Job'> & {
123
+ export type Job = m1.TypeMeta<'batch/v1', 'Job'> & {
124
124
  /**
125
125
  * Standard object's metadata.
126
126
  * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
127
127
  */
128
- 'metadata'?: m2.ObjectMeta;
128
+ 'metadata'?: m1.ObjectMeta;
129
129
  /**
130
130
  * Specification of the desired behavior of a job.
131
131
  * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
@@ -144,11 +144,11 @@ export type JobCondition = {
144
144
  /**
145
145
  * Last time the condition was checked.
146
146
  */
147
- 'lastProbeTime'?: m2.Time;
147
+ 'lastProbeTime'?: m1.Time;
148
148
  /**
149
149
  * Last time the condition transit from one status to another.
150
150
  */
151
- 'lastTransitionTime'?: m2.Time;
151
+ 'lastTransitionTime'?: m1.Time;
152
152
  /**
153
153
  * Human readable message indicating details about last transition.
154
154
  */
@@ -160,7 +160,7 @@ export type JobCondition = {
160
160
  /**
161
161
  * Status of the condition, one of True, False, Unknown.
162
162
  */
163
- 'status': m1.ConditionStatus;
163
+ 'status': m0.ConditionStatus;
164
164
  /**
165
165
  * Type of job condition, Complete or Failed.
166
166
  */
@@ -170,7 +170,7 @@ export type JobConditionType = 'Complete' | 'Failed' | 'FailureTarget' | 'Succes
170
170
  /**
171
171
  * JobList is a collection of jobs.
172
172
  */
173
- export type JobList = m2.TypeMeta<'batch/v1', 'JobList'> & {
173
+ export type JobList = m1.TypeMeta<'batch/v1', 'JobList'> & {
174
174
  /**
175
175
  * items is the list of Jobs.
176
176
  */
@@ -179,7 +179,7 @@ export type JobList = m2.TypeMeta<'batch/v1', 'JobList'> & {
179
179
  * Standard list metadata.
180
180
  * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
181
181
  */
182
- 'metadata'?: m2.ListMeta;
182
+ 'metadata'?: m1.ListMeta;
183
183
  };
184
184
  /**
185
185
  * JobSpec describes how the job execution will look like.
@@ -313,7 +313,7 @@ export type JobSpec = {
313
313
  * Normally, the system sets this field for you.
314
314
  * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
315
315
  */
316
- 'selector'?: m2.LabelSelector;
316
+ 'selector'?: m1.LabelSelector;
317
317
  /**
318
318
  * successPolicy specifies the policy when the Job can be declared as succeeded.
319
319
  * If empty, the default behavior applies - the Job is declared as succeeded
@@ -337,7 +337,7 @@ export type JobSpec = {
337
337
  * The only allowed template.spec.restartPolicy values are "Never" or "OnFailure".
338
338
  * More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
339
339
  */
340
- 'template': m1.PodTemplateSpec;
340
+ 'template': m0.PodTemplateSpec;
341
341
  /**
342
342
  * ttlSecondsAfterFinished limits the lifetime of a Job that has finished
343
343
  * execution (either Complete or Failed). If this field is set,
@@ -377,7 +377,7 @@ export type JobStatus = {
377
377
  * The value cannot be updated or removed. The value indicates the same or
378
378
  * later point in time as the startTime field.
379
379
  */
380
- 'completionTime'?: m2.Time;
380
+ 'completionTime'?: m1.Time;
381
381
  /**
382
382
  * The latest available observations of an object's current state. When a Job
383
383
  * fails, one of the conditions will have type "Failed" and status true. When
@@ -425,7 +425,7 @@ export type JobStatus = {
425
425
  * Once set, the field can only be removed when the job is suspended.
426
426
  * The field cannot be modified while the job is unsuspended or finished.
427
427
  */
428
- 'startTime'?: m2.Time;
428
+ 'startTime'?: m1.Time;
429
429
  /**
430
430
  * The number of pods which reached phase Succeeded.
431
431
  * The value increases monotonically for a given spec. However, it may
@@ -467,7 +467,7 @@ export type JobTemplateSpec = {
467
467
  * Standard object's metadata of the jobs created from this template.
468
468
  * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
469
469
  */
470
- 'metadata'?: m2.ObjectMeta;
470
+ 'metadata'?: m1.ObjectMeta;
471
471
  /**
472
472
  * Specification of the desired behavior of the job.
473
473
  * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
@@ -542,12 +542,12 @@ export type PodFailurePolicyOnPodConditionsPattern = {
542
542
  * it is required that the specified status equals the pod condition status.
543
543
  * Defaults to True.
544
544
  */
545
- 'status'?: m1.ConditionStatus;
545
+ 'status'?: m0.ConditionStatus;
546
546
  /**
547
547
  * Specifies the required Pod condition type. To match a pod condition
548
548
  * it is required that specified type equals the pod condition type.
549
549
  */
550
- 'type': m1.PodConditionType;
550
+ 'type': m0.PodConditionType;
551
551
  };
552
552
  /**
553
553
  * PodFailurePolicyRule describes how a pod failure is handled when the requirements are met.
@@ -640,9 +640,9 @@ export type UncountedTerminatedPods = {
640
640
  /**
641
641
  * failed holds UIDs of failed Pods.
642
642
  */
643
- 'failed'?: m0.UID[];
643
+ 'failed'?: m2.UID[];
644
644
  /**
645
645
  * succeeded holds UIDs of succeeded Pods.
646
646
  */
647
- 'succeeded'?: m0.UID[];
647
+ 'succeeded'?: m2.UID[];
648
648
  };