Skip to content

Commit

Permalink
fix: k8s module import alias
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy committed Oct 14, 2024
1 parent cddd693 commit 9de1d59
Show file tree
Hide file tree
Showing 401 changed files with 1,510 additions and 1,510 deletions.
6 changes: 3 additions & 3 deletions k8s/1.14/api/apps/v1/daemon_set_spec.k
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ This is the daemon_set_spec module in k8s.api.apps.v1 package.
This file was generated by the KCL auto-gen tool. DO NOT EDIT.
Editing this file might prove futile when you re-run the KCL auto-gen generate command.
"""
import api.core.v1 as coreV1
import api.core.v1 as corev1
import apimachinery.pkg.apis.meta.v1


Expand All @@ -19,7 +19,7 @@ schema DaemonSetSpec:
The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.
selector : v1.LabelSelector, default is Undefined, required
A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
template : coreV1.PodTemplateSpec, default is Undefined, required
template : corev1.PodTemplateSpec, default is Undefined, required
An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
updateStrategy : DaemonSetUpdateStrategy, default is Undefined, optional
An update strategy to replace existing DaemonSet pods with new pods.
Expand All @@ -32,7 +32,7 @@ schema DaemonSetSpec:

selector: v1.LabelSelector

template: coreV1.PodTemplateSpec
template: corev1.PodTemplateSpec

updateStrategy?: DaemonSetUpdateStrategy

Expand Down
6 changes: 3 additions & 3 deletions k8s/1.14/api/apps/v1/deployment_spec.k
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ This is the deployment_spec module in k8s.api.apps.v1 package.
This file was generated by the KCL auto-gen tool. DO NOT EDIT.
Editing this file might prove futile when you re-run the KCL auto-gen generate command.
"""
import api.core.v1 as coreV1
import api.core.v1 as corev1
import apimachinery.pkg.apis.meta.v1


Expand All @@ -27,7 +27,7 @@ schema DeploymentSpec:
Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels.
strategy : DeploymentStrategy, default is Undefined, optional
The deployment strategy to use to replace existing pods with new ones.
template : coreV1.PodTemplateSpec, default is Undefined, required
template : corev1.PodTemplateSpec, default is Undefined, required
Template describes the pods that will be created.
"""

Expand All @@ -46,6 +46,6 @@ schema DeploymentSpec:

strategy?: DeploymentStrategy

template: coreV1.PodTemplateSpec
template: corev1.PodTemplateSpec


6 changes: 3 additions & 3 deletions k8s/1.14/api/apps/v1/replica_set_spec.k
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ This is the replica_set_spec module in k8s.api.apps.v1 package.
This file was generated by the KCL auto-gen tool. DO NOT EDIT.
Editing this file might prove futile when you re-run the KCL auto-gen generate command.
"""
import api.core.v1 as coreV1
import api.core.v1 as corev1
import apimachinery.pkg.apis.meta.v1


Expand All @@ -19,7 +19,7 @@ schema ReplicaSetSpec:
Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
selector : v1.LabelSelector, default is Undefined, required
Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
template : coreV1.PodTemplateSpec, default is Undefined, optional
template : corev1.PodTemplateSpec, default is Undefined, optional
Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
"""

Expand All @@ -30,6 +30,6 @@ schema ReplicaSetSpec:

selector: v1.LabelSelector

template?: coreV1.PodTemplateSpec
template?: corev1.PodTemplateSpec


10 changes: 5 additions & 5 deletions k8s/1.14/api/apps/v1/stateful_set_spec.k
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ This is the stateful_set_spec module in k8s.api.apps.v1 package.
This file was generated by the KCL auto-gen tool. DO NOT EDIT.
Editing this file might prove futile when you re-run the KCL auto-gen generate command.
"""
import api.core.v1 as coreV1
import api.core.v1 as corev1
import apimachinery.pkg.apis.meta.v1


Expand All @@ -23,11 +23,11 @@ schema StatefulSetSpec:
selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
serviceName : str, default is Undefined, required
serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where "pod-specific-string" is managed by the StatefulSet controller.
template : coreV1.PodTemplateSpec, default is Undefined, required
template : corev1.PodTemplateSpec, default is Undefined, required
template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet.
updateStrategy : StatefulSetUpdateStrategy, default is Undefined, optional
updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template.
volumeClaimTemplates : [coreV1.PersistentVolumeClaim], default is Undefined, optional
volumeClaimTemplates : [corev1.PersistentVolumeClaim], default is Undefined, optional
volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name.
"""

Expand All @@ -42,10 +42,10 @@ schema StatefulSetSpec:

serviceName: str

template: coreV1.PodTemplateSpec
template: corev1.PodTemplateSpec

updateStrategy?: StatefulSetUpdateStrategy

volumeClaimTemplates?: [coreV1.PersistentVolumeClaim]
volumeClaimTemplates?: [corev1.PersistentVolumeClaim]


6 changes: 3 additions & 3 deletions k8s/1.14/api/apps/v1beta1/deployment_spec.k
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ This is the deployment_spec module in k8s.api.apps.v1beta1 package.
This file was generated by the KCL auto-gen tool. DO NOT EDIT.
Editing this file might prove futile when you re-run the KCL auto-gen generate command.
"""
import api.core.v1 as coreV1
import api.core.v1 as corev1
import apimachinery.pkg.apis.meta.v1


Expand All @@ -29,7 +29,7 @@ schema DeploymentSpec:
Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment.
strategy : DeploymentStrategy, default is Undefined, optional
The deployment strategy to use to replace existing pods with new ones.
template : coreV1.PodTemplateSpec, default is Undefined, required
template : corev1.PodTemplateSpec, default is Undefined, required
Template describes the pods that will be created.
"""

Expand All @@ -50,6 +50,6 @@ schema DeploymentSpec:

strategy?: DeploymentStrategy

template: coreV1.PodTemplateSpec
template: corev1.PodTemplateSpec


10 changes: 5 additions & 5 deletions k8s/1.14/api/apps/v1beta1/stateful_set_spec.k
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ This is the stateful_set_spec module in k8s.api.apps.v1beta1 package.
This file was generated by the KCL auto-gen tool. DO NOT EDIT.
Editing this file might prove futile when you re-run the KCL auto-gen generate command.
"""
import api.core.v1 as coreV1
import api.core.v1 as corev1
import apimachinery.pkg.apis.meta.v1


Expand All @@ -23,11 +23,11 @@ schema StatefulSetSpec:
selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
serviceName : str, default is Undefined, required
serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where "pod-specific-string" is managed by the StatefulSet controller.
template : coreV1.PodTemplateSpec, default is Undefined, required
template : corev1.PodTemplateSpec, default is Undefined, required
template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet.
updateStrategy : StatefulSetUpdateStrategy, default is Undefined, optional
updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template.
volumeClaimTemplates : [coreV1.PersistentVolumeClaim], default is Undefined, optional
volumeClaimTemplates : [corev1.PersistentVolumeClaim], default is Undefined, optional
volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name.
"""

Expand All @@ -42,10 +42,10 @@ schema StatefulSetSpec:

serviceName: str

template: coreV1.PodTemplateSpec
template: corev1.PodTemplateSpec

updateStrategy?: StatefulSetUpdateStrategy

volumeClaimTemplates?: [coreV1.PersistentVolumeClaim]
volumeClaimTemplates?: [corev1.PersistentVolumeClaim]


6 changes: 3 additions & 3 deletions k8s/1.14/api/apps/v1beta2/daemon_set_spec.k
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ This is the daemon_set_spec module in k8s.api.apps.v1beta2 package.
This file was generated by the KCL auto-gen tool. DO NOT EDIT.
Editing this file might prove futile when you re-run the KCL auto-gen generate command.
"""
import api.core.v1 as coreV1
import api.core.v1 as corev1
import apimachinery.pkg.apis.meta.v1


Expand All @@ -19,7 +19,7 @@ schema DaemonSetSpec:
The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.
selector : v1.LabelSelector, default is Undefined, required
A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
template : coreV1.PodTemplateSpec, default is Undefined, required
template : corev1.PodTemplateSpec, default is Undefined, required
An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
updateStrategy : DaemonSetUpdateStrategy, default is Undefined, optional
An update strategy to replace existing DaemonSet pods with new pods.
Expand All @@ -32,7 +32,7 @@ schema DaemonSetSpec:

selector: v1.LabelSelector

template: coreV1.PodTemplateSpec
template: corev1.PodTemplateSpec

updateStrategy?: DaemonSetUpdateStrategy

Expand Down
6 changes: 3 additions & 3 deletions k8s/1.14/api/apps/v1beta2/deployment_spec.k
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ This is the deployment_spec module in k8s.api.apps.v1beta2 package.
This file was generated by the KCL auto-gen tool. DO NOT EDIT.
Editing this file might prove futile when you re-run the KCL auto-gen generate command.
"""
import api.core.v1 as coreV1
import api.core.v1 as corev1
import apimachinery.pkg.apis.meta.v1


Expand All @@ -27,7 +27,7 @@ schema DeploymentSpec:
Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels.
strategy : DeploymentStrategy, default is Undefined, optional
The deployment strategy to use to replace existing pods with new ones.
template : coreV1.PodTemplateSpec, default is Undefined, required
template : corev1.PodTemplateSpec, default is Undefined, required
Template describes the pods that will be created.
"""

Expand All @@ -46,6 +46,6 @@ schema DeploymentSpec:

strategy?: DeploymentStrategy

template: coreV1.PodTemplateSpec
template: corev1.PodTemplateSpec


6 changes: 3 additions & 3 deletions k8s/1.14/api/apps/v1beta2/replica_set_spec.k
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ This is the replica_set_spec module in k8s.api.apps.v1beta2 package.
This file was generated by the KCL auto-gen tool. DO NOT EDIT.
Editing this file might prove futile when you re-run the KCL auto-gen generate command.
"""
import api.core.v1 as coreV1
import api.core.v1 as corev1
import apimachinery.pkg.apis.meta.v1


Expand All @@ -19,7 +19,7 @@ schema ReplicaSetSpec:
Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
selector : v1.LabelSelector, default is Undefined, required
Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
template : coreV1.PodTemplateSpec, default is Undefined, optional
template : corev1.PodTemplateSpec, default is Undefined, optional
Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
"""

Expand All @@ -30,6 +30,6 @@ schema ReplicaSetSpec:

selector: v1.LabelSelector

template?: coreV1.PodTemplateSpec
template?: corev1.PodTemplateSpec


10 changes: 5 additions & 5 deletions k8s/1.14/api/apps/v1beta2/stateful_set_spec.k
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ This is the stateful_set_spec module in k8s.api.apps.v1beta2 package.
This file was generated by the KCL auto-gen tool. DO NOT EDIT.
Editing this file might prove futile when you re-run the KCL auto-gen generate command.
"""
import api.core.v1 as coreV1
import api.core.v1 as corev1
import apimachinery.pkg.apis.meta.v1


Expand All @@ -23,11 +23,11 @@ schema StatefulSetSpec:
selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
serviceName : str, default is Undefined, required
serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where "pod-specific-string" is managed by the StatefulSet controller.
template : coreV1.PodTemplateSpec, default is Undefined, required
template : corev1.PodTemplateSpec, default is Undefined, required
template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet.
updateStrategy : StatefulSetUpdateStrategy, default is Undefined, optional
updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template.
volumeClaimTemplates : [coreV1.PersistentVolumeClaim], default is Undefined, optional
volumeClaimTemplates : [corev1.PersistentVolumeClaim], default is Undefined, optional
volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name.
"""

Expand All @@ -42,10 +42,10 @@ schema StatefulSetSpec:

serviceName: str

template: coreV1.PodTemplateSpec
template: corev1.PodTemplateSpec

updateStrategy?: StatefulSetUpdateStrategy

volumeClaimTemplates?: [coreV1.PersistentVolumeClaim]
volumeClaimTemplates?: [corev1.PersistentVolumeClaim]


6 changes: 3 additions & 3 deletions k8s/1.14/api/batch/v1/job_spec.k
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ This is the job_spec module in k8s.api.batch.v1 package.
This file was generated by the KCL auto-gen tool. DO NOT EDIT.
Editing this file might prove futile when you re-run the KCL auto-gen generate command.
"""
import api.core.v1 as coreV1
import api.core.v1 as corev1
import apimachinery.pkg.apis.meta.v1


Expand All @@ -25,7 +25,7 @@ schema JobSpec:
Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
selector : v1.LabelSelector, default is Undefined, optional
A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
template : coreV1.PodTemplateSpec, default is Undefined, required
template : corev1.PodTemplateSpec, default is Undefined, required
Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
ttlSecondsAfterFinished : int, default is Undefined, optional
ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature.
Expand All @@ -44,7 +44,7 @@ schema JobSpec:

selector?: v1.LabelSelector

template: coreV1.PodTemplateSpec
template: corev1.PodTemplateSpec

ttlSecondsAfterFinished?: int

Expand Down
6 changes: 3 additions & 3 deletions k8s/1.14/api/batch/v1beta1/cron_job_status.k
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ This is the cron_job_status module in k8s.api.batch.v1beta1 package.
This file was generated by the KCL auto-gen tool. DO NOT EDIT.
Editing this file might prove futile when you re-run the KCL auto-gen generate command.
"""
import api.core.v1
import api.core.v1 as corev1


schema CronJobStatus:
Expand All @@ -12,14 +12,14 @@ schema CronJobStatus:

Attributes
----------
active : [v1.ObjectReference], default is Undefined, optional
active : [corev1.ObjectReference], default is Undefined, optional
A list of pointers to currently running jobs.
lastScheduleTime : str, default is Undefined, optional
Information when was the last time the job was successfully scheduled.
"""


active?: [v1.ObjectReference]
active?: [corecorev1.ObjectReference]

lastScheduleTime?: str

Expand Down
Loading

0 comments on commit 9de1d59

Please sign in to comment.