diff --git a/k8s/1.14/api/apps/v1/daemon_set_spec.k b/k8s/1.14/api/apps/v1/daemon_set_spec.k index d26e3e9d..caf3faf8 100644 --- a/k8s/1.14/api/apps/v1/daemon_set_spec.k +++ b/k8s/1.14/api/apps/v1/daemon_set_spec.k @@ -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 @@ -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. @@ -32,7 +32,7 @@ schema DaemonSetSpec: selector: v1.LabelSelector - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: DaemonSetUpdateStrategy diff --git a/k8s/1.14/api/apps/v1/deployment_spec.k b/k8s/1.14/api/apps/v1/deployment_spec.k index 1bbe7887..b8591d9a 100644 --- a/k8s/1.14/api/apps/v1/deployment_spec.k +++ b/k8s/1.14/api/apps/v1/deployment_spec.k @@ -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 @@ -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. """ @@ -46,6 +46,6 @@ schema DeploymentSpec: strategy?: DeploymentStrategy - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec diff --git a/k8s/1.14/api/apps/v1/replica_set_spec.k b/k8s/1.14/api/apps/v1/replica_set_spec.k index a1572bc1..700810d3 100644 --- a/k8s/1.14/api/apps/v1/replica_set_spec.k +++ b/k8s/1.14/api/apps/v1/replica_set_spec.k @@ -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 @@ -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 """ @@ -30,6 +30,6 @@ schema ReplicaSetSpec: selector: v1.LabelSelector - template?: coreV1.PodTemplateSpec + template?: corev1.PodTemplateSpec diff --git a/k8s/1.14/api/apps/v1/stateful_set_spec.k b/k8s/1.14/api/apps/v1/stateful_set_spec.k index d4f4c3f3..4deeb5ed 100644 --- a/k8s/1.14/api/apps/v1/stateful_set_spec.k +++ b/k8s/1.14/api/apps/v1/stateful_set_spec.k @@ -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 @@ -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. """ @@ -42,10 +42,10 @@ schema StatefulSetSpec: serviceName: str - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: StatefulSetUpdateStrategy - volumeClaimTemplates?: [coreV1.PersistentVolumeClaim] + volumeClaimTemplates?: [corev1.PersistentVolumeClaim] diff --git a/k8s/1.14/api/apps/v1beta1/deployment_spec.k b/k8s/1.14/api/apps/v1beta1/deployment_spec.k index 76cb1c12..89bb0162 100644 --- a/k8s/1.14/api/apps/v1beta1/deployment_spec.k +++ b/k8s/1.14/api/apps/v1beta1/deployment_spec.k @@ -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 @@ -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. """ @@ -50,6 +50,6 @@ schema DeploymentSpec: strategy?: DeploymentStrategy - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec diff --git a/k8s/1.14/api/apps/v1beta1/stateful_set_spec.k b/k8s/1.14/api/apps/v1beta1/stateful_set_spec.k index 62acdf79..cc43f136 100644 --- a/k8s/1.14/api/apps/v1beta1/stateful_set_spec.k +++ b/k8s/1.14/api/apps/v1beta1/stateful_set_spec.k @@ -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 @@ -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. """ @@ -42,10 +42,10 @@ schema StatefulSetSpec: serviceName: str - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: StatefulSetUpdateStrategy - volumeClaimTemplates?: [coreV1.PersistentVolumeClaim] + volumeClaimTemplates?: [corev1.PersistentVolumeClaim] diff --git a/k8s/1.14/api/apps/v1beta2/daemon_set_spec.k b/k8s/1.14/api/apps/v1beta2/daemon_set_spec.k index 822e2c22..7cd0be12 100644 --- a/k8s/1.14/api/apps/v1beta2/daemon_set_spec.k +++ b/k8s/1.14/api/apps/v1beta2/daemon_set_spec.k @@ -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 @@ -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. @@ -32,7 +32,7 @@ schema DaemonSetSpec: selector: v1.LabelSelector - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: DaemonSetUpdateStrategy diff --git a/k8s/1.14/api/apps/v1beta2/deployment_spec.k b/k8s/1.14/api/apps/v1beta2/deployment_spec.k index 82ec52a5..6564c983 100644 --- a/k8s/1.14/api/apps/v1beta2/deployment_spec.k +++ b/k8s/1.14/api/apps/v1beta2/deployment_spec.k @@ -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 @@ -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. """ @@ -46,6 +46,6 @@ schema DeploymentSpec: strategy?: DeploymentStrategy - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec diff --git a/k8s/1.14/api/apps/v1beta2/replica_set_spec.k b/k8s/1.14/api/apps/v1beta2/replica_set_spec.k index 8e594b56..c9451b61 100644 --- a/k8s/1.14/api/apps/v1beta2/replica_set_spec.k +++ b/k8s/1.14/api/apps/v1beta2/replica_set_spec.k @@ -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 @@ -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 """ @@ -30,6 +30,6 @@ schema ReplicaSetSpec: selector: v1.LabelSelector - template?: coreV1.PodTemplateSpec + template?: corev1.PodTemplateSpec diff --git a/k8s/1.14/api/apps/v1beta2/stateful_set_spec.k b/k8s/1.14/api/apps/v1beta2/stateful_set_spec.k index 7d91035f..52e2b106 100644 --- a/k8s/1.14/api/apps/v1beta2/stateful_set_spec.k +++ b/k8s/1.14/api/apps/v1beta2/stateful_set_spec.k @@ -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 @@ -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. """ @@ -42,10 +42,10 @@ schema StatefulSetSpec: serviceName: str - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: StatefulSetUpdateStrategy - volumeClaimTemplates?: [coreV1.PersistentVolumeClaim] + volumeClaimTemplates?: [corev1.PersistentVolumeClaim] diff --git a/k8s/1.14/api/batch/v1/job_spec.k b/k8s/1.14/api/batch/v1/job_spec.k index 42baa957..085f981e 100644 --- a/k8s/1.14/api/batch/v1/job_spec.k +++ b/k8s/1.14/api/batch/v1/job_spec.k @@ -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 @@ -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. @@ -44,7 +44,7 @@ schema JobSpec: selector?: v1.LabelSelector - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec ttlSecondsAfterFinished?: int diff --git a/k8s/1.14/api/batch/v1beta1/cron_job_status.k b/k8s/1.14/api/batch/v1beta1/cron_job_status.k index 61f4642c..d4cad078 100644 --- a/k8s/1.14/api/batch/v1beta1/cron_job_status.k +++ b/k8s/1.14/api/batch/v1beta1/cron_job_status.k @@ -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: @@ -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?: [corev1.ObjectReference] lastScheduleTime?: str diff --git a/k8s/1.14/api/batch/v2alpha1/cron_job_status.k b/k8s/1.14/api/batch/v2alpha1/cron_job_status.k index 697a04d0..6d7045c0 100644 --- a/k8s/1.14/api/batch/v2alpha1/cron_job_status.k +++ b/k8s/1.14/api/batch/v2alpha1/cron_job_status.k @@ -3,7 +3,7 @@ This is the cron_job_status module in k8s.api.batch.v2alpha1 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: @@ -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?: [corev1.ObjectReference] lastScheduleTime?: str diff --git a/k8s/1.14/api/events/v1beta1/event.k b/k8s/1.14/api/events/v1beta1/event.k index 60a86053..ec4a9e2c 100644 --- a/k8s/1.14/api/events/v1beta1/event.k +++ b/k8s/1.14/api/events/v1beta1/event.k @@ -3,8 +3,8 @@ This is the event module in k8s.api.events.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 apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema Event: @@ -23,21 +23,21 @@ schema Event: Deprecated field assuring backward compatibility with core.v1 Event type deprecatedLastTimestamp : str, default is Undefined, optional Deprecated field assuring backward compatibility with core.v1 Event type - deprecatedSource : v1.EventSource, default is Undefined, optional + deprecatedSource : corev1.EventSource, default is Undefined, optional Deprecated field assuring backward compatibility with core.v1 Event type eventTime : str, default is Undefined, required Required. Time when this Event was first observed. kind : str, default is "Event", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional metadata note : str, default is Undefined, optional Optional. A human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. reason : str, default is Undefined, optional Why the action was taken. - regarding : v1.ObjectReference, default is Undefined, optional + regarding : corev1.ObjectReference, default is Undefined, optional The object this Event is about. In most cases it's an Object reporting controller implements. E.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. - related : v1.ObjectReference, default is Undefined, optional + related : corev1.ObjectReference, default is Undefined, optional Optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. reportingController : str, default is Undefined, optional Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. @@ -60,21 +60,21 @@ schema Event: deprecatedLastTimestamp?: str - deprecatedSource?: v1.EventSource + deprecatedSource?: corev1.EventSource eventTime: str kind: "Event" = "Event" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta note?: str reason?: str - regarding?: v1.ObjectReference + regarding?: corev1.ObjectReference - related?: v1.ObjectReference + related?: corev1.ObjectReference reportingController?: str diff --git a/k8s/1.14/api/extensions/v1beta1/daemon_set_spec.k b/k8s/1.14/api/extensions/v1beta1/daemon_set_spec.k index b51ce3f7..5deae760 100644 --- a/k8s/1.14/api/extensions/v1beta1/daemon_set_spec.k +++ b/k8s/1.14/api/extensions/v1beta1/daemon_set_spec.k @@ -3,7 +3,7 @@ This is the daemon_set_spec module in k8s.api.extensions.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 @@ -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, optional A label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. 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 templateGeneration : int, default is Undefined, optional DEPRECATED. A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation. @@ -34,7 +34,7 @@ schema DaemonSetSpec: selector?: v1.LabelSelector - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec templateGeneration?: int diff --git a/k8s/1.14/api/extensions/v1beta1/deployment_spec.k b/k8s/1.14/api/extensions/v1beta1/deployment_spec.k index d8d77162..b6c56ad6 100644 --- a/k8s/1.14/api/extensions/v1beta1/deployment_spec.k +++ b/k8s/1.14/api/extensions/v1beta1/deployment_spec.k @@ -3,7 +3,7 @@ This is the deployment_spec module in k8s.api.extensions.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 @@ -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. """ @@ -50,6 +50,6 @@ schema DeploymentSpec: strategy?: DeploymentStrategy - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec diff --git a/k8s/1.14/api/extensions/v1beta1/ingress_status.k b/k8s/1.14/api/extensions/v1beta1/ingress_status.k index 6b11cc52..7a5493ef 100644 --- a/k8s/1.14/api/extensions/v1beta1/ingress_status.k +++ b/k8s/1.14/api/extensions/v1beta1/ingress_status.k @@ -3,7 +3,7 @@ This is the ingress_status module in k8s.api.extensions.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 IngressStatus: @@ -12,11 +12,11 @@ schema IngressStatus: Attributes ---------- - loadBalancer : v1.LoadBalancerStatus, default is Undefined, optional + loadBalancer : corev1.LoadBalancerStatus, default is Undefined, optional LoadBalancer contains the current status of the load-balancer. """ - loadBalancer?: v1.LoadBalancerStatus + loadBalancer?: corev1.LoadBalancerStatus diff --git a/k8s/1.14/api/extensions/v1beta1/replica_set_spec.k b/k8s/1.14/api/extensions/v1beta1/replica_set_spec.k index 9a829eca..9907b96b 100644 --- a/k8s/1.14/api/extensions/v1beta1/replica_set_spec.k +++ b/k8s/1.14/api/extensions/v1beta1/replica_set_spec.k @@ -3,7 +3,7 @@ This is the replica_set_spec module in k8s.api.extensions.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 @@ -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, optional Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. 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 """ @@ -30,6 +30,6 @@ schema ReplicaSetSpec: selector?: v1.LabelSelector - template?: coreV1.PodTemplateSpec + template?: corev1.PodTemplateSpec diff --git a/k8s/1.14/api/extensions/v1beta1/se_linux_strategy_options.k b/k8s/1.14/api/extensions/v1beta1/se_linux_strategy_options.k index 78a5b2da..945e2487 100644 --- a/k8s/1.14/api/extensions/v1beta1/se_linux_strategy_options.k +++ b/k8s/1.14/api/extensions/v1beta1/se_linux_strategy_options.k @@ -3,7 +3,7 @@ This is the se_linux_strategy_options module in k8s.api.extensions.v1beta1 packa 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 SELinuxStrategyOptions: @@ -14,13 +14,13 @@ schema SELinuxStrategyOptions: ---------- $rule : str, default is Undefined, required rule is the strategy that will dictate the allowable labels that may be set. - seLinuxOptions : v1.SELinuxOptions, default is Undefined, optional + seLinuxOptions : corev1.SELinuxOptions, default is Undefined, optional seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ """ $rule: str - seLinuxOptions?: v1.SELinuxOptions + seLinuxOptions?: corev1.SELinuxOptions diff --git a/k8s/1.14/api/networking/v1beta1/ingress_status.k b/k8s/1.14/api/networking/v1beta1/ingress_status.k index c10040b6..1b2e12db 100644 --- a/k8s/1.14/api/networking/v1beta1/ingress_status.k +++ b/k8s/1.14/api/networking/v1beta1/ingress_status.k @@ -3,7 +3,7 @@ This is the ingress_status module in k8s.api.networking.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 IngressStatus: @@ -12,11 +12,11 @@ schema IngressStatus: Attributes ---------- - loadBalancer : v1.LoadBalancerStatus, default is Undefined, optional + loadBalancer : corev1.LoadBalancerStatus, default is Undefined, optional LoadBalancer contains the current status of the load-balancer. """ - loadBalancer?: v1.LoadBalancerStatus + loadBalancer?: corev1.LoadBalancerStatus diff --git a/k8s/1.14/api/policy/v1beta1/se_linux_strategy_options.k b/k8s/1.14/api/policy/v1beta1/se_linux_strategy_options.k index db38b01b..2ca9c4ad 100644 --- a/k8s/1.14/api/policy/v1beta1/se_linux_strategy_options.k +++ b/k8s/1.14/api/policy/v1beta1/se_linux_strategy_options.k @@ -3,7 +3,7 @@ This is the se_linux_strategy_options module in k8s.api.policy.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 SELinuxStrategyOptions: @@ -14,13 +14,13 @@ schema SELinuxStrategyOptions: ---------- $rule : str, default is Undefined, required rule is the strategy that will dictate the allowable labels that may be set. - seLinuxOptions : v1.SELinuxOptions, default is Undefined, optional + seLinuxOptions : corev1.SELinuxOptions, default is Undefined, optional seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ """ $rule: str - seLinuxOptions?: v1.SELinuxOptions + seLinuxOptions?: corev1.SELinuxOptions diff --git a/k8s/1.14/api/settings/v1alpha1/pod_preset_spec.k b/k8s/1.14/api/settings/v1alpha1/pod_preset_spec.k index ca854ff1..e6ee5b92 100644 --- a/k8s/1.14/api/settings/v1alpha1/pod_preset_spec.k +++ b/k8s/1.14/api/settings/v1alpha1/pod_preset_spec.k @@ -3,8 +3,8 @@ This is the pod_preset_spec module in k8s.api.settings.v1alpha1 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 apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema PodPresetSpec: @@ -13,27 +13,27 @@ schema PodPresetSpec: Attributes ---------- - env : [v1.EnvVar], default is Undefined, optional + env : [corev1.EnvVar], default is Undefined, optional Env defines the collection of EnvVar to inject into containers. - envFrom : [v1.EnvFromSource], default is Undefined, optional + envFrom : [corev1.EnvFromSource], default is Undefined, optional EnvFrom defines the collection of EnvFromSource to inject into containers. - selector : metaV1.LabelSelector, default is Undefined, optional + selector : metav1.LabelSelector, default is Undefined, optional Selector is a label query over a set of resources, in this case pods. Required. - volumeMounts : [v1.VolumeMount], default is Undefined, optional + volumeMounts : [corev1.VolumeMount], default is Undefined, optional VolumeMounts defines the collection of VolumeMount to inject into containers. - volumes : [v1.Volume], default is Undefined, optional + volumes : [corev1.Volume], default is Undefined, optional Volumes defines the collection of Volume to inject into the pod. """ - env?: [v1.EnvVar] + env?: [corev1.EnvVar] - envFrom?: [v1.EnvFromSource] + envFrom?: [corev1.EnvFromSource] - selector?: metaV1.LabelSelector + selector?: metav1.LabelSelector - volumeMounts?: [v1.VolumeMount] + volumeMounts?: [corev1.VolumeMount] - volumes?: [v1.Volume] + volumes?: [corev1.Volume] diff --git a/k8s/1.14/api/storage/v1/storage_class.k b/k8s/1.14/api/storage/v1/storage_class.k index 008d0ed7..25d37bbf 100644 --- a/k8s/1.14/api/storage/v1/storage_class.k +++ b/k8s/1.14/api/storage/v1/storage_class.k @@ -3,8 +3,8 @@ This is the storage_class module in k8s.api.storage.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 -import apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema StorageClass: @@ -17,13 +17,13 @@ schema StorageClass: ---------- allowVolumeExpansion : bool, default is Undefined, optional AllowVolumeExpansion shows whether the storage class allow volume expand - allowedTopologies : [v1.TopologySelectorTerm], default is Undefined, optional + allowedTopologies : [corev1.TopologySelectorTerm], default is Undefined, optional Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. apiVersion : str, default is "storage.k8s.io/v1", required APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources kind : str, default is "StorageClass", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata mountOptions : [str], default is Undefined, optional Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. @@ -40,13 +40,13 @@ schema StorageClass: allowVolumeExpansion?: bool - allowedTopologies?: [v1.TopologySelectorTerm] + allowedTopologies?: [corev1.TopologySelectorTerm] apiVersion: "storage.k8s.io/v1" = "storage.k8s.io/v1" kind: "StorageClass" = "StorageClass" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta mountOptions?: [str] diff --git a/k8s/1.14/api/storage/v1beta1/storage_class.k b/k8s/1.14/api/storage/v1beta1/storage_class.k index 98e02afd..e573f38a 100644 --- a/k8s/1.14/api/storage/v1beta1/storage_class.k +++ b/k8s/1.14/api/storage/v1beta1/storage_class.k @@ -3,8 +3,8 @@ This is the storage_class module in k8s.api.storage.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 apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema StorageClass: @@ -17,13 +17,13 @@ schema StorageClass: ---------- allowVolumeExpansion : bool, default is Undefined, optional AllowVolumeExpansion shows whether the storage class allow volume expand - allowedTopologies : [v1.TopologySelectorTerm], default is Undefined, optional + allowedTopologies : [corev1.TopologySelectorTerm], default is Undefined, optional Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. apiVersion : str, default is "storage.k8s.io/v1beta1", required APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources kind : str, default is "StorageClass", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata mountOptions : [str], default is Undefined, optional Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. @@ -40,13 +40,13 @@ schema StorageClass: allowVolumeExpansion?: bool - allowedTopologies?: [v1.TopologySelectorTerm] + allowedTopologies?: [corev1.TopologySelectorTerm] apiVersion: "storage.k8s.io/v1beta1" = "storage.k8s.io/v1beta1" kind: "StorageClass" = "StorageClass" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta mountOptions?: [str] diff --git a/k8s/1.14/kcl.mod b/k8s/1.14/kcl.mod index 4d7033fb..167c9da3 100644 --- a/k8s/1.14/kcl.mod +++ b/k8s/1.14/kcl.mod @@ -1,5 +1,5 @@ [package] name = "k8s" edition = "*" -version = "1.14" +version = "1.14.1" description = "`k8s` is a KCL module contains all the built-in Kubernetes resource models (the CRDs are not included here)." diff --git a/k8s/1.15/api/apps/v1/daemon_set_spec.k b/k8s/1.15/api/apps/v1/daemon_set_spec.k index d26e3e9d..caf3faf8 100644 --- a/k8s/1.15/api/apps/v1/daemon_set_spec.k +++ b/k8s/1.15/api/apps/v1/daemon_set_spec.k @@ -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 @@ -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. @@ -32,7 +32,7 @@ schema DaemonSetSpec: selector: v1.LabelSelector - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: DaemonSetUpdateStrategy diff --git a/k8s/1.15/api/apps/v1/deployment_spec.k b/k8s/1.15/api/apps/v1/deployment_spec.k index 1bbe7887..b8591d9a 100644 --- a/k8s/1.15/api/apps/v1/deployment_spec.k +++ b/k8s/1.15/api/apps/v1/deployment_spec.k @@ -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 @@ -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. """ @@ -46,6 +46,6 @@ schema DeploymentSpec: strategy?: DeploymentStrategy - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec diff --git a/k8s/1.15/api/apps/v1/replica_set_spec.k b/k8s/1.15/api/apps/v1/replica_set_spec.k index a1572bc1..700810d3 100644 --- a/k8s/1.15/api/apps/v1/replica_set_spec.k +++ b/k8s/1.15/api/apps/v1/replica_set_spec.k @@ -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 @@ -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 """ @@ -30,6 +30,6 @@ schema ReplicaSetSpec: selector: v1.LabelSelector - template?: coreV1.PodTemplateSpec + template?: corev1.PodTemplateSpec diff --git a/k8s/1.15/api/apps/v1/stateful_set_spec.k b/k8s/1.15/api/apps/v1/stateful_set_spec.k index d4f4c3f3..4deeb5ed 100644 --- a/k8s/1.15/api/apps/v1/stateful_set_spec.k +++ b/k8s/1.15/api/apps/v1/stateful_set_spec.k @@ -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 @@ -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. """ @@ -42,10 +42,10 @@ schema StatefulSetSpec: serviceName: str - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: StatefulSetUpdateStrategy - volumeClaimTemplates?: [coreV1.PersistentVolumeClaim] + volumeClaimTemplates?: [corev1.PersistentVolumeClaim] diff --git a/k8s/1.15/api/apps/v1beta1/deployment_spec.k b/k8s/1.15/api/apps/v1beta1/deployment_spec.k index 76cb1c12..89bb0162 100644 --- a/k8s/1.15/api/apps/v1beta1/deployment_spec.k +++ b/k8s/1.15/api/apps/v1beta1/deployment_spec.k @@ -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 @@ -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. """ @@ -50,6 +50,6 @@ schema DeploymentSpec: strategy?: DeploymentStrategy - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec diff --git a/k8s/1.15/api/apps/v1beta1/stateful_set_spec.k b/k8s/1.15/api/apps/v1beta1/stateful_set_spec.k index 62acdf79..cc43f136 100644 --- a/k8s/1.15/api/apps/v1beta1/stateful_set_spec.k +++ b/k8s/1.15/api/apps/v1beta1/stateful_set_spec.k @@ -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 @@ -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. """ @@ -42,10 +42,10 @@ schema StatefulSetSpec: serviceName: str - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: StatefulSetUpdateStrategy - volumeClaimTemplates?: [coreV1.PersistentVolumeClaim] + volumeClaimTemplates?: [corev1.PersistentVolumeClaim] diff --git a/k8s/1.15/api/apps/v1beta2/daemon_set_spec.k b/k8s/1.15/api/apps/v1beta2/daemon_set_spec.k index 822e2c22..7cd0be12 100644 --- a/k8s/1.15/api/apps/v1beta2/daemon_set_spec.k +++ b/k8s/1.15/api/apps/v1beta2/daemon_set_spec.k @@ -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 @@ -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. @@ -32,7 +32,7 @@ schema DaemonSetSpec: selector: v1.LabelSelector - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: DaemonSetUpdateStrategy diff --git a/k8s/1.15/api/apps/v1beta2/deployment_spec.k b/k8s/1.15/api/apps/v1beta2/deployment_spec.k index 82ec52a5..6564c983 100644 --- a/k8s/1.15/api/apps/v1beta2/deployment_spec.k +++ b/k8s/1.15/api/apps/v1beta2/deployment_spec.k @@ -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 @@ -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. """ @@ -46,6 +46,6 @@ schema DeploymentSpec: strategy?: DeploymentStrategy - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec diff --git a/k8s/1.15/api/apps/v1beta2/replica_set_spec.k b/k8s/1.15/api/apps/v1beta2/replica_set_spec.k index 8e594b56..c9451b61 100644 --- a/k8s/1.15/api/apps/v1beta2/replica_set_spec.k +++ b/k8s/1.15/api/apps/v1beta2/replica_set_spec.k @@ -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 @@ -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 """ @@ -30,6 +30,6 @@ schema ReplicaSetSpec: selector: v1.LabelSelector - template?: coreV1.PodTemplateSpec + template?: corev1.PodTemplateSpec diff --git a/k8s/1.15/api/apps/v1beta2/stateful_set_spec.k b/k8s/1.15/api/apps/v1beta2/stateful_set_spec.k index 7d91035f..52e2b106 100644 --- a/k8s/1.15/api/apps/v1beta2/stateful_set_spec.k +++ b/k8s/1.15/api/apps/v1beta2/stateful_set_spec.k @@ -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 @@ -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. """ @@ -42,10 +42,10 @@ schema StatefulSetSpec: serviceName: str - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: StatefulSetUpdateStrategy - volumeClaimTemplates?: [coreV1.PersistentVolumeClaim] + volumeClaimTemplates?: [corev1.PersistentVolumeClaim] diff --git a/k8s/1.15/api/batch/v1/job_spec.k b/k8s/1.15/api/batch/v1/job_spec.k index 42baa957..085f981e 100644 --- a/k8s/1.15/api/batch/v1/job_spec.k +++ b/k8s/1.15/api/batch/v1/job_spec.k @@ -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 @@ -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. @@ -44,7 +44,7 @@ schema JobSpec: selector?: v1.LabelSelector - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec ttlSecondsAfterFinished?: int diff --git a/k8s/1.15/api/batch/v1beta1/cron_job_status.k b/k8s/1.15/api/batch/v1beta1/cron_job_status.k index 61f4642c..d4cad078 100644 --- a/k8s/1.15/api/batch/v1beta1/cron_job_status.k +++ b/k8s/1.15/api/batch/v1beta1/cron_job_status.k @@ -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: @@ -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?: [corev1.ObjectReference] lastScheduleTime?: str diff --git a/k8s/1.15/api/batch/v2alpha1/cron_job_status.k b/k8s/1.15/api/batch/v2alpha1/cron_job_status.k index 697a04d0..6d7045c0 100644 --- a/k8s/1.15/api/batch/v2alpha1/cron_job_status.k +++ b/k8s/1.15/api/batch/v2alpha1/cron_job_status.k @@ -3,7 +3,7 @@ This is the cron_job_status module in k8s.api.batch.v2alpha1 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: @@ -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?: [corev1.ObjectReference] lastScheduleTime?: str diff --git a/k8s/1.15/api/events/v1beta1/event.k b/k8s/1.15/api/events/v1beta1/event.k index 60a86053..ec4a9e2c 100644 --- a/k8s/1.15/api/events/v1beta1/event.k +++ b/k8s/1.15/api/events/v1beta1/event.k @@ -3,8 +3,8 @@ This is the event module in k8s.api.events.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 apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema Event: @@ -23,21 +23,21 @@ schema Event: Deprecated field assuring backward compatibility with core.v1 Event type deprecatedLastTimestamp : str, default is Undefined, optional Deprecated field assuring backward compatibility with core.v1 Event type - deprecatedSource : v1.EventSource, default is Undefined, optional + deprecatedSource : corev1.EventSource, default is Undefined, optional Deprecated field assuring backward compatibility with core.v1 Event type eventTime : str, default is Undefined, required Required. Time when this Event was first observed. kind : str, default is "Event", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional metadata note : str, default is Undefined, optional Optional. A human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. reason : str, default is Undefined, optional Why the action was taken. - regarding : v1.ObjectReference, default is Undefined, optional + regarding : corev1.ObjectReference, default is Undefined, optional The object this Event is about. In most cases it's an Object reporting controller implements. E.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. - related : v1.ObjectReference, default is Undefined, optional + related : corev1.ObjectReference, default is Undefined, optional Optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. reportingController : str, default is Undefined, optional Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. @@ -60,21 +60,21 @@ schema Event: deprecatedLastTimestamp?: str - deprecatedSource?: v1.EventSource + deprecatedSource?: corev1.EventSource eventTime: str kind: "Event" = "Event" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta note?: str reason?: str - regarding?: v1.ObjectReference + regarding?: corev1.ObjectReference - related?: v1.ObjectReference + related?: corev1.ObjectReference reportingController?: str diff --git a/k8s/1.15/api/extensions/v1beta1/daemon_set_spec.k b/k8s/1.15/api/extensions/v1beta1/daemon_set_spec.k index b51ce3f7..5deae760 100644 --- a/k8s/1.15/api/extensions/v1beta1/daemon_set_spec.k +++ b/k8s/1.15/api/extensions/v1beta1/daemon_set_spec.k @@ -3,7 +3,7 @@ This is the daemon_set_spec module in k8s.api.extensions.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 @@ -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, optional A label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. 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 templateGeneration : int, default is Undefined, optional DEPRECATED. A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation. @@ -34,7 +34,7 @@ schema DaemonSetSpec: selector?: v1.LabelSelector - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec templateGeneration?: int diff --git a/k8s/1.15/api/extensions/v1beta1/deployment_spec.k b/k8s/1.15/api/extensions/v1beta1/deployment_spec.k index d8d77162..b6c56ad6 100644 --- a/k8s/1.15/api/extensions/v1beta1/deployment_spec.k +++ b/k8s/1.15/api/extensions/v1beta1/deployment_spec.k @@ -3,7 +3,7 @@ This is the deployment_spec module in k8s.api.extensions.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 @@ -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. """ @@ -50,6 +50,6 @@ schema DeploymentSpec: strategy?: DeploymentStrategy - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec diff --git a/k8s/1.15/api/extensions/v1beta1/ingress_status.k b/k8s/1.15/api/extensions/v1beta1/ingress_status.k index 6b11cc52..7a5493ef 100644 --- a/k8s/1.15/api/extensions/v1beta1/ingress_status.k +++ b/k8s/1.15/api/extensions/v1beta1/ingress_status.k @@ -3,7 +3,7 @@ This is the ingress_status module in k8s.api.extensions.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 IngressStatus: @@ -12,11 +12,11 @@ schema IngressStatus: Attributes ---------- - loadBalancer : v1.LoadBalancerStatus, default is Undefined, optional + loadBalancer : corev1.LoadBalancerStatus, default is Undefined, optional LoadBalancer contains the current status of the load-balancer. """ - loadBalancer?: v1.LoadBalancerStatus + loadBalancer?: corev1.LoadBalancerStatus diff --git a/k8s/1.15/api/extensions/v1beta1/replica_set_spec.k b/k8s/1.15/api/extensions/v1beta1/replica_set_spec.k index 9a829eca..9907b96b 100644 --- a/k8s/1.15/api/extensions/v1beta1/replica_set_spec.k +++ b/k8s/1.15/api/extensions/v1beta1/replica_set_spec.k @@ -3,7 +3,7 @@ This is the replica_set_spec module in k8s.api.extensions.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 @@ -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, optional Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. 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 """ @@ -30,6 +30,6 @@ schema ReplicaSetSpec: selector?: v1.LabelSelector - template?: coreV1.PodTemplateSpec + template?: corev1.PodTemplateSpec diff --git a/k8s/1.15/api/extensions/v1beta1/se_linux_strategy_options.k b/k8s/1.15/api/extensions/v1beta1/se_linux_strategy_options.k index 78a5b2da..945e2487 100644 --- a/k8s/1.15/api/extensions/v1beta1/se_linux_strategy_options.k +++ b/k8s/1.15/api/extensions/v1beta1/se_linux_strategy_options.k @@ -3,7 +3,7 @@ This is the se_linux_strategy_options module in k8s.api.extensions.v1beta1 packa 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 SELinuxStrategyOptions: @@ -14,13 +14,13 @@ schema SELinuxStrategyOptions: ---------- $rule : str, default is Undefined, required rule is the strategy that will dictate the allowable labels that may be set. - seLinuxOptions : v1.SELinuxOptions, default is Undefined, optional + seLinuxOptions : corev1.SELinuxOptions, default is Undefined, optional seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ """ $rule: str - seLinuxOptions?: v1.SELinuxOptions + seLinuxOptions?: corev1.SELinuxOptions diff --git a/k8s/1.15/api/networking/v1beta1/ingress_status.k b/k8s/1.15/api/networking/v1beta1/ingress_status.k index c10040b6..1b2e12db 100644 --- a/k8s/1.15/api/networking/v1beta1/ingress_status.k +++ b/k8s/1.15/api/networking/v1beta1/ingress_status.k @@ -3,7 +3,7 @@ This is the ingress_status module in k8s.api.networking.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 IngressStatus: @@ -12,11 +12,11 @@ schema IngressStatus: Attributes ---------- - loadBalancer : v1.LoadBalancerStatus, default is Undefined, optional + loadBalancer : corev1.LoadBalancerStatus, default is Undefined, optional LoadBalancer contains the current status of the load-balancer. """ - loadBalancer?: v1.LoadBalancerStatus + loadBalancer?: corev1.LoadBalancerStatus diff --git a/k8s/1.15/api/policy/v1beta1/se_linux_strategy_options.k b/k8s/1.15/api/policy/v1beta1/se_linux_strategy_options.k index db38b01b..2ca9c4ad 100644 --- a/k8s/1.15/api/policy/v1beta1/se_linux_strategy_options.k +++ b/k8s/1.15/api/policy/v1beta1/se_linux_strategy_options.k @@ -3,7 +3,7 @@ This is the se_linux_strategy_options module in k8s.api.policy.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 SELinuxStrategyOptions: @@ -14,13 +14,13 @@ schema SELinuxStrategyOptions: ---------- $rule : str, default is Undefined, required rule is the strategy that will dictate the allowable labels that may be set. - seLinuxOptions : v1.SELinuxOptions, default is Undefined, optional + seLinuxOptions : corev1.SELinuxOptions, default is Undefined, optional seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ """ $rule: str - seLinuxOptions?: v1.SELinuxOptions + seLinuxOptions?: corev1.SELinuxOptions diff --git a/k8s/1.15/api/settings/v1alpha1/pod_preset_spec.k b/k8s/1.15/api/settings/v1alpha1/pod_preset_spec.k index ca854ff1..e6ee5b92 100644 --- a/k8s/1.15/api/settings/v1alpha1/pod_preset_spec.k +++ b/k8s/1.15/api/settings/v1alpha1/pod_preset_spec.k @@ -3,8 +3,8 @@ This is the pod_preset_spec module in k8s.api.settings.v1alpha1 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 apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema PodPresetSpec: @@ -13,27 +13,27 @@ schema PodPresetSpec: Attributes ---------- - env : [v1.EnvVar], default is Undefined, optional + env : [corev1.EnvVar], default is Undefined, optional Env defines the collection of EnvVar to inject into containers. - envFrom : [v1.EnvFromSource], default is Undefined, optional + envFrom : [corev1.EnvFromSource], default is Undefined, optional EnvFrom defines the collection of EnvFromSource to inject into containers. - selector : metaV1.LabelSelector, default is Undefined, optional + selector : metav1.LabelSelector, default is Undefined, optional Selector is a label query over a set of resources, in this case pods. Required. - volumeMounts : [v1.VolumeMount], default is Undefined, optional + volumeMounts : [corev1.VolumeMount], default is Undefined, optional VolumeMounts defines the collection of VolumeMount to inject into containers. - volumes : [v1.Volume], default is Undefined, optional + volumes : [corev1.Volume], default is Undefined, optional Volumes defines the collection of Volume to inject into the pod. """ - env?: [v1.EnvVar] + env?: [corev1.EnvVar] - envFrom?: [v1.EnvFromSource] + envFrom?: [corev1.EnvFromSource] - selector?: metaV1.LabelSelector + selector?: metav1.LabelSelector - volumeMounts?: [v1.VolumeMount] + volumeMounts?: [corev1.VolumeMount] - volumes?: [v1.Volume] + volumes?: [corev1.Volume] diff --git a/k8s/1.15/api/storage/v1/storage_class.k b/k8s/1.15/api/storage/v1/storage_class.k index 008d0ed7..25d37bbf 100644 --- a/k8s/1.15/api/storage/v1/storage_class.k +++ b/k8s/1.15/api/storage/v1/storage_class.k @@ -3,8 +3,8 @@ This is the storage_class module in k8s.api.storage.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 -import apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema StorageClass: @@ -17,13 +17,13 @@ schema StorageClass: ---------- allowVolumeExpansion : bool, default is Undefined, optional AllowVolumeExpansion shows whether the storage class allow volume expand - allowedTopologies : [v1.TopologySelectorTerm], default is Undefined, optional + allowedTopologies : [corev1.TopologySelectorTerm], default is Undefined, optional Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. apiVersion : str, default is "storage.k8s.io/v1", required APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources kind : str, default is "StorageClass", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata mountOptions : [str], default is Undefined, optional Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. @@ -40,13 +40,13 @@ schema StorageClass: allowVolumeExpansion?: bool - allowedTopologies?: [v1.TopologySelectorTerm] + allowedTopologies?: [corev1.TopologySelectorTerm] apiVersion: "storage.k8s.io/v1" = "storage.k8s.io/v1" kind: "StorageClass" = "StorageClass" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta mountOptions?: [str] diff --git a/k8s/1.15/api/storage/v1/volume_attachment_source.k b/k8s/1.15/api/storage/v1/volume_attachment_source.k index 1eeaf04b..2c984d96 100644 --- a/k8s/1.15/api/storage/v1/volume_attachment_source.k +++ b/k8s/1.15/api/storage/v1/volume_attachment_source.k @@ -3,7 +3,7 @@ This is the volume_attachment_source module in k8s.api.storage.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 +import api.core.v1 as corev1 schema VolumeAttachmentSource: @@ -12,14 +12,14 @@ schema VolumeAttachmentSource: Attributes ---------- - inlineVolumeSpec : v1.PersistentVolumeSpec, default is Undefined, optional + inlineVolumeSpec : corev1.PersistentVolumeSpec, default is Undefined, optional inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. persistentVolumeName : str, default is Undefined, optional Name of the persistent volume to attach. """ - inlineVolumeSpec?: v1.PersistentVolumeSpec + inlineVolumeSpec?: corev1.PersistentVolumeSpec persistentVolumeName?: str diff --git a/k8s/1.15/api/storage/v1alpha1/volume_attachment_source.k b/k8s/1.15/api/storage/v1alpha1/volume_attachment_source.k index 61209a6a..7e9611f9 100644 --- a/k8s/1.15/api/storage/v1alpha1/volume_attachment_source.k +++ b/k8s/1.15/api/storage/v1alpha1/volume_attachment_source.k @@ -3,7 +3,7 @@ This is the volume_attachment_source module in k8s.api.storage.v1alpha1 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 VolumeAttachmentSource: @@ -12,14 +12,14 @@ schema VolumeAttachmentSource: Attributes ---------- - inlineVolumeSpec : v1.PersistentVolumeSpec, default is Undefined, optional + inlineVolumeSpec : corev1.PersistentVolumeSpec, default is Undefined, optional inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. persistentVolumeName : str, default is Undefined, optional Name of the persistent volume to attach. """ - inlineVolumeSpec?: v1.PersistentVolumeSpec + inlineVolumeSpec?: corev1.PersistentVolumeSpec persistentVolumeName?: str diff --git a/k8s/1.15/api/storage/v1beta1/storage_class.k b/k8s/1.15/api/storage/v1beta1/storage_class.k index 98e02afd..e573f38a 100644 --- a/k8s/1.15/api/storage/v1beta1/storage_class.k +++ b/k8s/1.15/api/storage/v1beta1/storage_class.k @@ -3,8 +3,8 @@ This is the storage_class module in k8s.api.storage.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 apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema StorageClass: @@ -17,13 +17,13 @@ schema StorageClass: ---------- allowVolumeExpansion : bool, default is Undefined, optional AllowVolumeExpansion shows whether the storage class allow volume expand - allowedTopologies : [v1.TopologySelectorTerm], default is Undefined, optional + allowedTopologies : [corev1.TopologySelectorTerm], default is Undefined, optional Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. apiVersion : str, default is "storage.k8s.io/v1beta1", required APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources kind : str, default is "StorageClass", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata mountOptions : [str], default is Undefined, optional Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. @@ -40,13 +40,13 @@ schema StorageClass: allowVolumeExpansion?: bool - allowedTopologies?: [v1.TopologySelectorTerm] + allowedTopologies?: [corev1.TopologySelectorTerm] apiVersion: "storage.k8s.io/v1beta1" = "storage.k8s.io/v1beta1" kind: "StorageClass" = "StorageClass" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta mountOptions?: [str] diff --git a/k8s/1.15/api/storage/v1beta1/volume_attachment_source.k b/k8s/1.15/api/storage/v1beta1/volume_attachment_source.k index 44af59af..c35ab32c 100644 --- a/k8s/1.15/api/storage/v1beta1/volume_attachment_source.k +++ b/k8s/1.15/api/storage/v1beta1/volume_attachment_source.k @@ -3,7 +3,7 @@ This is the volume_attachment_source module in k8s.api.storage.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 VolumeAttachmentSource: @@ -12,14 +12,14 @@ schema VolumeAttachmentSource: Attributes ---------- - inlineVolumeSpec : v1.PersistentVolumeSpec, default is Undefined, optional + inlineVolumeSpec : corev1.PersistentVolumeSpec, default is Undefined, optional inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. persistentVolumeName : str, default is Undefined, optional Name of the persistent volume to attach. """ - inlineVolumeSpec?: v1.PersistentVolumeSpec + inlineVolumeSpec?: corev1.PersistentVolumeSpec persistentVolumeName?: str diff --git a/k8s/1.15/kcl.mod b/k8s/1.15/kcl.mod index aef94b4b..56e73ae3 100644 --- a/k8s/1.15/kcl.mod +++ b/k8s/1.15/kcl.mod @@ -1,5 +1,5 @@ [package] name = "k8s" edition = "*" -version = "1.15" +version = "1.15.1" description = "`k8s` is a KCL module contains all the built-in Kubernetes resource models (the CRDs are not included here)." diff --git a/k8s/1.16/api/apps/v1/daemon_set_spec.k b/k8s/1.16/api/apps/v1/daemon_set_spec.k index d26e3e9d..caf3faf8 100644 --- a/k8s/1.16/api/apps/v1/daemon_set_spec.k +++ b/k8s/1.16/api/apps/v1/daemon_set_spec.k @@ -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 @@ -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. @@ -32,7 +32,7 @@ schema DaemonSetSpec: selector: v1.LabelSelector - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: DaemonSetUpdateStrategy diff --git a/k8s/1.16/api/apps/v1/deployment_spec.k b/k8s/1.16/api/apps/v1/deployment_spec.k index 1bbe7887..b8591d9a 100644 --- a/k8s/1.16/api/apps/v1/deployment_spec.k +++ b/k8s/1.16/api/apps/v1/deployment_spec.k @@ -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 @@ -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. """ @@ -46,6 +46,6 @@ schema DeploymentSpec: strategy?: DeploymentStrategy - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec diff --git a/k8s/1.16/api/apps/v1/replica_set_spec.k b/k8s/1.16/api/apps/v1/replica_set_spec.k index a1572bc1..700810d3 100644 --- a/k8s/1.16/api/apps/v1/replica_set_spec.k +++ b/k8s/1.16/api/apps/v1/replica_set_spec.k @@ -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 @@ -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 """ @@ -30,6 +30,6 @@ schema ReplicaSetSpec: selector: v1.LabelSelector - template?: coreV1.PodTemplateSpec + template?: corev1.PodTemplateSpec diff --git a/k8s/1.16/api/apps/v1/stateful_set_spec.k b/k8s/1.16/api/apps/v1/stateful_set_spec.k index d4f4c3f3..4deeb5ed 100644 --- a/k8s/1.16/api/apps/v1/stateful_set_spec.k +++ b/k8s/1.16/api/apps/v1/stateful_set_spec.k @@ -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 @@ -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. """ @@ -42,10 +42,10 @@ schema StatefulSetSpec: serviceName: str - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: StatefulSetUpdateStrategy - volumeClaimTemplates?: [coreV1.PersistentVolumeClaim] + volumeClaimTemplates?: [corev1.PersistentVolumeClaim] diff --git a/k8s/1.16/api/apps/v1beta1/deployment_spec.k b/k8s/1.16/api/apps/v1beta1/deployment_spec.k index 76cb1c12..89bb0162 100644 --- a/k8s/1.16/api/apps/v1beta1/deployment_spec.k +++ b/k8s/1.16/api/apps/v1beta1/deployment_spec.k @@ -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 @@ -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. """ @@ -50,6 +50,6 @@ schema DeploymentSpec: strategy?: DeploymentStrategy - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec diff --git a/k8s/1.16/api/apps/v1beta1/stateful_set_spec.k b/k8s/1.16/api/apps/v1beta1/stateful_set_spec.k index 62acdf79..cc43f136 100644 --- a/k8s/1.16/api/apps/v1beta1/stateful_set_spec.k +++ b/k8s/1.16/api/apps/v1beta1/stateful_set_spec.k @@ -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 @@ -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. """ @@ -42,10 +42,10 @@ schema StatefulSetSpec: serviceName: str - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: StatefulSetUpdateStrategy - volumeClaimTemplates?: [coreV1.PersistentVolumeClaim] + volumeClaimTemplates?: [corev1.PersistentVolumeClaim] diff --git a/k8s/1.16/api/apps/v1beta2/daemon_set_spec.k b/k8s/1.16/api/apps/v1beta2/daemon_set_spec.k index 822e2c22..7cd0be12 100644 --- a/k8s/1.16/api/apps/v1beta2/daemon_set_spec.k +++ b/k8s/1.16/api/apps/v1beta2/daemon_set_spec.k @@ -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 @@ -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. @@ -32,7 +32,7 @@ schema DaemonSetSpec: selector: v1.LabelSelector - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: DaemonSetUpdateStrategy diff --git a/k8s/1.16/api/apps/v1beta2/deployment_spec.k b/k8s/1.16/api/apps/v1beta2/deployment_spec.k index 82ec52a5..6564c983 100644 --- a/k8s/1.16/api/apps/v1beta2/deployment_spec.k +++ b/k8s/1.16/api/apps/v1beta2/deployment_spec.k @@ -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 @@ -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. """ @@ -46,6 +46,6 @@ schema DeploymentSpec: strategy?: DeploymentStrategy - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec diff --git a/k8s/1.16/api/apps/v1beta2/replica_set_spec.k b/k8s/1.16/api/apps/v1beta2/replica_set_spec.k index 8e594b56..c9451b61 100644 --- a/k8s/1.16/api/apps/v1beta2/replica_set_spec.k +++ b/k8s/1.16/api/apps/v1beta2/replica_set_spec.k @@ -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 @@ -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 """ @@ -30,6 +30,6 @@ schema ReplicaSetSpec: selector: v1.LabelSelector - template?: coreV1.PodTemplateSpec + template?: corev1.PodTemplateSpec diff --git a/k8s/1.16/api/apps/v1beta2/stateful_set_spec.k b/k8s/1.16/api/apps/v1beta2/stateful_set_spec.k index 7d91035f..52e2b106 100644 --- a/k8s/1.16/api/apps/v1beta2/stateful_set_spec.k +++ b/k8s/1.16/api/apps/v1beta2/stateful_set_spec.k @@ -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 @@ -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. """ @@ -42,10 +42,10 @@ schema StatefulSetSpec: serviceName: str - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: StatefulSetUpdateStrategy - volumeClaimTemplates?: [coreV1.PersistentVolumeClaim] + volumeClaimTemplates?: [corev1.PersistentVolumeClaim] diff --git a/k8s/1.16/api/batch/v1/job_spec.k b/k8s/1.16/api/batch/v1/job_spec.k index 42baa957..085f981e 100644 --- a/k8s/1.16/api/batch/v1/job_spec.k +++ b/k8s/1.16/api/batch/v1/job_spec.k @@ -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 @@ -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. @@ -44,7 +44,7 @@ schema JobSpec: selector?: v1.LabelSelector - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec ttlSecondsAfterFinished?: int diff --git a/k8s/1.16/api/batch/v1beta1/cron_job_status.k b/k8s/1.16/api/batch/v1beta1/cron_job_status.k index 61f4642c..d4cad078 100644 --- a/k8s/1.16/api/batch/v1beta1/cron_job_status.k +++ b/k8s/1.16/api/batch/v1beta1/cron_job_status.k @@ -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: @@ -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?: [corev1.ObjectReference] lastScheduleTime?: str diff --git a/k8s/1.16/api/batch/v2alpha1/cron_job_status.k b/k8s/1.16/api/batch/v2alpha1/cron_job_status.k index 697a04d0..6d7045c0 100644 --- a/k8s/1.16/api/batch/v2alpha1/cron_job_status.k +++ b/k8s/1.16/api/batch/v2alpha1/cron_job_status.k @@ -3,7 +3,7 @@ This is the cron_job_status module in k8s.api.batch.v2alpha1 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: @@ -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?: [corev1.ObjectReference] lastScheduleTime?: str diff --git a/k8s/1.16/api/discovery/v1alpha1/endpoint.k b/k8s/1.16/api/discovery/v1alpha1/endpoint.k index a6ea1e52..e60f1ed6 100644 --- a/k8s/1.16/api/discovery/v1alpha1/endpoint.k +++ b/k8s/1.16/api/discovery/v1alpha1/endpoint.k @@ -3,7 +3,7 @@ This is the endpoint module in k8s.api.discovery.v1alpha1 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 Endpoint: @@ -18,7 +18,7 @@ schema Endpoint: conditions contains information about the current status of the endpoint. hostname : str, default is Undefined, optional hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must pass DNS Label (RFC 1123) validation. - targetRef : v1.ObjectReference, default is Undefined, optional + targetRef : corev1.ObjectReference, default is Undefined, optional targetRef is a reference to a Kubernetes object that represents this endpoint. topology : {str:str}, default is Undefined, optional topology contains arbitrary topology information associated with the endpoint. These key/value pairs must conform with the label format. https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Topology may include a maximum of 16 key/value pairs. This includes, but is not limited to the following well known keys: * kubernetes.io/hostname: the value indicates the hostname of the node @@ -37,7 +37,7 @@ schema Endpoint: hostname?: str - targetRef?: v1.ObjectReference + targetRef?: corev1.ObjectReference topology?: {str:str} diff --git a/k8s/1.16/api/events/v1beta1/event.k b/k8s/1.16/api/events/v1beta1/event.k index 272495e6..037de626 100644 --- a/k8s/1.16/api/events/v1beta1/event.k +++ b/k8s/1.16/api/events/v1beta1/event.k @@ -3,8 +3,8 @@ This is the event module in k8s.api.events.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 apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema Event: @@ -23,21 +23,21 @@ schema Event: Deprecated field assuring backward compatibility with core.v1 Event type deprecatedLastTimestamp : str, default is Undefined, optional Deprecated field assuring backward compatibility with core.v1 Event type - deprecatedSource : v1.EventSource, default is Undefined, optional + deprecatedSource : corev1.EventSource, default is Undefined, optional Deprecated field assuring backward compatibility with core.v1 Event type eventTime : str, default is Undefined, required Required. Time when this Event was first observed. kind : str, default is "Event", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional metadata note : str, default is Undefined, optional Optional. A human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. reason : str, default is Undefined, optional Why the action was taken. - regarding : v1.ObjectReference, default is Undefined, optional + regarding : corev1.ObjectReference, default is Undefined, optional The object this Event is about. In most cases it's an Object reporting controller implements. E.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. - related : v1.ObjectReference, default is Undefined, optional + related : corev1.ObjectReference, default is Undefined, optional Optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. reportingController : str, default is Undefined, optional Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. @@ -60,21 +60,21 @@ schema Event: deprecatedLastTimestamp?: str - deprecatedSource?: v1.EventSource + deprecatedSource?: corev1.EventSource eventTime: str kind: "Event" = "Event" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta note?: str reason?: str - regarding?: v1.ObjectReference + regarding?: corev1.ObjectReference - related?: v1.ObjectReference + related?: corev1.ObjectReference reportingController?: str diff --git a/k8s/1.16/api/extensions/v1beta1/daemon_set_spec.k b/k8s/1.16/api/extensions/v1beta1/daemon_set_spec.k index b51ce3f7..5deae760 100644 --- a/k8s/1.16/api/extensions/v1beta1/daemon_set_spec.k +++ b/k8s/1.16/api/extensions/v1beta1/daemon_set_spec.k @@ -3,7 +3,7 @@ This is the daemon_set_spec module in k8s.api.extensions.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 @@ -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, optional A label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. 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 templateGeneration : int, default is Undefined, optional DEPRECATED. A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation. @@ -34,7 +34,7 @@ schema DaemonSetSpec: selector?: v1.LabelSelector - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec templateGeneration?: int diff --git a/k8s/1.16/api/extensions/v1beta1/deployment_spec.k b/k8s/1.16/api/extensions/v1beta1/deployment_spec.k index d8d77162..b6c56ad6 100644 --- a/k8s/1.16/api/extensions/v1beta1/deployment_spec.k +++ b/k8s/1.16/api/extensions/v1beta1/deployment_spec.k @@ -3,7 +3,7 @@ This is the deployment_spec module in k8s.api.extensions.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 @@ -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. """ @@ -50,6 +50,6 @@ schema DeploymentSpec: strategy?: DeploymentStrategy - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec diff --git a/k8s/1.16/api/extensions/v1beta1/ingress_status.k b/k8s/1.16/api/extensions/v1beta1/ingress_status.k index 6b11cc52..7a5493ef 100644 --- a/k8s/1.16/api/extensions/v1beta1/ingress_status.k +++ b/k8s/1.16/api/extensions/v1beta1/ingress_status.k @@ -3,7 +3,7 @@ This is the ingress_status module in k8s.api.extensions.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 IngressStatus: @@ -12,11 +12,11 @@ schema IngressStatus: Attributes ---------- - loadBalancer : v1.LoadBalancerStatus, default is Undefined, optional + loadBalancer : corev1.LoadBalancerStatus, default is Undefined, optional LoadBalancer contains the current status of the load-balancer. """ - loadBalancer?: v1.LoadBalancerStatus + loadBalancer?: corev1.LoadBalancerStatus diff --git a/k8s/1.16/api/extensions/v1beta1/replica_set_spec.k b/k8s/1.16/api/extensions/v1beta1/replica_set_spec.k index 9a829eca..9907b96b 100644 --- a/k8s/1.16/api/extensions/v1beta1/replica_set_spec.k +++ b/k8s/1.16/api/extensions/v1beta1/replica_set_spec.k @@ -3,7 +3,7 @@ This is the replica_set_spec module in k8s.api.extensions.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 @@ -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, optional Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. 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 """ @@ -30,6 +30,6 @@ schema ReplicaSetSpec: selector?: v1.LabelSelector - template?: coreV1.PodTemplateSpec + template?: corev1.PodTemplateSpec diff --git a/k8s/1.16/api/extensions/v1beta1/se_linux_strategy_options.k b/k8s/1.16/api/extensions/v1beta1/se_linux_strategy_options.k index 78a5b2da..945e2487 100644 --- a/k8s/1.16/api/extensions/v1beta1/se_linux_strategy_options.k +++ b/k8s/1.16/api/extensions/v1beta1/se_linux_strategy_options.k @@ -3,7 +3,7 @@ This is the se_linux_strategy_options module in k8s.api.extensions.v1beta1 packa 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 SELinuxStrategyOptions: @@ -14,13 +14,13 @@ schema SELinuxStrategyOptions: ---------- $rule : str, default is Undefined, required rule is the strategy that will dictate the allowable labels that may be set. - seLinuxOptions : v1.SELinuxOptions, default is Undefined, optional + seLinuxOptions : corev1.SELinuxOptions, default is Undefined, optional seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ """ $rule: str - seLinuxOptions?: v1.SELinuxOptions + seLinuxOptions?: corev1.SELinuxOptions diff --git a/k8s/1.16/api/networking/v1beta1/ingress_status.k b/k8s/1.16/api/networking/v1beta1/ingress_status.k index c10040b6..1b2e12db 100644 --- a/k8s/1.16/api/networking/v1beta1/ingress_status.k +++ b/k8s/1.16/api/networking/v1beta1/ingress_status.k @@ -3,7 +3,7 @@ This is the ingress_status module in k8s.api.networking.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 IngressStatus: @@ -12,11 +12,11 @@ schema IngressStatus: Attributes ---------- - loadBalancer : v1.LoadBalancerStatus, default is Undefined, optional + loadBalancer : corev1.LoadBalancerStatus, default is Undefined, optional LoadBalancer contains the current status of the load-balancer. """ - loadBalancer?: v1.LoadBalancerStatus + loadBalancer?: corev1.LoadBalancerStatus diff --git a/k8s/1.16/api/node/v1alpha1/scheduling.k b/k8s/1.16/api/node/v1alpha1/scheduling.k index 359ca2e9..b90cbcd9 100644 --- a/k8s/1.16/api/node/v1alpha1/scheduling.k +++ b/k8s/1.16/api/node/v1alpha1/scheduling.k @@ -3,7 +3,7 @@ This is the scheduling module in k8s.api.node.v1alpha1 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 Scheduling: @@ -14,13 +14,13 @@ schema Scheduling: ---------- nodeSelector : {str:str}, default is Undefined, optional nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - tolerations : [v1.Toleration], default is Undefined, optional + tolerations : [corev1.Toleration], default is Undefined, optional tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. """ nodeSelector?: {str:str} - tolerations?: [v1.Toleration] + tolerations?: [corev1.Toleration] diff --git a/k8s/1.16/api/node/v1beta1/scheduling.k b/k8s/1.16/api/node/v1beta1/scheduling.k index 21d7f359..5ef688e3 100644 --- a/k8s/1.16/api/node/v1beta1/scheduling.k +++ b/k8s/1.16/api/node/v1beta1/scheduling.k @@ -3,7 +3,7 @@ This is the scheduling module in k8s.api.node.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 Scheduling: @@ -14,13 +14,13 @@ schema Scheduling: ---------- nodeSelector : {str:str}, default is Undefined, optional nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - tolerations : [v1.Toleration], default is Undefined, optional + tolerations : [corev1.Toleration], default is Undefined, optional tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. """ nodeSelector?: {str:str} - tolerations?: [v1.Toleration] + tolerations?: [corev1.Toleration] diff --git a/k8s/1.16/api/policy/v1beta1/se_linux_strategy_options.k b/k8s/1.16/api/policy/v1beta1/se_linux_strategy_options.k index db38b01b..2ca9c4ad 100644 --- a/k8s/1.16/api/policy/v1beta1/se_linux_strategy_options.k +++ b/k8s/1.16/api/policy/v1beta1/se_linux_strategy_options.k @@ -3,7 +3,7 @@ This is the se_linux_strategy_options module in k8s.api.policy.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 SELinuxStrategyOptions: @@ -14,13 +14,13 @@ schema SELinuxStrategyOptions: ---------- $rule : str, default is Undefined, required rule is the strategy that will dictate the allowable labels that may be set. - seLinuxOptions : v1.SELinuxOptions, default is Undefined, optional + seLinuxOptions : corev1.SELinuxOptions, default is Undefined, optional seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ """ $rule: str - seLinuxOptions?: v1.SELinuxOptions + seLinuxOptions?: corev1.SELinuxOptions diff --git a/k8s/1.16/api/settings/v1alpha1/pod_preset_spec.k b/k8s/1.16/api/settings/v1alpha1/pod_preset_spec.k index ca854ff1..e6ee5b92 100644 --- a/k8s/1.16/api/settings/v1alpha1/pod_preset_spec.k +++ b/k8s/1.16/api/settings/v1alpha1/pod_preset_spec.k @@ -3,8 +3,8 @@ This is the pod_preset_spec module in k8s.api.settings.v1alpha1 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 apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema PodPresetSpec: @@ -13,27 +13,27 @@ schema PodPresetSpec: Attributes ---------- - env : [v1.EnvVar], default is Undefined, optional + env : [corev1.EnvVar], default is Undefined, optional Env defines the collection of EnvVar to inject into containers. - envFrom : [v1.EnvFromSource], default is Undefined, optional + envFrom : [corev1.EnvFromSource], default is Undefined, optional EnvFrom defines the collection of EnvFromSource to inject into containers. - selector : metaV1.LabelSelector, default is Undefined, optional + selector : metav1.LabelSelector, default is Undefined, optional Selector is a label query over a set of resources, in this case pods. Required. - volumeMounts : [v1.VolumeMount], default is Undefined, optional + volumeMounts : [corev1.VolumeMount], default is Undefined, optional VolumeMounts defines the collection of VolumeMount to inject into containers. - volumes : [v1.Volume], default is Undefined, optional + volumes : [corev1.Volume], default is Undefined, optional Volumes defines the collection of Volume to inject into the pod. """ - env?: [v1.EnvVar] + env?: [corev1.EnvVar] - envFrom?: [v1.EnvFromSource] + envFrom?: [corev1.EnvFromSource] - selector?: metaV1.LabelSelector + selector?: metav1.LabelSelector - volumeMounts?: [v1.VolumeMount] + volumeMounts?: [corev1.VolumeMount] - volumes?: [v1.Volume] + volumes?: [corev1.Volume] diff --git a/k8s/1.16/api/storage/v1/storage_class.k b/k8s/1.16/api/storage/v1/storage_class.k index 351af9b5..c6ef3db4 100644 --- a/k8s/1.16/api/storage/v1/storage_class.k +++ b/k8s/1.16/api/storage/v1/storage_class.k @@ -3,8 +3,8 @@ This is the storage_class module in k8s.api.storage.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 -import apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema StorageClass: @@ -17,13 +17,13 @@ schema StorageClass: ---------- allowVolumeExpansion : bool, default is Undefined, optional AllowVolumeExpansion shows whether the storage class allow volume expand - allowedTopologies : [v1.TopologySelectorTerm], default is Undefined, optional + allowedTopologies : [corev1.TopologySelectorTerm], default is Undefined, optional Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. apiVersion : str, default is "storage.k8s.io/v1", required APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources kind : str, default is "StorageClass", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata mountOptions : [str], default is Undefined, optional Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. @@ -40,13 +40,13 @@ schema StorageClass: allowVolumeExpansion?: bool - allowedTopologies?: [v1.TopologySelectorTerm] + allowedTopologies?: [corev1.TopologySelectorTerm] apiVersion: "storage.k8s.io/v1" = "storage.k8s.io/v1" kind: "StorageClass" = "StorageClass" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta mountOptions?: [str] diff --git a/k8s/1.16/api/storage/v1/volume_attachment_source.k b/k8s/1.16/api/storage/v1/volume_attachment_source.k index 1eeaf04b..2c984d96 100644 --- a/k8s/1.16/api/storage/v1/volume_attachment_source.k +++ b/k8s/1.16/api/storage/v1/volume_attachment_source.k @@ -3,7 +3,7 @@ This is the volume_attachment_source module in k8s.api.storage.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 +import api.core.v1 as corev1 schema VolumeAttachmentSource: @@ -12,14 +12,14 @@ schema VolumeAttachmentSource: Attributes ---------- - inlineVolumeSpec : v1.PersistentVolumeSpec, default is Undefined, optional + inlineVolumeSpec : corev1.PersistentVolumeSpec, default is Undefined, optional inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. persistentVolumeName : str, default is Undefined, optional Name of the persistent volume to attach. """ - inlineVolumeSpec?: v1.PersistentVolumeSpec + inlineVolumeSpec?: corev1.PersistentVolumeSpec persistentVolumeName?: str diff --git a/k8s/1.16/api/storage/v1alpha1/volume_attachment_source.k b/k8s/1.16/api/storage/v1alpha1/volume_attachment_source.k index 61209a6a..7e9611f9 100644 --- a/k8s/1.16/api/storage/v1alpha1/volume_attachment_source.k +++ b/k8s/1.16/api/storage/v1alpha1/volume_attachment_source.k @@ -3,7 +3,7 @@ This is the volume_attachment_source module in k8s.api.storage.v1alpha1 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 VolumeAttachmentSource: @@ -12,14 +12,14 @@ schema VolumeAttachmentSource: Attributes ---------- - inlineVolumeSpec : v1.PersistentVolumeSpec, default is Undefined, optional + inlineVolumeSpec : corev1.PersistentVolumeSpec, default is Undefined, optional inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. persistentVolumeName : str, default is Undefined, optional Name of the persistent volume to attach. """ - inlineVolumeSpec?: v1.PersistentVolumeSpec + inlineVolumeSpec?: corev1.PersistentVolumeSpec persistentVolumeName?: str diff --git a/k8s/1.16/api/storage/v1beta1/storage_class.k b/k8s/1.16/api/storage/v1beta1/storage_class.k index e0750fb3..c71261f8 100644 --- a/k8s/1.16/api/storage/v1beta1/storage_class.k +++ b/k8s/1.16/api/storage/v1beta1/storage_class.k @@ -3,8 +3,8 @@ This is the storage_class module in k8s.api.storage.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 apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema StorageClass: @@ -17,13 +17,13 @@ schema StorageClass: ---------- allowVolumeExpansion : bool, default is Undefined, optional AllowVolumeExpansion shows whether the storage class allow volume expand - allowedTopologies : [v1.TopologySelectorTerm], default is Undefined, optional + allowedTopologies : [corev1.TopologySelectorTerm], default is Undefined, optional Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. apiVersion : str, default is "storage.k8s.io/v1beta1", required APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources kind : str, default is "StorageClass", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata mountOptions : [str], default is Undefined, optional Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. @@ -40,13 +40,13 @@ schema StorageClass: allowVolumeExpansion?: bool - allowedTopologies?: [v1.TopologySelectorTerm] + allowedTopologies?: [corev1.TopologySelectorTerm] apiVersion: "storage.k8s.io/v1beta1" = "storage.k8s.io/v1beta1" kind: "StorageClass" = "StorageClass" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta mountOptions?: [str] diff --git a/k8s/1.16/api/storage/v1beta1/volume_attachment_source.k b/k8s/1.16/api/storage/v1beta1/volume_attachment_source.k index 44af59af..c35ab32c 100644 --- a/k8s/1.16/api/storage/v1beta1/volume_attachment_source.k +++ b/k8s/1.16/api/storage/v1beta1/volume_attachment_source.k @@ -3,7 +3,7 @@ This is the volume_attachment_source module in k8s.api.storage.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 VolumeAttachmentSource: @@ -12,14 +12,14 @@ schema VolumeAttachmentSource: Attributes ---------- - inlineVolumeSpec : v1.PersistentVolumeSpec, default is Undefined, optional + inlineVolumeSpec : corev1.PersistentVolumeSpec, default is Undefined, optional inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. persistentVolumeName : str, default is Undefined, optional Name of the persistent volume to attach. """ - inlineVolumeSpec?: v1.PersistentVolumeSpec + inlineVolumeSpec?: corev1.PersistentVolumeSpec persistentVolumeName?: str diff --git a/k8s/1.16/kcl.mod b/k8s/1.16/kcl.mod index 274141d6..54ab128d 100644 --- a/k8s/1.16/kcl.mod +++ b/k8s/1.16/kcl.mod @@ -1,5 +1,5 @@ [package] name = "k8s" edition = "*" -version = "1.16" +version = "1.16.1" description = "`k8s` is a KCL module contains all the built-in Kubernetes resource models (the CRDs are not included here)." diff --git a/k8s/1.17/api/apps/v1/daemon_set_spec.k b/k8s/1.17/api/apps/v1/daemon_set_spec.k index d26e3e9d..caf3faf8 100644 --- a/k8s/1.17/api/apps/v1/daemon_set_spec.k +++ b/k8s/1.17/api/apps/v1/daemon_set_spec.k @@ -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 @@ -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. @@ -32,7 +32,7 @@ schema DaemonSetSpec: selector: v1.LabelSelector - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: DaemonSetUpdateStrategy diff --git a/k8s/1.17/api/apps/v1/deployment_spec.k b/k8s/1.17/api/apps/v1/deployment_spec.k index 1bbe7887..b8591d9a 100644 --- a/k8s/1.17/api/apps/v1/deployment_spec.k +++ b/k8s/1.17/api/apps/v1/deployment_spec.k @@ -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 @@ -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. """ @@ -46,6 +46,6 @@ schema DeploymentSpec: strategy?: DeploymentStrategy - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec diff --git a/k8s/1.17/api/apps/v1/replica_set_spec.k b/k8s/1.17/api/apps/v1/replica_set_spec.k index a1572bc1..700810d3 100644 --- a/k8s/1.17/api/apps/v1/replica_set_spec.k +++ b/k8s/1.17/api/apps/v1/replica_set_spec.k @@ -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 @@ -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 """ @@ -30,6 +30,6 @@ schema ReplicaSetSpec: selector: v1.LabelSelector - template?: coreV1.PodTemplateSpec + template?: corev1.PodTemplateSpec diff --git a/k8s/1.17/api/apps/v1/stateful_set_spec.k b/k8s/1.17/api/apps/v1/stateful_set_spec.k index d4f4c3f3..4deeb5ed 100644 --- a/k8s/1.17/api/apps/v1/stateful_set_spec.k +++ b/k8s/1.17/api/apps/v1/stateful_set_spec.k @@ -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 @@ -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. """ @@ -42,10 +42,10 @@ schema StatefulSetSpec: serviceName: str - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: StatefulSetUpdateStrategy - volumeClaimTemplates?: [coreV1.PersistentVolumeClaim] + volumeClaimTemplates?: [corev1.PersistentVolumeClaim] diff --git a/k8s/1.17/api/apps/v1beta1/deployment_spec.k b/k8s/1.17/api/apps/v1beta1/deployment_spec.k index 76cb1c12..89bb0162 100644 --- a/k8s/1.17/api/apps/v1beta1/deployment_spec.k +++ b/k8s/1.17/api/apps/v1beta1/deployment_spec.k @@ -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 @@ -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. """ @@ -50,6 +50,6 @@ schema DeploymentSpec: strategy?: DeploymentStrategy - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec diff --git a/k8s/1.17/api/apps/v1beta1/stateful_set_spec.k b/k8s/1.17/api/apps/v1beta1/stateful_set_spec.k index 62acdf79..cc43f136 100644 --- a/k8s/1.17/api/apps/v1beta1/stateful_set_spec.k +++ b/k8s/1.17/api/apps/v1beta1/stateful_set_spec.k @@ -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 @@ -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. """ @@ -42,10 +42,10 @@ schema StatefulSetSpec: serviceName: str - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: StatefulSetUpdateStrategy - volumeClaimTemplates?: [coreV1.PersistentVolumeClaim] + volumeClaimTemplates?: [corev1.PersistentVolumeClaim] diff --git a/k8s/1.17/api/apps/v1beta2/daemon_set_spec.k b/k8s/1.17/api/apps/v1beta2/daemon_set_spec.k index 822e2c22..7cd0be12 100644 --- a/k8s/1.17/api/apps/v1beta2/daemon_set_spec.k +++ b/k8s/1.17/api/apps/v1beta2/daemon_set_spec.k @@ -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 @@ -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. @@ -32,7 +32,7 @@ schema DaemonSetSpec: selector: v1.LabelSelector - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: DaemonSetUpdateStrategy diff --git a/k8s/1.17/api/apps/v1beta2/deployment_spec.k b/k8s/1.17/api/apps/v1beta2/deployment_spec.k index 82ec52a5..6564c983 100644 --- a/k8s/1.17/api/apps/v1beta2/deployment_spec.k +++ b/k8s/1.17/api/apps/v1beta2/deployment_spec.k @@ -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 @@ -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. """ @@ -46,6 +46,6 @@ schema DeploymentSpec: strategy?: DeploymentStrategy - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec diff --git a/k8s/1.17/api/apps/v1beta2/replica_set_spec.k b/k8s/1.17/api/apps/v1beta2/replica_set_spec.k index 8e594b56..c9451b61 100644 --- a/k8s/1.17/api/apps/v1beta2/replica_set_spec.k +++ b/k8s/1.17/api/apps/v1beta2/replica_set_spec.k @@ -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 @@ -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 """ @@ -30,6 +30,6 @@ schema ReplicaSetSpec: selector: v1.LabelSelector - template?: coreV1.PodTemplateSpec + template?: corev1.PodTemplateSpec diff --git a/k8s/1.17/api/apps/v1beta2/stateful_set_spec.k b/k8s/1.17/api/apps/v1beta2/stateful_set_spec.k index 7d91035f..52e2b106 100644 --- a/k8s/1.17/api/apps/v1beta2/stateful_set_spec.k +++ b/k8s/1.17/api/apps/v1beta2/stateful_set_spec.k @@ -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 @@ -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. """ @@ -42,10 +42,10 @@ schema StatefulSetSpec: serviceName: str - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: StatefulSetUpdateStrategy - volumeClaimTemplates?: [coreV1.PersistentVolumeClaim] + volumeClaimTemplates?: [corev1.PersistentVolumeClaim] diff --git a/k8s/1.17/api/batch/v1/job_spec.k b/k8s/1.17/api/batch/v1/job_spec.k index 42baa957..085f981e 100644 --- a/k8s/1.17/api/batch/v1/job_spec.k +++ b/k8s/1.17/api/batch/v1/job_spec.k @@ -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 @@ -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. @@ -44,7 +44,7 @@ schema JobSpec: selector?: v1.LabelSelector - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec ttlSecondsAfterFinished?: int diff --git a/k8s/1.17/api/batch/v1beta1/cron_job_status.k b/k8s/1.17/api/batch/v1beta1/cron_job_status.k index 61f4642c..d4cad078 100644 --- a/k8s/1.17/api/batch/v1beta1/cron_job_status.k +++ b/k8s/1.17/api/batch/v1beta1/cron_job_status.k @@ -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: @@ -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?: [corev1.ObjectReference] lastScheduleTime?: str diff --git a/k8s/1.17/api/batch/v2alpha1/cron_job_status.k b/k8s/1.17/api/batch/v2alpha1/cron_job_status.k index 697a04d0..6d7045c0 100644 --- a/k8s/1.17/api/batch/v2alpha1/cron_job_status.k +++ b/k8s/1.17/api/batch/v2alpha1/cron_job_status.k @@ -3,7 +3,7 @@ This is the cron_job_status module in k8s.api.batch.v2alpha1 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: @@ -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?: [corev1.ObjectReference] lastScheduleTime?: str diff --git a/k8s/1.17/api/discovery/v1beta1/endpoint.k b/k8s/1.17/api/discovery/v1beta1/endpoint.k index c03a1d04..b1eaf801 100644 --- a/k8s/1.17/api/discovery/v1beta1/endpoint.k +++ b/k8s/1.17/api/discovery/v1beta1/endpoint.k @@ -3,7 +3,7 @@ This is the endpoint module in k8s.api.discovery.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 Endpoint: @@ -18,7 +18,7 @@ schema Endpoint: conditions contains information about the current status of the endpoint. hostname : str, default is Undefined, optional hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must pass DNS Label (RFC 1123) validation. - targetRef : v1.ObjectReference, default is Undefined, optional + targetRef : corev1.ObjectReference, default is Undefined, optional targetRef is a reference to a Kubernetes object that represents this endpoint. topology : {str:str}, default is Undefined, optional topology contains arbitrary topology information associated with the endpoint. These key/value pairs must conform with the label format. https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Topology may include a maximum of 16 key/value pairs. This includes, but is not limited to the following well known keys: * kubernetes.io/hostname: the value indicates the hostname of the node @@ -37,7 +37,7 @@ schema Endpoint: hostname?: str - targetRef?: v1.ObjectReference + targetRef?: corev1.ObjectReference topology?: {str:str} diff --git a/k8s/1.17/api/events/v1beta1/event.k b/k8s/1.17/api/events/v1beta1/event.k index 272495e6..037de626 100644 --- a/k8s/1.17/api/events/v1beta1/event.k +++ b/k8s/1.17/api/events/v1beta1/event.k @@ -3,8 +3,8 @@ This is the event module in k8s.api.events.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 apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema Event: @@ -23,21 +23,21 @@ schema Event: Deprecated field assuring backward compatibility with core.v1 Event type deprecatedLastTimestamp : str, default is Undefined, optional Deprecated field assuring backward compatibility with core.v1 Event type - deprecatedSource : v1.EventSource, default is Undefined, optional + deprecatedSource : corev1.EventSource, default is Undefined, optional Deprecated field assuring backward compatibility with core.v1 Event type eventTime : str, default is Undefined, required Required. Time when this Event was first observed. kind : str, default is "Event", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional metadata note : str, default is Undefined, optional Optional. A human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. reason : str, default is Undefined, optional Why the action was taken. - regarding : v1.ObjectReference, default is Undefined, optional + regarding : corev1.ObjectReference, default is Undefined, optional The object this Event is about. In most cases it's an Object reporting controller implements. E.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. - related : v1.ObjectReference, default is Undefined, optional + related : corev1.ObjectReference, default is Undefined, optional Optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. reportingController : str, default is Undefined, optional Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. @@ -60,21 +60,21 @@ schema Event: deprecatedLastTimestamp?: str - deprecatedSource?: v1.EventSource + deprecatedSource?: corev1.EventSource eventTime: str kind: "Event" = "Event" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta note?: str reason?: str - regarding?: v1.ObjectReference + regarding?: corev1.ObjectReference - related?: v1.ObjectReference + related?: corev1.ObjectReference reportingController?: str diff --git a/k8s/1.17/api/extensions/v1beta1/daemon_set_spec.k b/k8s/1.17/api/extensions/v1beta1/daemon_set_spec.k index b51ce3f7..5deae760 100644 --- a/k8s/1.17/api/extensions/v1beta1/daemon_set_spec.k +++ b/k8s/1.17/api/extensions/v1beta1/daemon_set_spec.k @@ -3,7 +3,7 @@ This is the daemon_set_spec module in k8s.api.extensions.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 @@ -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, optional A label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. 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 templateGeneration : int, default is Undefined, optional DEPRECATED. A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation. @@ -34,7 +34,7 @@ schema DaemonSetSpec: selector?: v1.LabelSelector - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec templateGeneration?: int diff --git a/k8s/1.17/api/extensions/v1beta1/deployment_spec.k b/k8s/1.17/api/extensions/v1beta1/deployment_spec.k index d8d77162..b6c56ad6 100644 --- a/k8s/1.17/api/extensions/v1beta1/deployment_spec.k +++ b/k8s/1.17/api/extensions/v1beta1/deployment_spec.k @@ -3,7 +3,7 @@ This is the deployment_spec module in k8s.api.extensions.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 @@ -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. """ @@ -50,6 +50,6 @@ schema DeploymentSpec: strategy?: DeploymentStrategy - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec diff --git a/k8s/1.17/api/extensions/v1beta1/ingress_status.k b/k8s/1.17/api/extensions/v1beta1/ingress_status.k index 6b11cc52..7a5493ef 100644 --- a/k8s/1.17/api/extensions/v1beta1/ingress_status.k +++ b/k8s/1.17/api/extensions/v1beta1/ingress_status.k @@ -3,7 +3,7 @@ This is the ingress_status module in k8s.api.extensions.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 IngressStatus: @@ -12,11 +12,11 @@ schema IngressStatus: Attributes ---------- - loadBalancer : v1.LoadBalancerStatus, default is Undefined, optional + loadBalancer : corev1.LoadBalancerStatus, default is Undefined, optional LoadBalancer contains the current status of the load-balancer. """ - loadBalancer?: v1.LoadBalancerStatus + loadBalancer?: corev1.LoadBalancerStatus diff --git a/k8s/1.17/api/extensions/v1beta1/replica_set_spec.k b/k8s/1.17/api/extensions/v1beta1/replica_set_spec.k index 9a829eca..9907b96b 100644 --- a/k8s/1.17/api/extensions/v1beta1/replica_set_spec.k +++ b/k8s/1.17/api/extensions/v1beta1/replica_set_spec.k @@ -3,7 +3,7 @@ This is the replica_set_spec module in k8s.api.extensions.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 @@ -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, optional Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. 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 """ @@ -30,6 +30,6 @@ schema ReplicaSetSpec: selector?: v1.LabelSelector - template?: coreV1.PodTemplateSpec + template?: corev1.PodTemplateSpec diff --git a/k8s/1.17/api/extensions/v1beta1/se_linux_strategy_options.k b/k8s/1.17/api/extensions/v1beta1/se_linux_strategy_options.k index 78a5b2da..945e2487 100644 --- a/k8s/1.17/api/extensions/v1beta1/se_linux_strategy_options.k +++ b/k8s/1.17/api/extensions/v1beta1/se_linux_strategy_options.k @@ -3,7 +3,7 @@ This is the se_linux_strategy_options module in k8s.api.extensions.v1beta1 packa 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 SELinuxStrategyOptions: @@ -14,13 +14,13 @@ schema SELinuxStrategyOptions: ---------- $rule : str, default is Undefined, required rule is the strategy that will dictate the allowable labels that may be set. - seLinuxOptions : v1.SELinuxOptions, default is Undefined, optional + seLinuxOptions : corev1.SELinuxOptions, default is Undefined, optional seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ """ $rule: str - seLinuxOptions?: v1.SELinuxOptions + seLinuxOptions?: corev1.SELinuxOptions diff --git a/k8s/1.17/api/networking/v1beta1/ingress_status.k b/k8s/1.17/api/networking/v1beta1/ingress_status.k index c10040b6..1b2e12db 100644 --- a/k8s/1.17/api/networking/v1beta1/ingress_status.k +++ b/k8s/1.17/api/networking/v1beta1/ingress_status.k @@ -3,7 +3,7 @@ This is the ingress_status module in k8s.api.networking.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 IngressStatus: @@ -12,11 +12,11 @@ schema IngressStatus: Attributes ---------- - loadBalancer : v1.LoadBalancerStatus, default is Undefined, optional + loadBalancer : corev1.LoadBalancerStatus, default is Undefined, optional LoadBalancer contains the current status of the load-balancer. """ - loadBalancer?: v1.LoadBalancerStatus + loadBalancer?: corev1.LoadBalancerStatus diff --git a/k8s/1.17/api/node/v1alpha1/scheduling.k b/k8s/1.17/api/node/v1alpha1/scheduling.k index 359ca2e9..b90cbcd9 100644 --- a/k8s/1.17/api/node/v1alpha1/scheduling.k +++ b/k8s/1.17/api/node/v1alpha1/scheduling.k @@ -3,7 +3,7 @@ This is the scheduling module in k8s.api.node.v1alpha1 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 Scheduling: @@ -14,13 +14,13 @@ schema Scheduling: ---------- nodeSelector : {str:str}, default is Undefined, optional nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - tolerations : [v1.Toleration], default is Undefined, optional + tolerations : [corev1.Toleration], default is Undefined, optional tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. """ nodeSelector?: {str:str} - tolerations?: [v1.Toleration] + tolerations?: [corev1.Toleration] diff --git a/k8s/1.17/api/node/v1beta1/scheduling.k b/k8s/1.17/api/node/v1beta1/scheduling.k index 21d7f359..5ef688e3 100644 --- a/k8s/1.17/api/node/v1beta1/scheduling.k +++ b/k8s/1.17/api/node/v1beta1/scheduling.k @@ -3,7 +3,7 @@ This is the scheduling module in k8s.api.node.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 Scheduling: @@ -14,13 +14,13 @@ schema Scheduling: ---------- nodeSelector : {str:str}, default is Undefined, optional nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - tolerations : [v1.Toleration], default is Undefined, optional + tolerations : [corev1.Toleration], default is Undefined, optional tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. """ nodeSelector?: {str:str} - tolerations?: [v1.Toleration] + tolerations?: [corev1.Toleration] diff --git a/k8s/1.17/api/policy/v1beta1/se_linux_strategy_options.k b/k8s/1.17/api/policy/v1beta1/se_linux_strategy_options.k index db38b01b..2ca9c4ad 100644 --- a/k8s/1.17/api/policy/v1beta1/se_linux_strategy_options.k +++ b/k8s/1.17/api/policy/v1beta1/se_linux_strategy_options.k @@ -3,7 +3,7 @@ This is the se_linux_strategy_options module in k8s.api.policy.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 SELinuxStrategyOptions: @@ -14,13 +14,13 @@ schema SELinuxStrategyOptions: ---------- $rule : str, default is Undefined, required rule is the strategy that will dictate the allowable labels that may be set. - seLinuxOptions : v1.SELinuxOptions, default is Undefined, optional + seLinuxOptions : corev1.SELinuxOptions, default is Undefined, optional seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ """ $rule: str - seLinuxOptions?: v1.SELinuxOptions + seLinuxOptions?: corev1.SELinuxOptions diff --git a/k8s/1.17/api/settings/v1alpha1/pod_preset_spec.k b/k8s/1.17/api/settings/v1alpha1/pod_preset_spec.k index ca854ff1..e6ee5b92 100644 --- a/k8s/1.17/api/settings/v1alpha1/pod_preset_spec.k +++ b/k8s/1.17/api/settings/v1alpha1/pod_preset_spec.k @@ -3,8 +3,8 @@ This is the pod_preset_spec module in k8s.api.settings.v1alpha1 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 apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema PodPresetSpec: @@ -13,27 +13,27 @@ schema PodPresetSpec: Attributes ---------- - env : [v1.EnvVar], default is Undefined, optional + env : [corev1.EnvVar], default is Undefined, optional Env defines the collection of EnvVar to inject into containers. - envFrom : [v1.EnvFromSource], default is Undefined, optional + envFrom : [corev1.EnvFromSource], default is Undefined, optional EnvFrom defines the collection of EnvFromSource to inject into containers. - selector : metaV1.LabelSelector, default is Undefined, optional + selector : metav1.LabelSelector, default is Undefined, optional Selector is a label query over a set of resources, in this case pods. Required. - volumeMounts : [v1.VolumeMount], default is Undefined, optional + volumeMounts : [corev1.VolumeMount], default is Undefined, optional VolumeMounts defines the collection of VolumeMount to inject into containers. - volumes : [v1.Volume], default is Undefined, optional + volumes : [corev1.Volume], default is Undefined, optional Volumes defines the collection of Volume to inject into the pod. """ - env?: [v1.EnvVar] + env?: [corev1.EnvVar] - envFrom?: [v1.EnvFromSource] + envFrom?: [corev1.EnvFromSource] - selector?: metaV1.LabelSelector + selector?: metav1.LabelSelector - volumeMounts?: [v1.VolumeMount] + volumeMounts?: [corev1.VolumeMount] - volumes?: [v1.Volume] + volumes?: [corev1.Volume] diff --git a/k8s/1.17/api/storage/v1/storage_class.k b/k8s/1.17/api/storage/v1/storage_class.k index 351af9b5..c6ef3db4 100644 --- a/k8s/1.17/api/storage/v1/storage_class.k +++ b/k8s/1.17/api/storage/v1/storage_class.k @@ -3,8 +3,8 @@ This is the storage_class module in k8s.api.storage.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 -import apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema StorageClass: @@ -17,13 +17,13 @@ schema StorageClass: ---------- allowVolumeExpansion : bool, default is Undefined, optional AllowVolumeExpansion shows whether the storage class allow volume expand - allowedTopologies : [v1.TopologySelectorTerm], default is Undefined, optional + allowedTopologies : [corev1.TopologySelectorTerm], default is Undefined, optional Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. apiVersion : str, default is "storage.k8s.io/v1", required APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources kind : str, default is "StorageClass", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata mountOptions : [str], default is Undefined, optional Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. @@ -40,13 +40,13 @@ schema StorageClass: allowVolumeExpansion?: bool - allowedTopologies?: [v1.TopologySelectorTerm] + allowedTopologies?: [corev1.TopologySelectorTerm] apiVersion: "storage.k8s.io/v1" = "storage.k8s.io/v1" kind: "StorageClass" = "StorageClass" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta mountOptions?: [str] diff --git a/k8s/1.17/api/storage/v1/volume_attachment_source.k b/k8s/1.17/api/storage/v1/volume_attachment_source.k index 1eeaf04b..2c984d96 100644 --- a/k8s/1.17/api/storage/v1/volume_attachment_source.k +++ b/k8s/1.17/api/storage/v1/volume_attachment_source.k @@ -3,7 +3,7 @@ This is the volume_attachment_source module in k8s.api.storage.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 +import api.core.v1 as corev1 schema VolumeAttachmentSource: @@ -12,14 +12,14 @@ schema VolumeAttachmentSource: Attributes ---------- - inlineVolumeSpec : v1.PersistentVolumeSpec, default is Undefined, optional + inlineVolumeSpec : corev1.PersistentVolumeSpec, default is Undefined, optional inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. persistentVolumeName : str, default is Undefined, optional Name of the persistent volume to attach. """ - inlineVolumeSpec?: v1.PersistentVolumeSpec + inlineVolumeSpec?: corev1.PersistentVolumeSpec persistentVolumeName?: str diff --git a/k8s/1.17/api/storage/v1alpha1/volume_attachment_source.k b/k8s/1.17/api/storage/v1alpha1/volume_attachment_source.k index 61209a6a..7e9611f9 100644 --- a/k8s/1.17/api/storage/v1alpha1/volume_attachment_source.k +++ b/k8s/1.17/api/storage/v1alpha1/volume_attachment_source.k @@ -3,7 +3,7 @@ This is the volume_attachment_source module in k8s.api.storage.v1alpha1 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 VolumeAttachmentSource: @@ -12,14 +12,14 @@ schema VolumeAttachmentSource: Attributes ---------- - inlineVolumeSpec : v1.PersistentVolumeSpec, default is Undefined, optional + inlineVolumeSpec : corev1.PersistentVolumeSpec, default is Undefined, optional inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. persistentVolumeName : str, default is Undefined, optional Name of the persistent volume to attach. """ - inlineVolumeSpec?: v1.PersistentVolumeSpec + inlineVolumeSpec?: corev1.PersistentVolumeSpec persistentVolumeName?: str diff --git a/k8s/1.17/api/storage/v1beta1/storage_class.k b/k8s/1.17/api/storage/v1beta1/storage_class.k index e0750fb3..c71261f8 100644 --- a/k8s/1.17/api/storage/v1beta1/storage_class.k +++ b/k8s/1.17/api/storage/v1beta1/storage_class.k @@ -3,8 +3,8 @@ This is the storage_class module in k8s.api.storage.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 apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema StorageClass: @@ -17,13 +17,13 @@ schema StorageClass: ---------- allowVolumeExpansion : bool, default is Undefined, optional AllowVolumeExpansion shows whether the storage class allow volume expand - allowedTopologies : [v1.TopologySelectorTerm], default is Undefined, optional + allowedTopologies : [corev1.TopologySelectorTerm], default is Undefined, optional Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. apiVersion : str, default is "storage.k8s.io/v1beta1", required APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources kind : str, default is "StorageClass", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata mountOptions : [str], default is Undefined, optional Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. @@ -40,13 +40,13 @@ schema StorageClass: allowVolumeExpansion?: bool - allowedTopologies?: [v1.TopologySelectorTerm] + allowedTopologies?: [corev1.TopologySelectorTerm] apiVersion: "storage.k8s.io/v1beta1" = "storage.k8s.io/v1beta1" kind: "StorageClass" = "StorageClass" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta mountOptions?: [str] diff --git a/k8s/1.17/api/storage/v1beta1/volume_attachment_source.k b/k8s/1.17/api/storage/v1beta1/volume_attachment_source.k index 44af59af..c35ab32c 100644 --- a/k8s/1.17/api/storage/v1beta1/volume_attachment_source.k +++ b/k8s/1.17/api/storage/v1beta1/volume_attachment_source.k @@ -3,7 +3,7 @@ This is the volume_attachment_source module in k8s.api.storage.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 VolumeAttachmentSource: @@ -12,14 +12,14 @@ schema VolumeAttachmentSource: Attributes ---------- - inlineVolumeSpec : v1.PersistentVolumeSpec, default is Undefined, optional + inlineVolumeSpec : corev1.PersistentVolumeSpec, default is Undefined, optional inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. persistentVolumeName : str, default is Undefined, optional Name of the persistent volume to attach. """ - inlineVolumeSpec?: v1.PersistentVolumeSpec + inlineVolumeSpec?: corev1.PersistentVolumeSpec persistentVolumeName?: str diff --git a/k8s/1.17/kcl.mod b/k8s/1.17/kcl.mod index c1645eaf..7fc47463 100644 --- a/k8s/1.17/kcl.mod +++ b/k8s/1.17/kcl.mod @@ -1,5 +1,5 @@ [package] name = "k8s" edition = "*" -version = "1.17" +version = "1.17.1" description = "`k8s` is a KCL module contains all the built-in Kubernetes resource models (the CRDs are not included here)." diff --git a/k8s/1.18/api/apps/v1/daemon_set_spec.k b/k8s/1.18/api/apps/v1/daemon_set_spec.k index d26e3e9d..caf3faf8 100644 --- a/k8s/1.18/api/apps/v1/daemon_set_spec.k +++ b/k8s/1.18/api/apps/v1/daemon_set_spec.k @@ -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 @@ -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. @@ -32,7 +32,7 @@ schema DaemonSetSpec: selector: v1.LabelSelector - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: DaemonSetUpdateStrategy diff --git a/k8s/1.18/api/apps/v1/deployment_spec.k b/k8s/1.18/api/apps/v1/deployment_spec.k index 1bbe7887..b8591d9a 100644 --- a/k8s/1.18/api/apps/v1/deployment_spec.k +++ b/k8s/1.18/api/apps/v1/deployment_spec.k @@ -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 @@ -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. """ @@ -46,6 +46,6 @@ schema DeploymentSpec: strategy?: DeploymentStrategy - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec diff --git a/k8s/1.18/api/apps/v1/replica_set_spec.k b/k8s/1.18/api/apps/v1/replica_set_spec.k index a1572bc1..700810d3 100644 --- a/k8s/1.18/api/apps/v1/replica_set_spec.k +++ b/k8s/1.18/api/apps/v1/replica_set_spec.k @@ -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 @@ -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 """ @@ -30,6 +30,6 @@ schema ReplicaSetSpec: selector: v1.LabelSelector - template?: coreV1.PodTemplateSpec + template?: corev1.PodTemplateSpec diff --git a/k8s/1.18/api/apps/v1/stateful_set_spec.k b/k8s/1.18/api/apps/v1/stateful_set_spec.k index d4f4c3f3..4deeb5ed 100644 --- a/k8s/1.18/api/apps/v1/stateful_set_spec.k +++ b/k8s/1.18/api/apps/v1/stateful_set_spec.k @@ -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 @@ -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. """ @@ -42,10 +42,10 @@ schema StatefulSetSpec: serviceName: str - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: StatefulSetUpdateStrategy - volumeClaimTemplates?: [coreV1.PersistentVolumeClaim] + volumeClaimTemplates?: [corev1.PersistentVolumeClaim] diff --git a/k8s/1.18/api/batch/v1/job_spec.k b/k8s/1.18/api/batch/v1/job_spec.k index 42baa957..085f981e 100644 --- a/k8s/1.18/api/batch/v1/job_spec.k +++ b/k8s/1.18/api/batch/v1/job_spec.k @@ -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 @@ -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. @@ -44,7 +44,7 @@ schema JobSpec: selector?: v1.LabelSelector - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec ttlSecondsAfterFinished?: int diff --git a/k8s/1.18/api/batch/v1beta1/cron_job_status.k b/k8s/1.18/api/batch/v1beta1/cron_job_status.k index 61f4642c..d4cad078 100644 --- a/k8s/1.18/api/batch/v1beta1/cron_job_status.k +++ b/k8s/1.18/api/batch/v1beta1/cron_job_status.k @@ -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: @@ -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?: [corev1.ObjectReference] lastScheduleTime?: str diff --git a/k8s/1.18/api/batch/v2alpha1/cron_job_status.k b/k8s/1.18/api/batch/v2alpha1/cron_job_status.k index 697a04d0..6d7045c0 100644 --- a/k8s/1.18/api/batch/v2alpha1/cron_job_status.k +++ b/k8s/1.18/api/batch/v2alpha1/cron_job_status.k @@ -3,7 +3,7 @@ This is the cron_job_status module in k8s.api.batch.v2alpha1 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: @@ -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?: [corev1.ObjectReference] lastScheduleTime?: str diff --git a/k8s/1.18/api/discovery/v1beta1/endpoint.k b/k8s/1.18/api/discovery/v1beta1/endpoint.k index c03a1d04..b1eaf801 100644 --- a/k8s/1.18/api/discovery/v1beta1/endpoint.k +++ b/k8s/1.18/api/discovery/v1beta1/endpoint.k @@ -3,7 +3,7 @@ This is the endpoint module in k8s.api.discovery.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 Endpoint: @@ -18,7 +18,7 @@ schema Endpoint: conditions contains information about the current status of the endpoint. hostname : str, default is Undefined, optional hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must pass DNS Label (RFC 1123) validation. - targetRef : v1.ObjectReference, default is Undefined, optional + targetRef : corev1.ObjectReference, default is Undefined, optional targetRef is a reference to a Kubernetes object that represents this endpoint. topology : {str:str}, default is Undefined, optional topology contains arbitrary topology information associated with the endpoint. These key/value pairs must conform with the label format. https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Topology may include a maximum of 16 key/value pairs. This includes, but is not limited to the following well known keys: * kubernetes.io/hostname: the value indicates the hostname of the node @@ -37,7 +37,7 @@ schema Endpoint: hostname?: str - targetRef?: v1.ObjectReference + targetRef?: corev1.ObjectReference topology?: {str:str} diff --git a/k8s/1.18/api/events/v1beta1/event.k b/k8s/1.18/api/events/v1beta1/event.k index 272495e6..037de626 100644 --- a/k8s/1.18/api/events/v1beta1/event.k +++ b/k8s/1.18/api/events/v1beta1/event.k @@ -3,8 +3,8 @@ This is the event module in k8s.api.events.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 apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema Event: @@ -23,21 +23,21 @@ schema Event: Deprecated field assuring backward compatibility with core.v1 Event type deprecatedLastTimestamp : str, default is Undefined, optional Deprecated field assuring backward compatibility with core.v1 Event type - deprecatedSource : v1.EventSource, default is Undefined, optional + deprecatedSource : corev1.EventSource, default is Undefined, optional Deprecated field assuring backward compatibility with core.v1 Event type eventTime : str, default is Undefined, required Required. Time when this Event was first observed. kind : str, default is "Event", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional metadata note : str, default is Undefined, optional Optional. A human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. reason : str, default is Undefined, optional Why the action was taken. - regarding : v1.ObjectReference, default is Undefined, optional + regarding : corev1.ObjectReference, default is Undefined, optional The object this Event is about. In most cases it's an Object reporting controller implements. E.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. - related : v1.ObjectReference, default is Undefined, optional + related : corev1.ObjectReference, default is Undefined, optional Optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. reportingController : str, default is Undefined, optional Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. @@ -60,21 +60,21 @@ schema Event: deprecatedLastTimestamp?: str - deprecatedSource?: v1.EventSource + deprecatedSource?: corev1.EventSource eventTime: str kind: "Event" = "Event" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta note?: str reason?: str - regarding?: v1.ObjectReference + regarding?: corev1.ObjectReference - related?: v1.ObjectReference + related?: corev1.ObjectReference reportingController?: str diff --git a/k8s/1.18/api/extensions/v1beta1/ingress_backend.k b/k8s/1.18/api/extensions/v1beta1/ingress_backend.k index 260165d4..05e9987d 100644 --- a/k8s/1.18/api/extensions/v1beta1/ingress_backend.k +++ b/k8s/1.18/api/extensions/v1beta1/ingress_backend.k @@ -3,7 +3,7 @@ This is the ingress_backend module in k8s.api.extensions.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 IngressBackend: @@ -12,7 +12,7 @@ schema IngressBackend: Attributes ---------- - resource : v1.TypedLocalObjectReference, default is Undefined, optional + resource : corev1.TypedLocalObjectReference, default is Undefined, optional Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, serviceName and servicePort must not be specified. serviceName : str, default is Undefined, optional Specifies the name of the referenced service. @@ -21,7 +21,7 @@ schema IngressBackend: """ - resource?: v1.TypedLocalObjectReference + resource?: corev1.TypedLocalObjectReference serviceName?: str diff --git a/k8s/1.18/api/extensions/v1beta1/ingress_status.k b/k8s/1.18/api/extensions/v1beta1/ingress_status.k index 6b11cc52..7a5493ef 100644 --- a/k8s/1.18/api/extensions/v1beta1/ingress_status.k +++ b/k8s/1.18/api/extensions/v1beta1/ingress_status.k @@ -3,7 +3,7 @@ This is the ingress_status module in k8s.api.extensions.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 IngressStatus: @@ -12,11 +12,11 @@ schema IngressStatus: Attributes ---------- - loadBalancer : v1.LoadBalancerStatus, default is Undefined, optional + loadBalancer : corev1.LoadBalancerStatus, default is Undefined, optional LoadBalancer contains the current status of the load-balancer. """ - loadBalancer?: v1.LoadBalancerStatus + loadBalancer?: corev1.LoadBalancerStatus diff --git a/k8s/1.18/api/networking/v1beta1/ingress_backend.k b/k8s/1.18/api/networking/v1beta1/ingress_backend.k index 76ead8ff..ee7b62c0 100644 --- a/k8s/1.18/api/networking/v1beta1/ingress_backend.k +++ b/k8s/1.18/api/networking/v1beta1/ingress_backend.k @@ -3,7 +3,7 @@ This is the ingress_backend module in k8s.api.networking.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 IngressBackend: @@ -12,7 +12,7 @@ schema IngressBackend: Attributes ---------- - resource : v1.TypedLocalObjectReference, default is Undefined, optional + resource : corev1.TypedLocalObjectReference, default is Undefined, optional Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, serviceName and servicePort must not be specified. serviceName : str, default is Undefined, optional Specifies the name of the referenced service. @@ -21,7 +21,7 @@ schema IngressBackend: """ - resource?: v1.TypedLocalObjectReference + resource?: corev1.TypedLocalObjectReference serviceName?: str diff --git a/k8s/1.18/api/networking/v1beta1/ingress_class_spec.k b/k8s/1.18/api/networking/v1beta1/ingress_class_spec.k index 5faa794b..57e1fd96 100644 --- a/k8s/1.18/api/networking/v1beta1/ingress_class_spec.k +++ b/k8s/1.18/api/networking/v1beta1/ingress_class_spec.k @@ -3,7 +3,7 @@ This is the ingress_class_spec module in k8s.api.networking.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 IngressClassSpec: @@ -14,13 +14,13 @@ schema IngressClassSpec: ---------- controller : str, default is Undefined, optional Controller refers to the name of the controller that should handle this class. This allows for different "flavors" that are controlled by the same controller. For example, you may have different Parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. "acme.io/ingress-controller". This field is immutable. - parameters : v1.TypedLocalObjectReference, default is Undefined, optional + parameters : corev1.TypedLocalObjectReference, default is Undefined, optional Parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters. """ controller?: str - parameters?: v1.TypedLocalObjectReference + parameters?: corev1.TypedLocalObjectReference diff --git a/k8s/1.18/api/networking/v1beta1/ingress_status.k b/k8s/1.18/api/networking/v1beta1/ingress_status.k index c10040b6..1b2e12db 100644 --- a/k8s/1.18/api/networking/v1beta1/ingress_status.k +++ b/k8s/1.18/api/networking/v1beta1/ingress_status.k @@ -3,7 +3,7 @@ This is the ingress_status module in k8s.api.networking.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 IngressStatus: @@ -12,11 +12,11 @@ schema IngressStatus: Attributes ---------- - loadBalancer : v1.LoadBalancerStatus, default is Undefined, optional + loadBalancer : corev1.LoadBalancerStatus, default is Undefined, optional LoadBalancer contains the current status of the load-balancer. """ - loadBalancer?: v1.LoadBalancerStatus + loadBalancer?: corev1.LoadBalancerStatus diff --git a/k8s/1.18/api/node/v1alpha1/scheduling.k b/k8s/1.18/api/node/v1alpha1/scheduling.k index 359ca2e9..b90cbcd9 100644 --- a/k8s/1.18/api/node/v1alpha1/scheduling.k +++ b/k8s/1.18/api/node/v1alpha1/scheduling.k @@ -3,7 +3,7 @@ This is the scheduling module in k8s.api.node.v1alpha1 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 Scheduling: @@ -14,13 +14,13 @@ schema Scheduling: ---------- nodeSelector : {str:str}, default is Undefined, optional nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - tolerations : [v1.Toleration], default is Undefined, optional + tolerations : [corev1.Toleration], default is Undefined, optional tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. """ nodeSelector?: {str:str} - tolerations?: [v1.Toleration] + tolerations?: [corev1.Toleration] diff --git a/k8s/1.18/api/node/v1beta1/scheduling.k b/k8s/1.18/api/node/v1beta1/scheduling.k index 21d7f359..5ef688e3 100644 --- a/k8s/1.18/api/node/v1beta1/scheduling.k +++ b/k8s/1.18/api/node/v1beta1/scheduling.k @@ -3,7 +3,7 @@ This is the scheduling module in k8s.api.node.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 Scheduling: @@ -14,13 +14,13 @@ schema Scheduling: ---------- nodeSelector : {str:str}, default is Undefined, optional nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - tolerations : [v1.Toleration], default is Undefined, optional + tolerations : [corev1.Toleration], default is Undefined, optional tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. """ nodeSelector?: {str:str} - tolerations?: [v1.Toleration] + tolerations?: [corev1.Toleration] diff --git a/k8s/1.18/api/policy/v1beta1/se_linux_strategy_options.k b/k8s/1.18/api/policy/v1beta1/se_linux_strategy_options.k index db38b01b..2ca9c4ad 100644 --- a/k8s/1.18/api/policy/v1beta1/se_linux_strategy_options.k +++ b/k8s/1.18/api/policy/v1beta1/se_linux_strategy_options.k @@ -3,7 +3,7 @@ This is the se_linux_strategy_options module in k8s.api.policy.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 SELinuxStrategyOptions: @@ -14,13 +14,13 @@ schema SELinuxStrategyOptions: ---------- $rule : str, default is Undefined, required rule is the strategy that will dictate the allowable labels that may be set. - seLinuxOptions : v1.SELinuxOptions, default is Undefined, optional + seLinuxOptions : corev1.SELinuxOptions, default is Undefined, optional seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ """ $rule: str - seLinuxOptions?: v1.SELinuxOptions + seLinuxOptions?: corev1.SELinuxOptions diff --git a/k8s/1.18/api/settings/v1alpha1/pod_preset_spec.k b/k8s/1.18/api/settings/v1alpha1/pod_preset_spec.k index ca854ff1..e6ee5b92 100644 --- a/k8s/1.18/api/settings/v1alpha1/pod_preset_spec.k +++ b/k8s/1.18/api/settings/v1alpha1/pod_preset_spec.k @@ -3,8 +3,8 @@ This is the pod_preset_spec module in k8s.api.settings.v1alpha1 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 apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema PodPresetSpec: @@ -13,27 +13,27 @@ schema PodPresetSpec: Attributes ---------- - env : [v1.EnvVar], default is Undefined, optional + env : [corev1.EnvVar], default is Undefined, optional Env defines the collection of EnvVar to inject into containers. - envFrom : [v1.EnvFromSource], default is Undefined, optional + envFrom : [corev1.EnvFromSource], default is Undefined, optional EnvFrom defines the collection of EnvFromSource to inject into containers. - selector : metaV1.LabelSelector, default is Undefined, optional + selector : metav1.LabelSelector, default is Undefined, optional Selector is a label query over a set of resources, in this case pods. Required. - volumeMounts : [v1.VolumeMount], default is Undefined, optional + volumeMounts : [corev1.VolumeMount], default is Undefined, optional VolumeMounts defines the collection of VolumeMount to inject into containers. - volumes : [v1.Volume], default is Undefined, optional + volumes : [corev1.Volume], default is Undefined, optional Volumes defines the collection of Volume to inject into the pod. """ - env?: [v1.EnvVar] + env?: [corev1.EnvVar] - envFrom?: [v1.EnvFromSource] + envFrom?: [corev1.EnvFromSource] - selector?: metaV1.LabelSelector + selector?: metav1.LabelSelector - volumeMounts?: [v1.VolumeMount] + volumeMounts?: [corev1.VolumeMount] - volumes?: [v1.Volume] + volumes?: [corev1.Volume] diff --git a/k8s/1.18/api/storage/v1/storage_class.k b/k8s/1.18/api/storage/v1/storage_class.k index 351af9b5..c6ef3db4 100644 --- a/k8s/1.18/api/storage/v1/storage_class.k +++ b/k8s/1.18/api/storage/v1/storage_class.k @@ -3,8 +3,8 @@ This is the storage_class module in k8s.api.storage.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 -import apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema StorageClass: @@ -17,13 +17,13 @@ schema StorageClass: ---------- allowVolumeExpansion : bool, default is Undefined, optional AllowVolumeExpansion shows whether the storage class allow volume expand - allowedTopologies : [v1.TopologySelectorTerm], default is Undefined, optional + allowedTopologies : [corev1.TopologySelectorTerm], default is Undefined, optional Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. apiVersion : str, default is "storage.k8s.io/v1", required APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources kind : str, default is "StorageClass", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata mountOptions : [str], default is Undefined, optional Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. @@ -40,13 +40,13 @@ schema StorageClass: allowVolumeExpansion?: bool - allowedTopologies?: [v1.TopologySelectorTerm] + allowedTopologies?: [corev1.TopologySelectorTerm] apiVersion: "storage.k8s.io/v1" = "storage.k8s.io/v1" kind: "StorageClass" = "StorageClass" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta mountOptions?: [str] diff --git a/k8s/1.18/api/storage/v1/volume_attachment_source.k b/k8s/1.18/api/storage/v1/volume_attachment_source.k index 1eeaf04b..2c984d96 100644 --- a/k8s/1.18/api/storage/v1/volume_attachment_source.k +++ b/k8s/1.18/api/storage/v1/volume_attachment_source.k @@ -3,7 +3,7 @@ This is the volume_attachment_source module in k8s.api.storage.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 +import api.core.v1 as corev1 schema VolumeAttachmentSource: @@ -12,14 +12,14 @@ schema VolumeAttachmentSource: Attributes ---------- - inlineVolumeSpec : v1.PersistentVolumeSpec, default is Undefined, optional + inlineVolumeSpec : corev1.PersistentVolumeSpec, default is Undefined, optional inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. persistentVolumeName : str, default is Undefined, optional Name of the persistent volume to attach. """ - inlineVolumeSpec?: v1.PersistentVolumeSpec + inlineVolumeSpec?: corev1.PersistentVolumeSpec persistentVolumeName?: str diff --git a/k8s/1.18/api/storage/v1alpha1/volume_attachment_source.k b/k8s/1.18/api/storage/v1alpha1/volume_attachment_source.k index 61209a6a..7e9611f9 100644 --- a/k8s/1.18/api/storage/v1alpha1/volume_attachment_source.k +++ b/k8s/1.18/api/storage/v1alpha1/volume_attachment_source.k @@ -3,7 +3,7 @@ This is the volume_attachment_source module in k8s.api.storage.v1alpha1 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 VolumeAttachmentSource: @@ -12,14 +12,14 @@ schema VolumeAttachmentSource: Attributes ---------- - inlineVolumeSpec : v1.PersistentVolumeSpec, default is Undefined, optional + inlineVolumeSpec : corev1.PersistentVolumeSpec, default is Undefined, optional inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. persistentVolumeName : str, default is Undefined, optional Name of the persistent volume to attach. """ - inlineVolumeSpec?: v1.PersistentVolumeSpec + inlineVolumeSpec?: corev1.PersistentVolumeSpec persistentVolumeName?: str diff --git a/k8s/1.18/api/storage/v1beta1/storage_class.k b/k8s/1.18/api/storage/v1beta1/storage_class.k index e0750fb3..c71261f8 100644 --- a/k8s/1.18/api/storage/v1beta1/storage_class.k +++ b/k8s/1.18/api/storage/v1beta1/storage_class.k @@ -3,8 +3,8 @@ This is the storage_class module in k8s.api.storage.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 apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema StorageClass: @@ -17,13 +17,13 @@ schema StorageClass: ---------- allowVolumeExpansion : bool, default is Undefined, optional AllowVolumeExpansion shows whether the storage class allow volume expand - allowedTopologies : [v1.TopologySelectorTerm], default is Undefined, optional + allowedTopologies : [corev1.TopologySelectorTerm], default is Undefined, optional Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. apiVersion : str, default is "storage.k8s.io/v1beta1", required APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources kind : str, default is "StorageClass", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata mountOptions : [str], default is Undefined, optional Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. @@ -40,13 +40,13 @@ schema StorageClass: allowVolumeExpansion?: bool - allowedTopologies?: [v1.TopologySelectorTerm] + allowedTopologies?: [corev1.TopologySelectorTerm] apiVersion: "storage.k8s.io/v1beta1" = "storage.k8s.io/v1beta1" kind: "StorageClass" = "StorageClass" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta mountOptions?: [str] diff --git a/k8s/1.18/api/storage/v1beta1/volume_attachment_source.k b/k8s/1.18/api/storage/v1beta1/volume_attachment_source.k index 44af59af..c35ab32c 100644 --- a/k8s/1.18/api/storage/v1beta1/volume_attachment_source.k +++ b/k8s/1.18/api/storage/v1beta1/volume_attachment_source.k @@ -3,7 +3,7 @@ This is the volume_attachment_source module in k8s.api.storage.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 VolumeAttachmentSource: @@ -12,14 +12,14 @@ schema VolumeAttachmentSource: Attributes ---------- - inlineVolumeSpec : v1.PersistentVolumeSpec, default is Undefined, optional + inlineVolumeSpec : corev1.PersistentVolumeSpec, default is Undefined, optional inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. persistentVolumeName : str, default is Undefined, optional Name of the persistent volume to attach. """ - inlineVolumeSpec?: v1.PersistentVolumeSpec + inlineVolumeSpec?: corev1.PersistentVolumeSpec persistentVolumeName?: str diff --git a/k8s/1.18/kcl.mod b/k8s/1.18/kcl.mod index d38952d5..0d6994f1 100644 --- a/k8s/1.18/kcl.mod +++ b/k8s/1.18/kcl.mod @@ -1,6 +1,6 @@ [package] name = "k8s" edition = "*" -version = "1.18" +version = "1.18.1" description = "`k8s` is a KCL module contains all the built-in Kubernetes resource models (the CRDs are not included here)." diff --git a/k8s/1.19/api/apps/v1/daemon_set_spec.k b/k8s/1.19/api/apps/v1/daemon_set_spec.k index d26e3e9d..caf3faf8 100644 --- a/k8s/1.19/api/apps/v1/daemon_set_spec.k +++ b/k8s/1.19/api/apps/v1/daemon_set_spec.k @@ -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 @@ -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. @@ -32,7 +32,7 @@ schema DaemonSetSpec: selector: v1.LabelSelector - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: DaemonSetUpdateStrategy diff --git a/k8s/1.19/api/apps/v1/deployment_spec.k b/k8s/1.19/api/apps/v1/deployment_spec.k index 1bbe7887..b8591d9a 100644 --- a/k8s/1.19/api/apps/v1/deployment_spec.k +++ b/k8s/1.19/api/apps/v1/deployment_spec.k @@ -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 @@ -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. """ @@ -46,6 +46,6 @@ schema DeploymentSpec: strategy?: DeploymentStrategy - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec diff --git a/k8s/1.19/api/apps/v1/replica_set_spec.k b/k8s/1.19/api/apps/v1/replica_set_spec.k index a1572bc1..700810d3 100644 --- a/k8s/1.19/api/apps/v1/replica_set_spec.k +++ b/k8s/1.19/api/apps/v1/replica_set_spec.k @@ -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 @@ -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 """ @@ -30,6 +30,6 @@ schema ReplicaSetSpec: selector: v1.LabelSelector - template?: coreV1.PodTemplateSpec + template?: corev1.PodTemplateSpec diff --git a/k8s/1.19/api/apps/v1/stateful_set_spec.k b/k8s/1.19/api/apps/v1/stateful_set_spec.k index d4f4c3f3..4deeb5ed 100644 --- a/k8s/1.19/api/apps/v1/stateful_set_spec.k +++ b/k8s/1.19/api/apps/v1/stateful_set_spec.k @@ -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 @@ -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. """ @@ -42,10 +42,10 @@ schema StatefulSetSpec: serviceName: str - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: StatefulSetUpdateStrategy - volumeClaimTemplates?: [coreV1.PersistentVolumeClaim] + volumeClaimTemplates?: [corev1.PersistentVolumeClaim] diff --git a/k8s/1.19/api/batch/v1/job_spec.k b/k8s/1.19/api/batch/v1/job_spec.k index 42baa957..085f981e 100644 --- a/k8s/1.19/api/batch/v1/job_spec.k +++ b/k8s/1.19/api/batch/v1/job_spec.k @@ -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 @@ -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. @@ -44,7 +44,7 @@ schema JobSpec: selector?: v1.LabelSelector - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec ttlSecondsAfterFinished?: int diff --git a/k8s/1.19/api/batch/v1beta1/cron_job_status.k b/k8s/1.19/api/batch/v1beta1/cron_job_status.k index 61f4642c..d4cad078 100644 --- a/k8s/1.19/api/batch/v1beta1/cron_job_status.k +++ b/k8s/1.19/api/batch/v1beta1/cron_job_status.k @@ -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: @@ -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?: [corev1.ObjectReference] lastScheduleTime?: str diff --git a/k8s/1.19/api/batch/v2alpha1/cron_job_status.k b/k8s/1.19/api/batch/v2alpha1/cron_job_status.k index 697a04d0..6d7045c0 100644 --- a/k8s/1.19/api/batch/v2alpha1/cron_job_status.k +++ b/k8s/1.19/api/batch/v2alpha1/cron_job_status.k @@ -3,7 +3,7 @@ This is the cron_job_status module in k8s.api.batch.v2alpha1 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: @@ -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?: [corev1.ObjectReference] lastScheduleTime?: str diff --git a/k8s/1.19/api/discovery/v1beta1/endpoint.k b/k8s/1.19/api/discovery/v1beta1/endpoint.k index c03a1d04..b1eaf801 100644 --- a/k8s/1.19/api/discovery/v1beta1/endpoint.k +++ b/k8s/1.19/api/discovery/v1beta1/endpoint.k @@ -3,7 +3,7 @@ This is the endpoint module in k8s.api.discovery.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 Endpoint: @@ -18,7 +18,7 @@ schema Endpoint: conditions contains information about the current status of the endpoint. hostname : str, default is Undefined, optional hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must pass DNS Label (RFC 1123) validation. - targetRef : v1.ObjectReference, default is Undefined, optional + targetRef : corev1.ObjectReference, default is Undefined, optional targetRef is a reference to a Kubernetes object that represents this endpoint. topology : {str:str}, default is Undefined, optional topology contains arbitrary topology information associated with the endpoint. These key/value pairs must conform with the label format. https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Topology may include a maximum of 16 key/value pairs. This includes, but is not limited to the following well known keys: * kubernetes.io/hostname: the value indicates the hostname of the node @@ -37,7 +37,7 @@ schema Endpoint: hostname?: str - targetRef?: v1.ObjectReference + targetRef?: corev1.ObjectReference topology?: {str:str} diff --git a/k8s/1.19/api/events/v1/event.k b/k8s/1.19/api/events/v1/event.k index 6bf2a759..fb1e3435 100644 --- a/k8s/1.19/api/events/v1/event.k +++ b/k8s/1.19/api/events/v1/event.k @@ -3,8 +3,8 @@ This is the event module in k8s.api.events.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 -import apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema Event: @@ -23,21 +23,21 @@ schema Event: deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. deprecatedLastTimestamp : str, default is Undefined, optional deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. - deprecatedSource : v1.EventSource, default is Undefined, optional + deprecatedSource : corev1.EventSource, default is Undefined, optional deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. eventTime : str, default is Undefined, required eventTime is the time when this Event was first observed. It is required. kind : str, default is "Event", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional metadata note : str, default is Undefined, optional note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. reason : str, default is Undefined, optional reason is why the action was taken. It is human-readable. This field can have at most 128 characters. - regarding : v1.ObjectReference, default is Undefined, optional + regarding : corev1.ObjectReference, default is Undefined, optional regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. - related : v1.ObjectReference, default is Undefined, optional + related : corev1.ObjectReference, default is Undefined, optional related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. reportingController : str, default is Undefined, optional reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. @@ -60,21 +60,21 @@ schema Event: deprecatedLastTimestamp?: str - deprecatedSource?: v1.EventSource + deprecatedSource?: corev1.EventSource eventTime: str kind: "Event" = "Event" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta note?: str reason?: str - regarding?: v1.ObjectReference + regarding?: corev1.ObjectReference - related?: v1.ObjectReference + related?: corev1.ObjectReference reportingController?: str diff --git a/k8s/1.19/api/events/v1beta1/event.k b/k8s/1.19/api/events/v1beta1/event.k index af7b67c9..afce0ee9 100644 --- a/k8s/1.19/api/events/v1beta1/event.k +++ b/k8s/1.19/api/events/v1beta1/event.k @@ -3,8 +3,8 @@ This is the event module in k8s.api.events.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 apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema Event: @@ -23,21 +23,21 @@ schema Event: deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. deprecatedLastTimestamp : str, default is Undefined, optional deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. - deprecatedSource : v1.EventSource, default is Undefined, optional + deprecatedSource : corev1.EventSource, default is Undefined, optional deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. eventTime : str, default is Undefined, required eventTime is the time when this Event was first observed. It is required. kind : str, default is "Event", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional metadata note : str, default is Undefined, optional note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. reason : str, default is Undefined, optional reason is why the action was taken. It is human-readable. This field can have at most 128 characters. - regarding : v1.ObjectReference, default is Undefined, optional + regarding : corev1.ObjectReference, default is Undefined, optional regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. - related : v1.ObjectReference, default is Undefined, optional + related : corev1.ObjectReference, default is Undefined, optional related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. reportingController : str, default is Undefined, optional reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. @@ -60,21 +60,21 @@ schema Event: deprecatedLastTimestamp?: str - deprecatedSource?: v1.EventSource + deprecatedSource?: corev1.EventSource eventTime: str kind: "Event" = "Event" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta note?: str reason?: str - regarding?: v1.ObjectReference + regarding?: corev1.ObjectReference - related?: v1.ObjectReference + related?: corev1.ObjectReference reportingController?: str diff --git a/k8s/1.19/api/extensions/v1beta1/ingress_backend.k b/k8s/1.19/api/extensions/v1beta1/ingress_backend.k index 260165d4..05e9987d 100644 --- a/k8s/1.19/api/extensions/v1beta1/ingress_backend.k +++ b/k8s/1.19/api/extensions/v1beta1/ingress_backend.k @@ -3,7 +3,7 @@ This is the ingress_backend module in k8s.api.extensions.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 IngressBackend: @@ -12,7 +12,7 @@ schema IngressBackend: Attributes ---------- - resource : v1.TypedLocalObjectReference, default is Undefined, optional + resource : corev1.TypedLocalObjectReference, default is Undefined, optional Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, serviceName and servicePort must not be specified. serviceName : str, default is Undefined, optional Specifies the name of the referenced service. @@ -21,7 +21,7 @@ schema IngressBackend: """ - resource?: v1.TypedLocalObjectReference + resource?: corev1.TypedLocalObjectReference serviceName?: str diff --git a/k8s/1.19/api/extensions/v1beta1/ingress_status.k b/k8s/1.19/api/extensions/v1beta1/ingress_status.k index 6b11cc52..7a5493ef 100644 --- a/k8s/1.19/api/extensions/v1beta1/ingress_status.k +++ b/k8s/1.19/api/extensions/v1beta1/ingress_status.k @@ -3,7 +3,7 @@ This is the ingress_status module in k8s.api.extensions.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 IngressStatus: @@ -12,11 +12,11 @@ schema IngressStatus: Attributes ---------- - loadBalancer : v1.LoadBalancerStatus, default is Undefined, optional + loadBalancer : corev1.LoadBalancerStatus, default is Undefined, optional LoadBalancer contains the current status of the load-balancer. """ - loadBalancer?: v1.LoadBalancerStatus + loadBalancer?: corev1.LoadBalancerStatus diff --git a/k8s/1.19/api/networking/v1/ingress_backend.k b/k8s/1.19/api/networking/v1/ingress_backend.k index a21e4ca1..d4d7eb0c 100644 --- a/k8s/1.19/api/networking/v1/ingress_backend.k +++ b/k8s/1.19/api/networking/v1/ingress_backend.k @@ -3,7 +3,7 @@ This is the ingress_backend module in k8s.api.networking.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 +import api.core.v1 as corev1 schema IngressBackend: @@ -12,14 +12,14 @@ schema IngressBackend: Attributes ---------- - resource : v1.TypedLocalObjectReference, default is Undefined, optional + resource : corev1.TypedLocalObjectReference, default is Undefined, optional Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with "Service". service : IngressServiceBackend, default is Undefined, optional Service references a Service as a Backend. This is a mutually exclusive setting with "Resource". """ - resource?: v1.TypedLocalObjectReference + resource?: corev1.TypedLocalObjectReference service?: IngressServiceBackend diff --git a/k8s/1.19/api/networking/v1/ingress_class_spec.k b/k8s/1.19/api/networking/v1/ingress_class_spec.k index 37623296..81d2ca55 100644 --- a/k8s/1.19/api/networking/v1/ingress_class_spec.k +++ b/k8s/1.19/api/networking/v1/ingress_class_spec.k @@ -3,7 +3,7 @@ This is the ingress_class_spec module in k8s.api.networking.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 +import api.core.v1 as corev1 schema IngressClassSpec: @@ -14,13 +14,13 @@ schema IngressClassSpec: ---------- controller : str, default is Undefined, optional Controller refers to the name of the controller that should handle this class. This allows for different "flavors" that are controlled by the same controller. For example, you may have different Parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. "acme.io/ingress-controller". This field is immutable. - parameters : v1.TypedLocalObjectReference, default is Undefined, optional + parameters : corev1.TypedLocalObjectReference, default is Undefined, optional Parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters. """ controller?: str - parameters?: v1.TypedLocalObjectReference + parameters?: corev1.TypedLocalObjectReference diff --git a/k8s/1.19/api/networking/v1/ingress_status.k b/k8s/1.19/api/networking/v1/ingress_status.k index 609ea64d..592c30c6 100644 --- a/k8s/1.19/api/networking/v1/ingress_status.k +++ b/k8s/1.19/api/networking/v1/ingress_status.k @@ -3,7 +3,7 @@ This is the ingress_status module in k8s.api.networking.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 +import api.core.v1 as corev1 schema IngressStatus: @@ -12,11 +12,11 @@ schema IngressStatus: Attributes ---------- - loadBalancer : v1.LoadBalancerStatus, default is Undefined, optional + loadBalancer : corev1.LoadBalancerStatus, default is Undefined, optional LoadBalancer contains the current status of the load-balancer. """ - loadBalancer?: v1.LoadBalancerStatus + loadBalancer?: corev1.LoadBalancerStatus diff --git a/k8s/1.19/api/networking/v1beta1/ingress_backend.k b/k8s/1.19/api/networking/v1beta1/ingress_backend.k index 76ead8ff..ee7b62c0 100644 --- a/k8s/1.19/api/networking/v1beta1/ingress_backend.k +++ b/k8s/1.19/api/networking/v1beta1/ingress_backend.k @@ -3,7 +3,7 @@ This is the ingress_backend module in k8s.api.networking.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 IngressBackend: @@ -12,7 +12,7 @@ schema IngressBackend: Attributes ---------- - resource : v1.TypedLocalObjectReference, default is Undefined, optional + resource : corev1.TypedLocalObjectReference, default is Undefined, optional Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, serviceName and servicePort must not be specified. serviceName : str, default is Undefined, optional Specifies the name of the referenced service. @@ -21,7 +21,7 @@ schema IngressBackend: """ - resource?: v1.TypedLocalObjectReference + resource?: corev1.TypedLocalObjectReference serviceName?: str diff --git a/k8s/1.19/api/networking/v1beta1/ingress_class_spec.k b/k8s/1.19/api/networking/v1beta1/ingress_class_spec.k index 5faa794b..57e1fd96 100644 --- a/k8s/1.19/api/networking/v1beta1/ingress_class_spec.k +++ b/k8s/1.19/api/networking/v1beta1/ingress_class_spec.k @@ -3,7 +3,7 @@ This is the ingress_class_spec module in k8s.api.networking.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 IngressClassSpec: @@ -14,13 +14,13 @@ schema IngressClassSpec: ---------- controller : str, default is Undefined, optional Controller refers to the name of the controller that should handle this class. This allows for different "flavors" that are controlled by the same controller. For example, you may have different Parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. "acme.io/ingress-controller". This field is immutable. - parameters : v1.TypedLocalObjectReference, default is Undefined, optional + parameters : corev1.TypedLocalObjectReference, default is Undefined, optional Parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters. """ controller?: str - parameters?: v1.TypedLocalObjectReference + parameters?: corev1.TypedLocalObjectReference diff --git a/k8s/1.19/api/networking/v1beta1/ingress_status.k b/k8s/1.19/api/networking/v1beta1/ingress_status.k index c10040b6..1b2e12db 100644 --- a/k8s/1.19/api/networking/v1beta1/ingress_status.k +++ b/k8s/1.19/api/networking/v1beta1/ingress_status.k @@ -3,7 +3,7 @@ This is the ingress_status module in k8s.api.networking.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 IngressStatus: @@ -12,11 +12,11 @@ schema IngressStatus: Attributes ---------- - loadBalancer : v1.LoadBalancerStatus, default is Undefined, optional + loadBalancer : corev1.LoadBalancerStatus, default is Undefined, optional LoadBalancer contains the current status of the load-balancer. """ - loadBalancer?: v1.LoadBalancerStatus + loadBalancer?: corev1.LoadBalancerStatus diff --git a/k8s/1.19/api/node/v1alpha1/scheduling.k b/k8s/1.19/api/node/v1alpha1/scheduling.k index 359ca2e9..b90cbcd9 100644 --- a/k8s/1.19/api/node/v1alpha1/scheduling.k +++ b/k8s/1.19/api/node/v1alpha1/scheduling.k @@ -3,7 +3,7 @@ This is the scheduling module in k8s.api.node.v1alpha1 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 Scheduling: @@ -14,13 +14,13 @@ schema Scheduling: ---------- nodeSelector : {str:str}, default is Undefined, optional nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - tolerations : [v1.Toleration], default is Undefined, optional + tolerations : [corev1.Toleration], default is Undefined, optional tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. """ nodeSelector?: {str:str} - tolerations?: [v1.Toleration] + tolerations?: [corev1.Toleration] diff --git a/k8s/1.19/api/node/v1beta1/scheduling.k b/k8s/1.19/api/node/v1beta1/scheduling.k index 21d7f359..5ef688e3 100644 --- a/k8s/1.19/api/node/v1beta1/scheduling.k +++ b/k8s/1.19/api/node/v1beta1/scheduling.k @@ -3,7 +3,7 @@ This is the scheduling module in k8s.api.node.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 Scheduling: @@ -14,13 +14,13 @@ schema Scheduling: ---------- nodeSelector : {str:str}, default is Undefined, optional nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - tolerations : [v1.Toleration], default is Undefined, optional + tolerations : [corev1.Toleration], default is Undefined, optional tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. """ nodeSelector?: {str:str} - tolerations?: [v1.Toleration] + tolerations?: [corev1.Toleration] diff --git a/k8s/1.19/api/policy/v1beta1/se_linux_strategy_options.k b/k8s/1.19/api/policy/v1beta1/se_linux_strategy_options.k index db38b01b..2ca9c4ad 100644 --- a/k8s/1.19/api/policy/v1beta1/se_linux_strategy_options.k +++ b/k8s/1.19/api/policy/v1beta1/se_linux_strategy_options.k @@ -3,7 +3,7 @@ This is the se_linux_strategy_options module in k8s.api.policy.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 SELinuxStrategyOptions: @@ -14,13 +14,13 @@ schema SELinuxStrategyOptions: ---------- $rule : str, default is Undefined, required rule is the strategy that will dictate the allowable labels that may be set. - seLinuxOptions : v1.SELinuxOptions, default is Undefined, optional + seLinuxOptions : corev1.SELinuxOptions, default is Undefined, optional seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ """ $rule: str - seLinuxOptions?: v1.SELinuxOptions + seLinuxOptions?: corev1.SELinuxOptions diff --git a/k8s/1.19/api/settings/v1alpha1/pod_preset_spec.k b/k8s/1.19/api/settings/v1alpha1/pod_preset_spec.k index ca854ff1..e6ee5b92 100644 --- a/k8s/1.19/api/settings/v1alpha1/pod_preset_spec.k +++ b/k8s/1.19/api/settings/v1alpha1/pod_preset_spec.k @@ -3,8 +3,8 @@ This is the pod_preset_spec module in k8s.api.settings.v1alpha1 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 apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema PodPresetSpec: @@ -13,27 +13,27 @@ schema PodPresetSpec: Attributes ---------- - env : [v1.EnvVar], default is Undefined, optional + env : [corev1.EnvVar], default is Undefined, optional Env defines the collection of EnvVar to inject into containers. - envFrom : [v1.EnvFromSource], default is Undefined, optional + envFrom : [corev1.EnvFromSource], default is Undefined, optional EnvFrom defines the collection of EnvFromSource to inject into containers. - selector : metaV1.LabelSelector, default is Undefined, optional + selector : metav1.LabelSelector, default is Undefined, optional Selector is a label query over a set of resources, in this case pods. Required. - volumeMounts : [v1.VolumeMount], default is Undefined, optional + volumeMounts : [corev1.VolumeMount], default is Undefined, optional VolumeMounts defines the collection of VolumeMount to inject into containers. - volumes : [v1.Volume], default is Undefined, optional + volumes : [corev1.Volume], default is Undefined, optional Volumes defines the collection of Volume to inject into the pod. """ - env?: [v1.EnvVar] + env?: [corev1.EnvVar] - envFrom?: [v1.EnvFromSource] + envFrom?: [corev1.EnvFromSource] - selector?: metaV1.LabelSelector + selector?: metav1.LabelSelector - volumeMounts?: [v1.VolumeMount] + volumeMounts?: [corev1.VolumeMount] - volumes?: [v1.Volume] + volumes?: [corev1.Volume] diff --git a/k8s/1.19/api/storage/v1/storage_class.k b/k8s/1.19/api/storage/v1/storage_class.k index 351af9b5..c6ef3db4 100644 --- a/k8s/1.19/api/storage/v1/storage_class.k +++ b/k8s/1.19/api/storage/v1/storage_class.k @@ -3,8 +3,8 @@ This is the storage_class module in k8s.api.storage.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 -import apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema StorageClass: @@ -17,13 +17,13 @@ schema StorageClass: ---------- allowVolumeExpansion : bool, default is Undefined, optional AllowVolumeExpansion shows whether the storage class allow volume expand - allowedTopologies : [v1.TopologySelectorTerm], default is Undefined, optional + allowedTopologies : [corev1.TopologySelectorTerm], default is Undefined, optional Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. apiVersion : str, default is "storage.k8s.io/v1", required APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources kind : str, default is "StorageClass", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata mountOptions : [str], default is Undefined, optional Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. @@ -40,13 +40,13 @@ schema StorageClass: allowVolumeExpansion?: bool - allowedTopologies?: [v1.TopologySelectorTerm] + allowedTopologies?: [corev1.TopologySelectorTerm] apiVersion: "storage.k8s.io/v1" = "storage.k8s.io/v1" kind: "StorageClass" = "StorageClass" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta mountOptions?: [str] diff --git a/k8s/1.19/api/storage/v1/volume_attachment_source.k b/k8s/1.19/api/storage/v1/volume_attachment_source.k index 1eeaf04b..2c984d96 100644 --- a/k8s/1.19/api/storage/v1/volume_attachment_source.k +++ b/k8s/1.19/api/storage/v1/volume_attachment_source.k @@ -3,7 +3,7 @@ This is the volume_attachment_source module in k8s.api.storage.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 +import api.core.v1 as corev1 schema VolumeAttachmentSource: @@ -12,14 +12,14 @@ schema VolumeAttachmentSource: Attributes ---------- - inlineVolumeSpec : v1.PersistentVolumeSpec, default is Undefined, optional + inlineVolumeSpec : corev1.PersistentVolumeSpec, default is Undefined, optional inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. persistentVolumeName : str, default is Undefined, optional Name of the persistent volume to attach. """ - inlineVolumeSpec?: v1.PersistentVolumeSpec + inlineVolumeSpec?: corev1.PersistentVolumeSpec persistentVolumeName?: str diff --git a/k8s/1.19/api/storage/v1alpha1/volume_attachment_source.k b/k8s/1.19/api/storage/v1alpha1/volume_attachment_source.k index 61209a6a..7e9611f9 100644 --- a/k8s/1.19/api/storage/v1alpha1/volume_attachment_source.k +++ b/k8s/1.19/api/storage/v1alpha1/volume_attachment_source.k @@ -3,7 +3,7 @@ This is the volume_attachment_source module in k8s.api.storage.v1alpha1 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 VolumeAttachmentSource: @@ -12,14 +12,14 @@ schema VolumeAttachmentSource: Attributes ---------- - inlineVolumeSpec : v1.PersistentVolumeSpec, default is Undefined, optional + inlineVolumeSpec : corev1.PersistentVolumeSpec, default is Undefined, optional inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. persistentVolumeName : str, default is Undefined, optional Name of the persistent volume to attach. """ - inlineVolumeSpec?: v1.PersistentVolumeSpec + inlineVolumeSpec?: corev1.PersistentVolumeSpec persistentVolumeName?: str diff --git a/k8s/1.19/api/storage/v1beta1/storage_class.k b/k8s/1.19/api/storage/v1beta1/storage_class.k index e0750fb3..c71261f8 100644 --- a/k8s/1.19/api/storage/v1beta1/storage_class.k +++ b/k8s/1.19/api/storage/v1beta1/storage_class.k @@ -3,8 +3,8 @@ This is the storage_class module in k8s.api.storage.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 apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema StorageClass: @@ -17,13 +17,13 @@ schema StorageClass: ---------- allowVolumeExpansion : bool, default is Undefined, optional AllowVolumeExpansion shows whether the storage class allow volume expand - allowedTopologies : [v1.TopologySelectorTerm], default is Undefined, optional + allowedTopologies : [corev1.TopologySelectorTerm], default is Undefined, optional Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. apiVersion : str, default is "storage.k8s.io/v1beta1", required APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources kind : str, default is "StorageClass", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata mountOptions : [str], default is Undefined, optional Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. @@ -40,13 +40,13 @@ schema StorageClass: allowVolumeExpansion?: bool - allowedTopologies?: [v1.TopologySelectorTerm] + allowedTopologies?: [corev1.TopologySelectorTerm] apiVersion: "storage.k8s.io/v1beta1" = "storage.k8s.io/v1beta1" kind: "StorageClass" = "StorageClass" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta mountOptions?: [str] diff --git a/k8s/1.19/api/storage/v1beta1/volume_attachment_source.k b/k8s/1.19/api/storage/v1beta1/volume_attachment_source.k index 44af59af..c35ab32c 100644 --- a/k8s/1.19/api/storage/v1beta1/volume_attachment_source.k +++ b/k8s/1.19/api/storage/v1beta1/volume_attachment_source.k @@ -3,7 +3,7 @@ This is the volume_attachment_source module in k8s.api.storage.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 VolumeAttachmentSource: @@ -12,14 +12,14 @@ schema VolumeAttachmentSource: Attributes ---------- - inlineVolumeSpec : v1.PersistentVolumeSpec, default is Undefined, optional + inlineVolumeSpec : corev1.PersistentVolumeSpec, default is Undefined, optional inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. persistentVolumeName : str, default is Undefined, optional Name of the persistent volume to attach. """ - inlineVolumeSpec?: v1.PersistentVolumeSpec + inlineVolumeSpec?: corev1.PersistentVolumeSpec persistentVolumeName?: str diff --git a/k8s/1.19/kcl.mod b/k8s/1.19/kcl.mod index 4ad09e6e..1ea93d10 100644 --- a/k8s/1.19/kcl.mod +++ b/k8s/1.19/kcl.mod @@ -1,5 +1,5 @@ [package] name = "k8s" edition = "*" -version = "1.19" +version = "1.19.1" description = "`k8s` is a KCL module contains all the built-in Kubernetes resource models (the CRDs are not included here)." diff --git a/k8s/1.20/api/apps/v1/daemon_set_spec.k b/k8s/1.20/api/apps/v1/daemon_set_spec.k index d26e3e9d..caf3faf8 100644 --- a/k8s/1.20/api/apps/v1/daemon_set_spec.k +++ b/k8s/1.20/api/apps/v1/daemon_set_spec.k @@ -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 @@ -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. @@ -32,7 +32,7 @@ schema DaemonSetSpec: selector: v1.LabelSelector - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: DaemonSetUpdateStrategy diff --git a/k8s/1.20/api/apps/v1/deployment_spec.k b/k8s/1.20/api/apps/v1/deployment_spec.k index 1bbe7887..b8591d9a 100644 --- a/k8s/1.20/api/apps/v1/deployment_spec.k +++ b/k8s/1.20/api/apps/v1/deployment_spec.k @@ -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 @@ -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. """ @@ -46,6 +46,6 @@ schema DeploymentSpec: strategy?: DeploymentStrategy - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec diff --git a/k8s/1.20/api/apps/v1/replica_set_spec.k b/k8s/1.20/api/apps/v1/replica_set_spec.k index a1572bc1..700810d3 100644 --- a/k8s/1.20/api/apps/v1/replica_set_spec.k +++ b/k8s/1.20/api/apps/v1/replica_set_spec.k @@ -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 @@ -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 """ @@ -30,6 +30,6 @@ schema ReplicaSetSpec: selector: v1.LabelSelector - template?: coreV1.PodTemplateSpec + template?: corev1.PodTemplateSpec diff --git a/k8s/1.20/api/apps/v1/stateful_set_spec.k b/k8s/1.20/api/apps/v1/stateful_set_spec.k index d4f4c3f3..4deeb5ed 100644 --- a/k8s/1.20/api/apps/v1/stateful_set_spec.k +++ b/k8s/1.20/api/apps/v1/stateful_set_spec.k @@ -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 @@ -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. """ @@ -42,10 +42,10 @@ schema StatefulSetSpec: serviceName: str - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: StatefulSetUpdateStrategy - volumeClaimTemplates?: [coreV1.PersistentVolumeClaim] + volumeClaimTemplates?: [corev1.PersistentVolumeClaim] diff --git a/k8s/1.20/api/batch/v1/job_spec.k b/k8s/1.20/api/batch/v1/job_spec.k index 42baa957..085f981e 100644 --- a/k8s/1.20/api/batch/v1/job_spec.k +++ b/k8s/1.20/api/batch/v1/job_spec.k @@ -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 @@ -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. @@ -44,7 +44,7 @@ schema JobSpec: selector?: v1.LabelSelector - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec ttlSecondsAfterFinished?: int diff --git a/k8s/1.20/api/batch/v1beta1/cron_job_status.k b/k8s/1.20/api/batch/v1beta1/cron_job_status.k index 61f4642c..d4cad078 100644 --- a/k8s/1.20/api/batch/v1beta1/cron_job_status.k +++ b/k8s/1.20/api/batch/v1beta1/cron_job_status.k @@ -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: @@ -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?: [corev1.ObjectReference] lastScheduleTime?: str diff --git a/k8s/1.20/api/batch/v2alpha1/cron_job_status.k b/k8s/1.20/api/batch/v2alpha1/cron_job_status.k index 697a04d0..6d7045c0 100644 --- a/k8s/1.20/api/batch/v2alpha1/cron_job_status.k +++ b/k8s/1.20/api/batch/v2alpha1/cron_job_status.k @@ -3,7 +3,7 @@ This is the cron_job_status module in k8s.api.batch.v2alpha1 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: @@ -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?: [corev1.ObjectReference] lastScheduleTime?: str diff --git a/k8s/1.20/api/discovery/v1beta1/endpoint.k b/k8s/1.20/api/discovery/v1beta1/endpoint.k index 047abde4..1b2dfa8a 100644 --- a/k8s/1.20/api/discovery/v1beta1/endpoint.k +++ b/k8s/1.20/api/discovery/v1beta1/endpoint.k @@ -3,7 +3,7 @@ This is the endpoint module in k8s.api.discovery.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 Endpoint: @@ -20,7 +20,7 @@ schema Endpoint: hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation. nodeName : str, default is Undefined, optional nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. This field can be enabled with the EndpointSliceNodeName feature gate. - targetRef : v1.ObjectReference, default is Undefined, optional + targetRef : corev1.ObjectReference, default is Undefined, optional targetRef is a reference to a Kubernetes object that represents this endpoint. topology : {str:str}, default is Undefined, optional topology contains arbitrary topology information associated with the endpoint. These key/value pairs must conform with the label format. https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Topology may include a maximum of 16 key/value pairs. This includes, but is not limited to the following well known keys: * kubernetes.io/hostname: the value indicates the hostname of the node @@ -42,7 +42,7 @@ schema Endpoint: nodeName?: str - targetRef?: v1.ObjectReference + targetRef?: corev1.ObjectReference topology?: {str:str} diff --git a/k8s/1.20/api/events/v1/event.k b/k8s/1.20/api/events/v1/event.k index 620ae504..58db22f6 100644 --- a/k8s/1.20/api/events/v1/event.k +++ b/k8s/1.20/api/events/v1/event.k @@ -3,8 +3,8 @@ This is the event module in k8s.api.events.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 -import apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema Event: @@ -23,21 +23,21 @@ schema Event: deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. deprecatedLastTimestamp : str, default is Undefined, optional deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. - deprecatedSource : v1.EventSource, default is Undefined, optional + deprecatedSource : corev1.EventSource, default is Undefined, optional deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. eventTime : str, default is Undefined, required eventTime is the time when this Event was first observed. It is required. kind : str, default is "Event", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, required + metadata : metav1.ObjectMeta, default is Undefined, required metadata note : str, default is Undefined, optional note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. reason : str, default is Undefined, optional reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters. - regarding : v1.ObjectReference, default is Undefined, optional + regarding : corev1.ObjectReference, default is Undefined, optional regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. - related : v1.ObjectReference, default is Undefined, optional + related : corev1.ObjectReference, default is Undefined, optional related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. reportingController : str, default is Undefined, optional reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. @@ -60,21 +60,21 @@ schema Event: deprecatedLastTimestamp?: str - deprecatedSource?: v1.EventSource + deprecatedSource?: corev1.EventSource eventTime: str kind: "Event" = "Event" - metadata: metaV1.ObjectMeta + metadata: metav1.ObjectMeta note?: str reason?: str - regarding?: v1.ObjectReference + regarding?: corev1.ObjectReference - related?: v1.ObjectReference + related?: corev1.ObjectReference reportingController?: str diff --git a/k8s/1.20/api/events/v1beta1/event.k b/k8s/1.20/api/events/v1beta1/event.k index 5b64baa5..173ee20f 100644 --- a/k8s/1.20/api/events/v1beta1/event.k +++ b/k8s/1.20/api/events/v1beta1/event.k @@ -3,8 +3,8 @@ This is the event module in k8s.api.events.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 apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema Event: @@ -23,21 +23,21 @@ schema Event: deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. deprecatedLastTimestamp : str, default is Undefined, optional deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. - deprecatedSource : v1.EventSource, default is Undefined, optional + deprecatedSource : corev1.EventSource, default is Undefined, optional deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. eventTime : str, default is Undefined, required eventTime is the time when this Event was first observed. It is required. kind : str, default is "Event", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, required + metadata : metav1.ObjectMeta, default is Undefined, required metadata note : str, default is Undefined, optional note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. reason : str, default is Undefined, optional reason is why the action was taken. It is human-readable. This field can have at most 128 characters. - regarding : v1.ObjectReference, default is Undefined, optional + regarding : corev1.ObjectReference, default is Undefined, optional regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. - related : v1.ObjectReference, default is Undefined, optional + related : corev1.ObjectReference, default is Undefined, optional related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. reportingController : str, default is Undefined, optional reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. @@ -60,21 +60,21 @@ schema Event: deprecatedLastTimestamp?: str - deprecatedSource?: v1.EventSource + deprecatedSource?: corev1.EventSource eventTime: str kind: "Event" = "Event" - metadata: metaV1.ObjectMeta + metadata: metav1.ObjectMeta note?: str reason?: str - regarding?: v1.ObjectReference + regarding?: corev1.ObjectReference - related?: v1.ObjectReference + related?: corev1.ObjectReference reportingController?: str diff --git a/k8s/1.20/api/extensions/v1beta1/ingress_backend.k b/k8s/1.20/api/extensions/v1beta1/ingress_backend.k index 260165d4..05e9987d 100644 --- a/k8s/1.20/api/extensions/v1beta1/ingress_backend.k +++ b/k8s/1.20/api/extensions/v1beta1/ingress_backend.k @@ -3,7 +3,7 @@ This is the ingress_backend module in k8s.api.extensions.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 IngressBackend: @@ -12,7 +12,7 @@ schema IngressBackend: Attributes ---------- - resource : v1.TypedLocalObjectReference, default is Undefined, optional + resource : corev1.TypedLocalObjectReference, default is Undefined, optional Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, serviceName and servicePort must not be specified. serviceName : str, default is Undefined, optional Specifies the name of the referenced service. @@ -21,7 +21,7 @@ schema IngressBackend: """ - resource?: v1.TypedLocalObjectReference + resource?: corev1.TypedLocalObjectReference serviceName?: str diff --git a/k8s/1.20/api/extensions/v1beta1/ingress_status.k b/k8s/1.20/api/extensions/v1beta1/ingress_status.k index 6b11cc52..7a5493ef 100644 --- a/k8s/1.20/api/extensions/v1beta1/ingress_status.k +++ b/k8s/1.20/api/extensions/v1beta1/ingress_status.k @@ -3,7 +3,7 @@ This is the ingress_status module in k8s.api.extensions.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 IngressStatus: @@ -12,11 +12,11 @@ schema IngressStatus: Attributes ---------- - loadBalancer : v1.LoadBalancerStatus, default is Undefined, optional + loadBalancer : corev1.LoadBalancerStatus, default is Undefined, optional LoadBalancer contains the current status of the load-balancer. """ - loadBalancer?: v1.LoadBalancerStatus + loadBalancer?: corev1.LoadBalancerStatus diff --git a/k8s/1.20/api/networking/v1/ingress_backend.k b/k8s/1.20/api/networking/v1/ingress_backend.k index a21e4ca1..d4d7eb0c 100644 --- a/k8s/1.20/api/networking/v1/ingress_backend.k +++ b/k8s/1.20/api/networking/v1/ingress_backend.k @@ -3,7 +3,7 @@ This is the ingress_backend module in k8s.api.networking.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 +import api.core.v1 as corev1 schema IngressBackend: @@ -12,14 +12,14 @@ schema IngressBackend: Attributes ---------- - resource : v1.TypedLocalObjectReference, default is Undefined, optional + resource : corev1.TypedLocalObjectReference, default is Undefined, optional Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with "Service". service : IngressServiceBackend, default is Undefined, optional Service references a Service as a Backend. This is a mutually exclusive setting with "Resource". """ - resource?: v1.TypedLocalObjectReference + resource?: corev1.TypedLocalObjectReference service?: IngressServiceBackend diff --git a/k8s/1.20/api/networking/v1/ingress_class_spec.k b/k8s/1.20/api/networking/v1/ingress_class_spec.k index 37623296..81d2ca55 100644 --- a/k8s/1.20/api/networking/v1/ingress_class_spec.k +++ b/k8s/1.20/api/networking/v1/ingress_class_spec.k @@ -3,7 +3,7 @@ This is the ingress_class_spec module in k8s.api.networking.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 +import api.core.v1 as corev1 schema IngressClassSpec: @@ -14,13 +14,13 @@ schema IngressClassSpec: ---------- controller : str, default is Undefined, optional Controller refers to the name of the controller that should handle this class. This allows for different "flavors" that are controlled by the same controller. For example, you may have different Parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. "acme.io/ingress-controller". This field is immutable. - parameters : v1.TypedLocalObjectReference, default is Undefined, optional + parameters : corev1.TypedLocalObjectReference, default is Undefined, optional Parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters. """ controller?: str - parameters?: v1.TypedLocalObjectReference + parameters?: corev1.TypedLocalObjectReference diff --git a/k8s/1.20/api/networking/v1/ingress_status.k b/k8s/1.20/api/networking/v1/ingress_status.k index 609ea64d..592c30c6 100644 --- a/k8s/1.20/api/networking/v1/ingress_status.k +++ b/k8s/1.20/api/networking/v1/ingress_status.k @@ -3,7 +3,7 @@ This is the ingress_status module in k8s.api.networking.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 +import api.core.v1 as corev1 schema IngressStatus: @@ -12,11 +12,11 @@ schema IngressStatus: Attributes ---------- - loadBalancer : v1.LoadBalancerStatus, default is Undefined, optional + loadBalancer : corev1.LoadBalancerStatus, default is Undefined, optional LoadBalancer contains the current status of the load-balancer. """ - loadBalancer?: v1.LoadBalancerStatus + loadBalancer?: corev1.LoadBalancerStatus diff --git a/k8s/1.20/api/networking/v1beta1/ingress_backend.k b/k8s/1.20/api/networking/v1beta1/ingress_backend.k index 76ead8ff..ee7b62c0 100644 --- a/k8s/1.20/api/networking/v1beta1/ingress_backend.k +++ b/k8s/1.20/api/networking/v1beta1/ingress_backend.k @@ -3,7 +3,7 @@ This is the ingress_backend module in k8s.api.networking.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 IngressBackend: @@ -12,7 +12,7 @@ schema IngressBackend: Attributes ---------- - resource : v1.TypedLocalObjectReference, default is Undefined, optional + resource : corev1.TypedLocalObjectReference, default is Undefined, optional Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, serviceName and servicePort must not be specified. serviceName : str, default is Undefined, optional Specifies the name of the referenced service. @@ -21,7 +21,7 @@ schema IngressBackend: """ - resource?: v1.TypedLocalObjectReference + resource?: corev1.TypedLocalObjectReference serviceName?: str diff --git a/k8s/1.20/api/networking/v1beta1/ingress_class_spec.k b/k8s/1.20/api/networking/v1beta1/ingress_class_spec.k index 5faa794b..57e1fd96 100644 --- a/k8s/1.20/api/networking/v1beta1/ingress_class_spec.k +++ b/k8s/1.20/api/networking/v1beta1/ingress_class_spec.k @@ -3,7 +3,7 @@ This is the ingress_class_spec module in k8s.api.networking.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 IngressClassSpec: @@ -14,13 +14,13 @@ schema IngressClassSpec: ---------- controller : str, default is Undefined, optional Controller refers to the name of the controller that should handle this class. This allows for different "flavors" that are controlled by the same controller. For example, you may have different Parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. "acme.io/ingress-controller". This field is immutable. - parameters : v1.TypedLocalObjectReference, default is Undefined, optional + parameters : corev1.TypedLocalObjectReference, default is Undefined, optional Parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters. """ controller?: str - parameters?: v1.TypedLocalObjectReference + parameters?: corev1.TypedLocalObjectReference diff --git a/k8s/1.20/api/networking/v1beta1/ingress_status.k b/k8s/1.20/api/networking/v1beta1/ingress_status.k index c10040b6..1b2e12db 100644 --- a/k8s/1.20/api/networking/v1beta1/ingress_status.k +++ b/k8s/1.20/api/networking/v1beta1/ingress_status.k @@ -3,7 +3,7 @@ This is the ingress_status module in k8s.api.networking.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 IngressStatus: @@ -12,11 +12,11 @@ schema IngressStatus: Attributes ---------- - loadBalancer : v1.LoadBalancerStatus, default is Undefined, optional + loadBalancer : corev1.LoadBalancerStatus, default is Undefined, optional LoadBalancer contains the current status of the load-balancer. """ - loadBalancer?: v1.LoadBalancerStatus + loadBalancer?: corev1.LoadBalancerStatus diff --git a/k8s/1.20/api/node/v1/scheduling.k b/k8s/1.20/api/node/v1/scheduling.k index b7904f85..593e8d61 100644 --- a/k8s/1.20/api/node/v1/scheduling.k +++ b/k8s/1.20/api/node/v1/scheduling.k @@ -3,7 +3,7 @@ This is the scheduling module in k8s.api.node.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 +import api.core.v1 as corev1 schema Scheduling: @@ -14,13 +14,13 @@ schema Scheduling: ---------- nodeSelector : {str:str}, default is Undefined, optional nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - tolerations : [v1.Toleration], default is Undefined, optional + tolerations : [corev1.Toleration], default is Undefined, optional tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. """ nodeSelector?: {str:str} - tolerations?: [v1.Toleration] + tolerations?: [corev1.Toleration] diff --git a/k8s/1.20/api/node/v1alpha1/scheduling.k b/k8s/1.20/api/node/v1alpha1/scheduling.k index 359ca2e9..b90cbcd9 100644 --- a/k8s/1.20/api/node/v1alpha1/scheduling.k +++ b/k8s/1.20/api/node/v1alpha1/scheduling.k @@ -3,7 +3,7 @@ This is the scheduling module in k8s.api.node.v1alpha1 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 Scheduling: @@ -14,13 +14,13 @@ schema Scheduling: ---------- nodeSelector : {str:str}, default is Undefined, optional nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - tolerations : [v1.Toleration], default is Undefined, optional + tolerations : [corev1.Toleration], default is Undefined, optional tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. """ nodeSelector?: {str:str} - tolerations?: [v1.Toleration] + tolerations?: [corev1.Toleration] diff --git a/k8s/1.20/api/node/v1beta1/scheduling.k b/k8s/1.20/api/node/v1beta1/scheduling.k index 21d7f359..5ef688e3 100644 --- a/k8s/1.20/api/node/v1beta1/scheduling.k +++ b/k8s/1.20/api/node/v1beta1/scheduling.k @@ -3,7 +3,7 @@ This is the scheduling module in k8s.api.node.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 Scheduling: @@ -14,13 +14,13 @@ schema Scheduling: ---------- nodeSelector : {str:str}, default is Undefined, optional nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - tolerations : [v1.Toleration], default is Undefined, optional + tolerations : [corev1.Toleration], default is Undefined, optional tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. """ nodeSelector?: {str:str} - tolerations?: [v1.Toleration] + tolerations?: [corev1.Toleration] diff --git a/k8s/1.20/api/policy/v1beta1/se_linux_strategy_options.k b/k8s/1.20/api/policy/v1beta1/se_linux_strategy_options.k index db38b01b..2ca9c4ad 100644 --- a/k8s/1.20/api/policy/v1beta1/se_linux_strategy_options.k +++ b/k8s/1.20/api/policy/v1beta1/se_linux_strategy_options.k @@ -3,7 +3,7 @@ This is the se_linux_strategy_options module in k8s.api.policy.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 SELinuxStrategyOptions: @@ -14,13 +14,13 @@ schema SELinuxStrategyOptions: ---------- $rule : str, default is Undefined, required rule is the strategy that will dictate the allowable labels that may be set. - seLinuxOptions : v1.SELinuxOptions, default is Undefined, optional + seLinuxOptions : corev1.SELinuxOptions, default is Undefined, optional seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ """ $rule: str - seLinuxOptions?: v1.SELinuxOptions + seLinuxOptions?: corev1.SELinuxOptions diff --git a/k8s/1.20/api/storage/v1/storage_class.k b/k8s/1.20/api/storage/v1/storage_class.k index 351af9b5..c6ef3db4 100644 --- a/k8s/1.20/api/storage/v1/storage_class.k +++ b/k8s/1.20/api/storage/v1/storage_class.k @@ -3,8 +3,8 @@ This is the storage_class module in k8s.api.storage.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 -import apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema StorageClass: @@ -17,13 +17,13 @@ schema StorageClass: ---------- allowVolumeExpansion : bool, default is Undefined, optional AllowVolumeExpansion shows whether the storage class allow volume expand - allowedTopologies : [v1.TopologySelectorTerm], default is Undefined, optional + allowedTopologies : [corev1.TopologySelectorTerm], default is Undefined, optional Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. apiVersion : str, default is "storage.k8s.io/v1", required APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources kind : str, default is "StorageClass", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata mountOptions : [str], default is Undefined, optional Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. @@ -40,13 +40,13 @@ schema StorageClass: allowVolumeExpansion?: bool - allowedTopologies?: [v1.TopologySelectorTerm] + allowedTopologies?: [corev1.TopologySelectorTerm] apiVersion: "storage.k8s.io/v1" = "storage.k8s.io/v1" kind: "StorageClass" = "StorageClass" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta mountOptions?: [str] diff --git a/k8s/1.20/api/storage/v1/volume_attachment_source.k b/k8s/1.20/api/storage/v1/volume_attachment_source.k index 1eeaf04b..2c984d96 100644 --- a/k8s/1.20/api/storage/v1/volume_attachment_source.k +++ b/k8s/1.20/api/storage/v1/volume_attachment_source.k @@ -3,7 +3,7 @@ This is the volume_attachment_source module in k8s.api.storage.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 +import api.core.v1 as corev1 schema VolumeAttachmentSource: @@ -12,14 +12,14 @@ schema VolumeAttachmentSource: Attributes ---------- - inlineVolumeSpec : v1.PersistentVolumeSpec, default is Undefined, optional + inlineVolumeSpec : corev1.PersistentVolumeSpec, default is Undefined, optional inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. persistentVolumeName : str, default is Undefined, optional Name of the persistent volume to attach. """ - inlineVolumeSpec?: v1.PersistentVolumeSpec + inlineVolumeSpec?: corev1.PersistentVolumeSpec persistentVolumeName?: str diff --git a/k8s/1.20/api/storage/v1alpha1/volume_attachment_source.k b/k8s/1.20/api/storage/v1alpha1/volume_attachment_source.k index 61209a6a..7e9611f9 100644 --- a/k8s/1.20/api/storage/v1alpha1/volume_attachment_source.k +++ b/k8s/1.20/api/storage/v1alpha1/volume_attachment_source.k @@ -3,7 +3,7 @@ This is the volume_attachment_source module in k8s.api.storage.v1alpha1 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 VolumeAttachmentSource: @@ -12,14 +12,14 @@ schema VolumeAttachmentSource: Attributes ---------- - inlineVolumeSpec : v1.PersistentVolumeSpec, default is Undefined, optional + inlineVolumeSpec : corev1.PersistentVolumeSpec, default is Undefined, optional inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. persistentVolumeName : str, default is Undefined, optional Name of the persistent volume to attach. """ - inlineVolumeSpec?: v1.PersistentVolumeSpec + inlineVolumeSpec?: corev1.PersistentVolumeSpec persistentVolumeName?: str diff --git a/k8s/1.20/api/storage/v1beta1/storage_class.k b/k8s/1.20/api/storage/v1beta1/storage_class.k index e0750fb3..c71261f8 100644 --- a/k8s/1.20/api/storage/v1beta1/storage_class.k +++ b/k8s/1.20/api/storage/v1beta1/storage_class.k @@ -3,8 +3,8 @@ This is the storage_class module in k8s.api.storage.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 apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema StorageClass: @@ -17,13 +17,13 @@ schema StorageClass: ---------- allowVolumeExpansion : bool, default is Undefined, optional AllowVolumeExpansion shows whether the storage class allow volume expand - allowedTopologies : [v1.TopologySelectorTerm], default is Undefined, optional + allowedTopologies : [corev1.TopologySelectorTerm], default is Undefined, optional Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. apiVersion : str, default is "storage.k8s.io/v1beta1", required APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources kind : str, default is "StorageClass", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata mountOptions : [str], default is Undefined, optional Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. @@ -40,13 +40,13 @@ schema StorageClass: allowVolumeExpansion?: bool - allowedTopologies?: [v1.TopologySelectorTerm] + allowedTopologies?: [corev1.TopologySelectorTerm] apiVersion: "storage.k8s.io/v1beta1" = "storage.k8s.io/v1beta1" kind: "StorageClass" = "StorageClass" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta mountOptions?: [str] diff --git a/k8s/1.20/api/storage/v1beta1/volume_attachment_source.k b/k8s/1.20/api/storage/v1beta1/volume_attachment_source.k index 44af59af..c35ab32c 100644 --- a/k8s/1.20/api/storage/v1beta1/volume_attachment_source.k +++ b/k8s/1.20/api/storage/v1beta1/volume_attachment_source.k @@ -3,7 +3,7 @@ This is the volume_attachment_source module in k8s.api.storage.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 VolumeAttachmentSource: @@ -12,14 +12,14 @@ schema VolumeAttachmentSource: Attributes ---------- - inlineVolumeSpec : v1.PersistentVolumeSpec, default is Undefined, optional + inlineVolumeSpec : corev1.PersistentVolumeSpec, default is Undefined, optional inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. persistentVolumeName : str, default is Undefined, optional Name of the persistent volume to attach. """ - inlineVolumeSpec?: v1.PersistentVolumeSpec + inlineVolumeSpec?: corev1.PersistentVolumeSpec persistentVolumeName?: str diff --git a/k8s/1.20/kcl.mod b/k8s/1.20/kcl.mod index ac4539ce..2c21ea38 100644 --- a/k8s/1.20/kcl.mod +++ b/k8s/1.20/kcl.mod @@ -1,5 +1,5 @@ [package] name = "k8s" edition = "*" -version = "1.20" +version = "1.20.1" description = "`k8s` is a KCL module contains all the built-in Kubernetes resource models (the CRDs are not included here)." diff --git a/k8s/1.21/api/apps/v1/daemon_set_spec.k b/k8s/1.21/api/apps/v1/daemon_set_spec.k index d26e3e9d..caf3faf8 100644 --- a/k8s/1.21/api/apps/v1/daemon_set_spec.k +++ b/k8s/1.21/api/apps/v1/daemon_set_spec.k @@ -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 @@ -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. @@ -32,7 +32,7 @@ schema DaemonSetSpec: selector: v1.LabelSelector - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: DaemonSetUpdateStrategy diff --git a/k8s/1.21/api/apps/v1/deployment_spec.k b/k8s/1.21/api/apps/v1/deployment_spec.k index 1bbe7887..b8591d9a 100644 --- a/k8s/1.21/api/apps/v1/deployment_spec.k +++ b/k8s/1.21/api/apps/v1/deployment_spec.k @@ -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 @@ -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. """ @@ -46,6 +46,6 @@ schema DeploymentSpec: strategy?: DeploymentStrategy - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec diff --git a/k8s/1.21/api/apps/v1/replica_set_spec.k b/k8s/1.21/api/apps/v1/replica_set_spec.k index a1572bc1..700810d3 100644 --- a/k8s/1.21/api/apps/v1/replica_set_spec.k +++ b/k8s/1.21/api/apps/v1/replica_set_spec.k @@ -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 @@ -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 """ @@ -30,6 +30,6 @@ schema ReplicaSetSpec: selector: v1.LabelSelector - template?: coreV1.PodTemplateSpec + template?: corev1.PodTemplateSpec diff --git a/k8s/1.21/api/apps/v1/stateful_set_spec.k b/k8s/1.21/api/apps/v1/stateful_set_spec.k index d4f4c3f3..4deeb5ed 100644 --- a/k8s/1.21/api/apps/v1/stateful_set_spec.k +++ b/k8s/1.21/api/apps/v1/stateful_set_spec.k @@ -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 @@ -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. """ @@ -42,10 +42,10 @@ schema StatefulSetSpec: serviceName: str - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: StatefulSetUpdateStrategy - volumeClaimTemplates?: [coreV1.PersistentVolumeClaim] + volumeClaimTemplates?: [corev1.PersistentVolumeClaim] diff --git a/k8s/1.21/api/batch/v1/cron_job_status.k b/k8s/1.21/api/batch/v1/cron_job_status.k index bc07fdb1..420347ff 100644 --- a/k8s/1.21/api/batch/v1/cron_job_status.k +++ b/k8s/1.21/api/batch/v1/cron_job_status.k @@ -3,7 +3,7 @@ This is the cron_job_status 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 +import api.core.v1 as corev1 schema CronJobStatus: @@ -12,7 +12,7 @@ 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. @@ -21,7 +21,7 @@ schema CronJobStatus: """ - active?: [v1.ObjectReference] + active?: [corev1.ObjectReference] lastScheduleTime?: str diff --git a/k8s/1.21/api/batch/v1/job_spec.k b/k8s/1.21/api/batch/v1/job_spec.k index 65d88bb4..e115d438 100644 --- a/k8s/1.21/api/batch/v1/job_spec.k +++ b/k8s/1.21/api/batch/v1/job_spec.k @@ -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 @@ -35,7 +35,7 @@ schema JobSpec: 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 suspend : bool, default is Undefined, optional Suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. This is an alpha field and requires the SuspendJob feature gate to be enabled; otherwise this field may not be set to true. Defaults to false. - 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. @@ -58,7 +58,7 @@ schema JobSpec: suspend?: bool - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec ttlSecondsAfterFinished?: int diff --git a/k8s/1.21/api/batch/v1beta1/cron_job_status.k b/k8s/1.21/api/batch/v1beta1/cron_job_status.k index a1c88d48..d11aca1f 100644 --- a/k8s/1.21/api/batch/v1beta1/cron_job_status.k +++ b/k8s/1.21/api/batch/v1beta1/cron_job_status.k @@ -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: @@ -12,7 +12,7 @@ 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. @@ -21,7 +21,7 @@ schema CronJobStatus: """ - active?: [v1.ObjectReference] + active?: [corev1.ObjectReference] lastScheduleTime?: str diff --git a/k8s/1.21/api/discovery/v1/endpoint.k b/k8s/1.21/api/discovery/v1/endpoint.k index c8dd0b66..ca97ea92 100644 --- a/k8s/1.21/api/discovery/v1/endpoint.k +++ b/k8s/1.21/api/discovery/v1/endpoint.k @@ -3,7 +3,7 @@ This is the endpoint module in k8s.api.discovery.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 +import api.core.v1 as corev1 schema Endpoint: @@ -24,7 +24,7 @@ schema Endpoint: hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation. nodeName : str, default is Undefined, optional nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. This field can be enabled with the EndpointSliceNodeName feature gate. - targetRef : v1.ObjectReference, default is Undefined, optional + targetRef : corev1.ObjectReference, default is Undefined, optional targetRef is a reference to a Kubernetes object that represents this endpoint. zone : str, default is Undefined, optional zone is the name of the Zone this endpoint exists in. @@ -43,7 +43,7 @@ schema Endpoint: nodeName?: str - targetRef?: v1.ObjectReference + targetRef?: corev1.ObjectReference zone?: str diff --git a/k8s/1.21/api/discovery/v1beta1/endpoint.k b/k8s/1.21/api/discovery/v1beta1/endpoint.k index b3f6978c..9aba50c4 100644 --- a/k8s/1.21/api/discovery/v1beta1/endpoint.k +++ b/k8s/1.21/api/discovery/v1beta1/endpoint.k @@ -3,7 +3,7 @@ This is the endpoint module in k8s.api.discovery.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 Endpoint: @@ -22,7 +22,7 @@ schema Endpoint: hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation. nodeName : str, default is Undefined, optional nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. This field can be enabled with the EndpointSliceNodeName feature gate. - targetRef : v1.ObjectReference, default is Undefined, optional + targetRef : corev1.ObjectReference, default is Undefined, optional targetRef is a reference to a Kubernetes object that represents this endpoint. topology : {str:str}, default is Undefined, optional topology contains arbitrary topology information associated with the endpoint. These key/value pairs must conform with the label format. https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Topology may include a maximum of 16 key/value pairs. This includes, but is not limited to the following well known keys: * kubernetes.io/hostname: the value indicates the hostname of the node @@ -46,7 +46,7 @@ schema Endpoint: nodeName?: str - targetRef?: v1.ObjectReference + targetRef?: corev1.ObjectReference topology?: {str:str} diff --git a/k8s/1.21/api/events/v1/event.k b/k8s/1.21/api/events/v1/event.k index 0141a1f4..67b0e016 100644 --- a/k8s/1.21/api/events/v1/event.k +++ b/k8s/1.21/api/events/v1/event.k @@ -3,8 +3,8 @@ This is the event module in k8s.api.events.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 -import apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema Event: @@ -23,21 +23,21 @@ schema Event: deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. deprecatedLastTimestamp : str, default is Undefined, optional deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. - deprecatedSource : v1.EventSource, default is Undefined, optional + deprecatedSource : corev1.EventSource, default is Undefined, optional deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. eventTime : str, default is Undefined, required eventTime is the time when this Event was first observed. It is required. kind : str, default is "Event", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata note : str, default is Undefined, optional note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. reason : str, default is Undefined, optional reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters. - regarding : v1.ObjectReference, default is Undefined, optional + regarding : corev1.ObjectReference, default is Undefined, optional regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. - related : v1.ObjectReference, default is Undefined, optional + related : corev1.ObjectReference, default is Undefined, optional related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. reportingController : str, default is Undefined, optional reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. @@ -60,21 +60,21 @@ schema Event: deprecatedLastTimestamp?: str - deprecatedSource?: v1.EventSource + deprecatedSource?: corev1.EventSource eventTime: str kind: "Event" = "Event" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta note?: str reason?: str - regarding?: v1.ObjectReference + regarding?: corev1.ObjectReference - related?: v1.ObjectReference + related?: corev1.ObjectReference reportingController?: str diff --git a/k8s/1.21/api/events/v1beta1/event.k b/k8s/1.21/api/events/v1beta1/event.k index 6fbc668a..0e18a1d6 100644 --- a/k8s/1.21/api/events/v1beta1/event.k +++ b/k8s/1.21/api/events/v1beta1/event.k @@ -3,8 +3,8 @@ This is the event module in k8s.api.events.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 apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema Event: @@ -23,21 +23,21 @@ schema Event: deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. deprecatedLastTimestamp : str, default is Undefined, optional deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. - deprecatedSource : v1.EventSource, default is Undefined, optional + deprecatedSource : corev1.EventSource, default is Undefined, optional deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. eventTime : str, default is Undefined, required eventTime is the time when this Event was first observed. It is required. kind : str, default is "Event", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata note : str, default is Undefined, optional note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. reason : str, default is Undefined, optional reason is why the action was taken. It is human-readable. This field can have at most 128 characters. - regarding : v1.ObjectReference, default is Undefined, optional + regarding : corev1.ObjectReference, default is Undefined, optional regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. - related : v1.ObjectReference, default is Undefined, optional + related : corev1.ObjectReference, default is Undefined, optional related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. reportingController : str, default is Undefined, optional reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. @@ -60,21 +60,21 @@ schema Event: deprecatedLastTimestamp?: str - deprecatedSource?: v1.EventSource + deprecatedSource?: corev1.EventSource eventTime: str kind: "Event" = "Event" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta note?: str reason?: str - regarding?: v1.ObjectReference + regarding?: corev1.ObjectReference - related?: v1.ObjectReference + related?: corev1.ObjectReference reportingController?: str diff --git a/k8s/1.21/api/extensions/v1beta1/ingress_backend.k b/k8s/1.21/api/extensions/v1beta1/ingress_backend.k index 260165d4..05e9987d 100644 --- a/k8s/1.21/api/extensions/v1beta1/ingress_backend.k +++ b/k8s/1.21/api/extensions/v1beta1/ingress_backend.k @@ -3,7 +3,7 @@ This is the ingress_backend module in k8s.api.extensions.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 IngressBackend: @@ -12,7 +12,7 @@ schema IngressBackend: Attributes ---------- - resource : v1.TypedLocalObjectReference, default is Undefined, optional + resource : corev1.TypedLocalObjectReference, default is Undefined, optional Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, serviceName and servicePort must not be specified. serviceName : str, default is Undefined, optional Specifies the name of the referenced service. @@ -21,7 +21,7 @@ schema IngressBackend: """ - resource?: v1.TypedLocalObjectReference + resource?: corev1.TypedLocalObjectReference serviceName?: str diff --git a/k8s/1.21/api/extensions/v1beta1/ingress_status.k b/k8s/1.21/api/extensions/v1beta1/ingress_status.k index 6b11cc52..7a5493ef 100644 --- a/k8s/1.21/api/extensions/v1beta1/ingress_status.k +++ b/k8s/1.21/api/extensions/v1beta1/ingress_status.k @@ -3,7 +3,7 @@ This is the ingress_status module in k8s.api.extensions.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 IngressStatus: @@ -12,11 +12,11 @@ schema IngressStatus: Attributes ---------- - loadBalancer : v1.LoadBalancerStatus, default is Undefined, optional + loadBalancer : corev1.LoadBalancerStatus, default is Undefined, optional LoadBalancer contains the current status of the load-balancer. """ - loadBalancer?: v1.LoadBalancerStatus + loadBalancer?: corev1.LoadBalancerStatus diff --git a/k8s/1.21/api/networking/v1/ingress_backend.k b/k8s/1.21/api/networking/v1/ingress_backend.k index a21e4ca1..d4d7eb0c 100644 --- a/k8s/1.21/api/networking/v1/ingress_backend.k +++ b/k8s/1.21/api/networking/v1/ingress_backend.k @@ -3,7 +3,7 @@ This is the ingress_backend module in k8s.api.networking.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 +import api.core.v1 as corev1 schema IngressBackend: @@ -12,14 +12,14 @@ schema IngressBackend: Attributes ---------- - resource : v1.TypedLocalObjectReference, default is Undefined, optional + resource : corev1.TypedLocalObjectReference, default is Undefined, optional Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with "Service". service : IngressServiceBackend, default is Undefined, optional Service references a Service as a Backend. This is a mutually exclusive setting with "Resource". """ - resource?: v1.TypedLocalObjectReference + resource?: corev1.TypedLocalObjectReference service?: IngressServiceBackend diff --git a/k8s/1.21/api/networking/v1/ingress_status.k b/k8s/1.21/api/networking/v1/ingress_status.k index 609ea64d..592c30c6 100644 --- a/k8s/1.21/api/networking/v1/ingress_status.k +++ b/k8s/1.21/api/networking/v1/ingress_status.k @@ -3,7 +3,7 @@ This is the ingress_status module in k8s.api.networking.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 +import api.core.v1 as corev1 schema IngressStatus: @@ -12,11 +12,11 @@ schema IngressStatus: Attributes ---------- - loadBalancer : v1.LoadBalancerStatus, default is Undefined, optional + loadBalancer : corev1.LoadBalancerStatus, default is Undefined, optional LoadBalancer contains the current status of the load-balancer. """ - loadBalancer?: v1.LoadBalancerStatus + loadBalancer?: corev1.LoadBalancerStatus diff --git a/k8s/1.21/api/networking/v1beta1/ingress_backend.k b/k8s/1.21/api/networking/v1beta1/ingress_backend.k index 76ead8ff..ee7b62c0 100644 --- a/k8s/1.21/api/networking/v1beta1/ingress_backend.k +++ b/k8s/1.21/api/networking/v1beta1/ingress_backend.k @@ -3,7 +3,7 @@ This is the ingress_backend module in k8s.api.networking.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 IngressBackend: @@ -12,7 +12,7 @@ schema IngressBackend: Attributes ---------- - resource : v1.TypedLocalObjectReference, default is Undefined, optional + resource : corev1.TypedLocalObjectReference, default is Undefined, optional Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, serviceName and servicePort must not be specified. serviceName : str, default is Undefined, optional Specifies the name of the referenced service. @@ -21,7 +21,7 @@ schema IngressBackend: """ - resource?: v1.TypedLocalObjectReference + resource?: corev1.TypedLocalObjectReference serviceName?: str diff --git a/k8s/1.21/api/networking/v1beta1/ingress_status.k b/k8s/1.21/api/networking/v1beta1/ingress_status.k index c10040b6..1b2e12db 100644 --- a/k8s/1.21/api/networking/v1beta1/ingress_status.k +++ b/k8s/1.21/api/networking/v1beta1/ingress_status.k @@ -3,7 +3,7 @@ This is the ingress_status module in k8s.api.networking.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 IngressStatus: @@ -12,11 +12,11 @@ schema IngressStatus: Attributes ---------- - loadBalancer : v1.LoadBalancerStatus, default is Undefined, optional + loadBalancer : corev1.LoadBalancerStatus, default is Undefined, optional LoadBalancer contains the current status of the load-balancer. """ - loadBalancer?: v1.LoadBalancerStatus + loadBalancer?: corev1.LoadBalancerStatus diff --git a/k8s/1.21/api/node/v1/scheduling.k b/k8s/1.21/api/node/v1/scheduling.k index b7904f85..593e8d61 100644 --- a/k8s/1.21/api/node/v1/scheduling.k +++ b/k8s/1.21/api/node/v1/scheduling.k @@ -3,7 +3,7 @@ This is the scheduling module in k8s.api.node.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 +import api.core.v1 as corev1 schema Scheduling: @@ -14,13 +14,13 @@ schema Scheduling: ---------- nodeSelector : {str:str}, default is Undefined, optional nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - tolerations : [v1.Toleration], default is Undefined, optional + tolerations : [corev1.Toleration], default is Undefined, optional tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. """ nodeSelector?: {str:str} - tolerations?: [v1.Toleration] + tolerations?: [corev1.Toleration] diff --git a/k8s/1.21/api/node/v1alpha1/scheduling.k b/k8s/1.21/api/node/v1alpha1/scheduling.k index 359ca2e9..b90cbcd9 100644 --- a/k8s/1.21/api/node/v1alpha1/scheduling.k +++ b/k8s/1.21/api/node/v1alpha1/scheduling.k @@ -3,7 +3,7 @@ This is the scheduling module in k8s.api.node.v1alpha1 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 Scheduling: @@ -14,13 +14,13 @@ schema Scheduling: ---------- nodeSelector : {str:str}, default is Undefined, optional nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - tolerations : [v1.Toleration], default is Undefined, optional + tolerations : [corev1.Toleration], default is Undefined, optional tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. """ nodeSelector?: {str:str} - tolerations?: [v1.Toleration] + tolerations?: [corev1.Toleration] diff --git a/k8s/1.21/api/node/v1beta1/scheduling.k b/k8s/1.21/api/node/v1beta1/scheduling.k index 21d7f359..5ef688e3 100644 --- a/k8s/1.21/api/node/v1beta1/scheduling.k +++ b/k8s/1.21/api/node/v1beta1/scheduling.k @@ -3,7 +3,7 @@ This is the scheduling module in k8s.api.node.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 Scheduling: @@ -14,13 +14,13 @@ schema Scheduling: ---------- nodeSelector : {str:str}, default is Undefined, optional nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - tolerations : [v1.Toleration], default is Undefined, optional + tolerations : [corev1.Toleration], default is Undefined, optional tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. """ nodeSelector?: {str:str} - tolerations?: [v1.Toleration] + tolerations?: [corev1.Toleration] diff --git a/k8s/1.21/api/policy/v1beta1/se_linux_strategy_options.k b/k8s/1.21/api/policy/v1beta1/se_linux_strategy_options.k index db38b01b..2ca9c4ad 100644 --- a/k8s/1.21/api/policy/v1beta1/se_linux_strategy_options.k +++ b/k8s/1.21/api/policy/v1beta1/se_linux_strategy_options.k @@ -3,7 +3,7 @@ This is the se_linux_strategy_options module in k8s.api.policy.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 SELinuxStrategyOptions: @@ -14,13 +14,13 @@ schema SELinuxStrategyOptions: ---------- $rule : str, default is Undefined, required rule is the strategy that will dictate the allowable labels that may be set. - seLinuxOptions : v1.SELinuxOptions, default is Undefined, optional + seLinuxOptions : corev1.SELinuxOptions, default is Undefined, optional seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ """ $rule: str - seLinuxOptions?: v1.SELinuxOptions + seLinuxOptions?: corev1.SELinuxOptions diff --git a/k8s/1.21/api/storage/v1/storage_class.k b/k8s/1.21/api/storage/v1/storage_class.k index 351af9b5..c6ef3db4 100644 --- a/k8s/1.21/api/storage/v1/storage_class.k +++ b/k8s/1.21/api/storage/v1/storage_class.k @@ -3,8 +3,8 @@ This is the storage_class module in k8s.api.storage.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 -import apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema StorageClass: @@ -17,13 +17,13 @@ schema StorageClass: ---------- allowVolumeExpansion : bool, default is Undefined, optional AllowVolumeExpansion shows whether the storage class allow volume expand - allowedTopologies : [v1.TopologySelectorTerm], default is Undefined, optional + allowedTopologies : [corev1.TopologySelectorTerm], default is Undefined, optional Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. apiVersion : str, default is "storage.k8s.io/v1", required APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources kind : str, default is "StorageClass", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata mountOptions : [str], default is Undefined, optional Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. @@ -40,13 +40,13 @@ schema StorageClass: allowVolumeExpansion?: bool - allowedTopologies?: [v1.TopologySelectorTerm] + allowedTopologies?: [corev1.TopologySelectorTerm] apiVersion: "storage.k8s.io/v1" = "storage.k8s.io/v1" kind: "StorageClass" = "StorageClass" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta mountOptions?: [str] diff --git a/k8s/1.21/api/storage/v1/volume_attachment_source.k b/k8s/1.21/api/storage/v1/volume_attachment_source.k index 11213d5d..ed5a5959 100644 --- a/k8s/1.21/api/storage/v1/volume_attachment_source.k +++ b/k8s/1.21/api/storage/v1/volume_attachment_source.k @@ -3,7 +3,7 @@ This is the volume_attachment_source module in k8s.api.storage.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 +import api.core.v1 as corev1 schema VolumeAttachmentSource: @@ -12,14 +12,14 @@ schema VolumeAttachmentSource: Attributes ---------- - inlineVolumeSpec : v1.PersistentVolumeSpec, default is Undefined, optional + inlineVolumeSpec : corev1.PersistentVolumeSpec, default is Undefined, optional inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature. persistentVolumeName : str, default is Undefined, optional Name of the persistent volume to attach. """ - inlineVolumeSpec?: v1.PersistentVolumeSpec + inlineVolumeSpec?: corev1.PersistentVolumeSpec persistentVolumeName?: str diff --git a/k8s/1.21/api/storage/v1alpha1/volume_attachment_source.k b/k8s/1.21/api/storage/v1alpha1/volume_attachment_source.k index 61209a6a..7e9611f9 100644 --- a/k8s/1.21/api/storage/v1alpha1/volume_attachment_source.k +++ b/k8s/1.21/api/storage/v1alpha1/volume_attachment_source.k @@ -3,7 +3,7 @@ This is the volume_attachment_source module in k8s.api.storage.v1alpha1 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 VolumeAttachmentSource: @@ -12,14 +12,14 @@ schema VolumeAttachmentSource: Attributes ---------- - inlineVolumeSpec : v1.PersistentVolumeSpec, default is Undefined, optional + inlineVolumeSpec : corev1.PersistentVolumeSpec, default is Undefined, optional inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. persistentVolumeName : str, default is Undefined, optional Name of the persistent volume to attach. """ - inlineVolumeSpec?: v1.PersistentVolumeSpec + inlineVolumeSpec?: corev1.PersistentVolumeSpec persistentVolumeName?: str diff --git a/k8s/1.21/api/storage/v1beta1/storage_class.k b/k8s/1.21/api/storage/v1beta1/storage_class.k index e0750fb3..c71261f8 100644 --- a/k8s/1.21/api/storage/v1beta1/storage_class.k +++ b/k8s/1.21/api/storage/v1beta1/storage_class.k @@ -3,8 +3,8 @@ This is the storage_class module in k8s.api.storage.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 apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema StorageClass: @@ -17,13 +17,13 @@ schema StorageClass: ---------- allowVolumeExpansion : bool, default is Undefined, optional AllowVolumeExpansion shows whether the storage class allow volume expand - allowedTopologies : [v1.TopologySelectorTerm], default is Undefined, optional + allowedTopologies : [corev1.TopologySelectorTerm], default is Undefined, optional Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. apiVersion : str, default is "storage.k8s.io/v1beta1", required APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources kind : str, default is "StorageClass", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata mountOptions : [str], default is Undefined, optional Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. @@ -40,13 +40,13 @@ schema StorageClass: allowVolumeExpansion?: bool - allowedTopologies?: [v1.TopologySelectorTerm] + allowedTopologies?: [corev1.TopologySelectorTerm] apiVersion: "storage.k8s.io/v1beta1" = "storage.k8s.io/v1beta1" kind: "StorageClass" = "StorageClass" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta mountOptions?: [str] diff --git a/k8s/1.21/api/storage/v1beta1/volume_attachment_source.k b/k8s/1.21/api/storage/v1beta1/volume_attachment_source.k index 5932f282..c5e83ca0 100644 --- a/k8s/1.21/api/storage/v1beta1/volume_attachment_source.k +++ b/k8s/1.21/api/storage/v1beta1/volume_attachment_source.k @@ -3,7 +3,7 @@ This is the volume_attachment_source module in k8s.api.storage.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 VolumeAttachmentSource: @@ -12,14 +12,14 @@ schema VolumeAttachmentSource: Attributes ---------- - inlineVolumeSpec : v1.PersistentVolumeSpec, default is Undefined, optional + inlineVolumeSpec : corev1.PersistentVolumeSpec, default is Undefined, optional inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature. persistentVolumeName : str, default is Undefined, optional Name of the persistent volume to attach. """ - inlineVolumeSpec?: v1.PersistentVolumeSpec + inlineVolumeSpec?: corev1.PersistentVolumeSpec persistentVolumeName?: str diff --git a/k8s/1.21/kcl.mod b/k8s/1.21/kcl.mod index 0525696a..bbe6a207 100644 --- a/k8s/1.21/kcl.mod +++ b/k8s/1.21/kcl.mod @@ -1,5 +1,5 @@ [package] name = "k8s" edition = "*" -version = "1.21" +version = "1.21.1" description = "`k8s` is a KCL module contains all the built-in Kubernetes resource models (the CRDs are not included here)." diff --git a/k8s/1.22/api/apps/v1/daemon_set_spec.k b/k8s/1.22/api/apps/v1/daemon_set_spec.k index d26e3e9d..caf3faf8 100644 --- a/k8s/1.22/api/apps/v1/daemon_set_spec.k +++ b/k8s/1.22/api/apps/v1/daemon_set_spec.k @@ -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 @@ -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. @@ -32,7 +32,7 @@ schema DaemonSetSpec: selector: v1.LabelSelector - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: DaemonSetUpdateStrategy diff --git a/k8s/1.22/api/apps/v1/deployment_spec.k b/k8s/1.22/api/apps/v1/deployment_spec.k index 1bbe7887..b8591d9a 100644 --- a/k8s/1.22/api/apps/v1/deployment_spec.k +++ b/k8s/1.22/api/apps/v1/deployment_spec.k @@ -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 @@ -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. """ @@ -46,6 +46,6 @@ schema DeploymentSpec: strategy?: DeploymentStrategy - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec diff --git a/k8s/1.22/api/apps/v1/replica_set_spec.k b/k8s/1.22/api/apps/v1/replica_set_spec.k index a1572bc1..700810d3 100644 --- a/k8s/1.22/api/apps/v1/replica_set_spec.k +++ b/k8s/1.22/api/apps/v1/replica_set_spec.k @@ -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 @@ -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 """ @@ -30,6 +30,6 @@ schema ReplicaSetSpec: selector: v1.LabelSelector - template?: coreV1.PodTemplateSpec + template?: corev1.PodTemplateSpec diff --git a/k8s/1.22/api/apps/v1/stateful_set_spec.k b/k8s/1.22/api/apps/v1/stateful_set_spec.k index 504203c0..4bdfe367 100644 --- a/k8s/1.22/api/apps/v1/stateful_set_spec.k +++ b/k8s/1.22/api/apps/v1/stateful_set_spec.k @@ -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 @@ -25,11 +25,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. """ @@ -46,10 +46,10 @@ schema StatefulSetSpec: serviceName: str - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: StatefulSetUpdateStrategy - volumeClaimTemplates?: [coreV1.PersistentVolumeClaim] + volumeClaimTemplates?: [corev1.PersistentVolumeClaim] diff --git a/k8s/1.22/api/batch/v1/cron_job_status.k b/k8s/1.22/api/batch/v1/cron_job_status.k index bc07fdb1..420347ff 100644 --- a/k8s/1.22/api/batch/v1/cron_job_status.k +++ b/k8s/1.22/api/batch/v1/cron_job_status.k @@ -3,7 +3,7 @@ This is the cron_job_status 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 +import api.core.v1 as corev1 schema CronJobStatus: @@ -12,7 +12,7 @@ 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. @@ -21,7 +21,7 @@ schema CronJobStatus: """ - active?: [v1.ObjectReference] + active?: [corev1.ObjectReference] lastScheduleTime?: str diff --git a/k8s/1.22/api/batch/v1/job_spec.k b/k8s/1.22/api/batch/v1/job_spec.k index 1c4751eb..f2efeedd 100644 --- a/k8s/1.22/api/batch/v1/job_spec.k +++ b/k8s/1.22/api/batch/v1/job_spec.k @@ -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 @@ -37,7 +37,7 @@ schema JobSpec: Suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false. This field is beta-level, gated by SuspendJob feature flag (enabled by default). - 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. @@ -60,7 +60,7 @@ schema JobSpec: suspend?: bool - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec ttlSecondsAfterFinished?: int diff --git a/k8s/1.22/api/batch/v1beta1/cron_job_status.k b/k8s/1.22/api/batch/v1beta1/cron_job_status.k index a1c88d48..d11aca1f 100644 --- a/k8s/1.22/api/batch/v1beta1/cron_job_status.k +++ b/k8s/1.22/api/batch/v1beta1/cron_job_status.k @@ -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: @@ -12,7 +12,7 @@ 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. @@ -21,7 +21,7 @@ schema CronJobStatus: """ - active?: [v1.ObjectReference] + active?: [corev1.ObjectReference] lastScheduleTime?: str diff --git a/k8s/1.22/api/discovery/v1/endpoint.k b/k8s/1.22/api/discovery/v1/endpoint.k index c8dd0b66..ca97ea92 100644 --- a/k8s/1.22/api/discovery/v1/endpoint.k +++ b/k8s/1.22/api/discovery/v1/endpoint.k @@ -3,7 +3,7 @@ This is the endpoint module in k8s.api.discovery.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 +import api.core.v1 as corev1 schema Endpoint: @@ -24,7 +24,7 @@ schema Endpoint: hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation. nodeName : str, default is Undefined, optional nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. This field can be enabled with the EndpointSliceNodeName feature gate. - targetRef : v1.ObjectReference, default is Undefined, optional + targetRef : corev1.ObjectReference, default is Undefined, optional targetRef is a reference to a Kubernetes object that represents this endpoint. zone : str, default is Undefined, optional zone is the name of the Zone this endpoint exists in. @@ -43,7 +43,7 @@ schema Endpoint: nodeName?: str - targetRef?: v1.ObjectReference + targetRef?: corev1.ObjectReference zone?: str diff --git a/k8s/1.22/api/discovery/v1beta1/endpoint.k b/k8s/1.22/api/discovery/v1beta1/endpoint.k index b3f6978c..9aba50c4 100644 --- a/k8s/1.22/api/discovery/v1beta1/endpoint.k +++ b/k8s/1.22/api/discovery/v1beta1/endpoint.k @@ -3,7 +3,7 @@ This is the endpoint module in k8s.api.discovery.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 Endpoint: @@ -22,7 +22,7 @@ schema Endpoint: hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation. nodeName : str, default is Undefined, optional nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. This field can be enabled with the EndpointSliceNodeName feature gate. - targetRef : v1.ObjectReference, default is Undefined, optional + targetRef : corev1.ObjectReference, default is Undefined, optional targetRef is a reference to a Kubernetes object that represents this endpoint. topology : {str:str}, default is Undefined, optional topology contains arbitrary topology information associated with the endpoint. These key/value pairs must conform with the label format. https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Topology may include a maximum of 16 key/value pairs. This includes, but is not limited to the following well known keys: * kubernetes.io/hostname: the value indicates the hostname of the node @@ -46,7 +46,7 @@ schema Endpoint: nodeName?: str - targetRef?: v1.ObjectReference + targetRef?: corev1.ObjectReference topology?: {str:str} diff --git a/k8s/1.22/api/events/v1/event.k b/k8s/1.22/api/events/v1/event.k index 0141a1f4..67b0e016 100644 --- a/k8s/1.22/api/events/v1/event.k +++ b/k8s/1.22/api/events/v1/event.k @@ -3,8 +3,8 @@ This is the event module in k8s.api.events.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 -import apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema Event: @@ -23,21 +23,21 @@ schema Event: deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. deprecatedLastTimestamp : str, default is Undefined, optional deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. - deprecatedSource : v1.EventSource, default is Undefined, optional + deprecatedSource : corev1.EventSource, default is Undefined, optional deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. eventTime : str, default is Undefined, required eventTime is the time when this Event was first observed. It is required. kind : str, default is "Event", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata note : str, default is Undefined, optional note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. reason : str, default is Undefined, optional reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters. - regarding : v1.ObjectReference, default is Undefined, optional + regarding : corev1.ObjectReference, default is Undefined, optional regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. - related : v1.ObjectReference, default is Undefined, optional + related : corev1.ObjectReference, default is Undefined, optional related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. reportingController : str, default is Undefined, optional reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. @@ -60,21 +60,21 @@ schema Event: deprecatedLastTimestamp?: str - deprecatedSource?: v1.EventSource + deprecatedSource?: corev1.EventSource eventTime: str kind: "Event" = "Event" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta note?: str reason?: str - regarding?: v1.ObjectReference + regarding?: corev1.ObjectReference - related?: v1.ObjectReference + related?: corev1.ObjectReference reportingController?: str diff --git a/k8s/1.22/api/events/v1beta1/event.k b/k8s/1.22/api/events/v1beta1/event.k index 6fbc668a..0e18a1d6 100644 --- a/k8s/1.22/api/events/v1beta1/event.k +++ b/k8s/1.22/api/events/v1beta1/event.k @@ -3,8 +3,8 @@ This is the event module in k8s.api.events.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 apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema Event: @@ -23,21 +23,21 @@ schema Event: deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. deprecatedLastTimestamp : str, default is Undefined, optional deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. - deprecatedSource : v1.EventSource, default is Undefined, optional + deprecatedSource : corev1.EventSource, default is Undefined, optional deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. eventTime : str, default is Undefined, required eventTime is the time when this Event was first observed. It is required. kind : str, default is "Event", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata note : str, default is Undefined, optional note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. reason : str, default is Undefined, optional reason is why the action was taken. It is human-readable. This field can have at most 128 characters. - regarding : v1.ObjectReference, default is Undefined, optional + regarding : corev1.ObjectReference, default is Undefined, optional regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. - related : v1.ObjectReference, default is Undefined, optional + related : corev1.ObjectReference, default is Undefined, optional related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. reportingController : str, default is Undefined, optional reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. @@ -60,21 +60,21 @@ schema Event: deprecatedLastTimestamp?: str - deprecatedSource?: v1.EventSource + deprecatedSource?: corev1.EventSource eventTime: str kind: "Event" = "Event" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta note?: str reason?: str - regarding?: v1.ObjectReference + regarding?: corev1.ObjectReference - related?: v1.ObjectReference + related?: corev1.ObjectReference reportingController?: str diff --git a/k8s/1.22/api/networking/v1/ingress_backend.k b/k8s/1.22/api/networking/v1/ingress_backend.k index a21e4ca1..d4d7eb0c 100644 --- a/k8s/1.22/api/networking/v1/ingress_backend.k +++ b/k8s/1.22/api/networking/v1/ingress_backend.k @@ -3,7 +3,7 @@ This is the ingress_backend module in k8s.api.networking.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 +import api.core.v1 as corev1 schema IngressBackend: @@ -12,14 +12,14 @@ schema IngressBackend: Attributes ---------- - resource : v1.TypedLocalObjectReference, default is Undefined, optional + resource : corev1.TypedLocalObjectReference, default is Undefined, optional Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with "Service". service : IngressServiceBackend, default is Undefined, optional Service references a Service as a Backend. This is a mutually exclusive setting with "Resource". """ - resource?: v1.TypedLocalObjectReference + resource?: corev1.TypedLocalObjectReference service?: IngressServiceBackend diff --git a/k8s/1.22/api/networking/v1/ingress_status.k b/k8s/1.22/api/networking/v1/ingress_status.k index 609ea64d..592c30c6 100644 --- a/k8s/1.22/api/networking/v1/ingress_status.k +++ b/k8s/1.22/api/networking/v1/ingress_status.k @@ -3,7 +3,7 @@ This is the ingress_status module in k8s.api.networking.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 +import api.core.v1 as corev1 schema IngressStatus: @@ -12,11 +12,11 @@ schema IngressStatus: Attributes ---------- - loadBalancer : v1.LoadBalancerStatus, default is Undefined, optional + loadBalancer : corev1.LoadBalancerStatus, default is Undefined, optional LoadBalancer contains the current status of the load-balancer. """ - loadBalancer?: v1.LoadBalancerStatus + loadBalancer?: corev1.LoadBalancerStatus diff --git a/k8s/1.22/api/node/v1/scheduling.k b/k8s/1.22/api/node/v1/scheduling.k index b7904f85..593e8d61 100644 --- a/k8s/1.22/api/node/v1/scheduling.k +++ b/k8s/1.22/api/node/v1/scheduling.k @@ -3,7 +3,7 @@ This is the scheduling module in k8s.api.node.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 +import api.core.v1 as corev1 schema Scheduling: @@ -14,13 +14,13 @@ schema Scheduling: ---------- nodeSelector : {str:str}, default is Undefined, optional nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - tolerations : [v1.Toleration], default is Undefined, optional + tolerations : [corev1.Toleration], default is Undefined, optional tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. """ nodeSelector?: {str:str} - tolerations?: [v1.Toleration] + tolerations?: [corev1.Toleration] diff --git a/k8s/1.22/api/node/v1alpha1/scheduling.k b/k8s/1.22/api/node/v1alpha1/scheduling.k index 359ca2e9..b90cbcd9 100644 --- a/k8s/1.22/api/node/v1alpha1/scheduling.k +++ b/k8s/1.22/api/node/v1alpha1/scheduling.k @@ -3,7 +3,7 @@ This is the scheduling module in k8s.api.node.v1alpha1 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 Scheduling: @@ -14,13 +14,13 @@ schema Scheduling: ---------- nodeSelector : {str:str}, default is Undefined, optional nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - tolerations : [v1.Toleration], default is Undefined, optional + tolerations : [corev1.Toleration], default is Undefined, optional tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. """ nodeSelector?: {str:str} - tolerations?: [v1.Toleration] + tolerations?: [corev1.Toleration] diff --git a/k8s/1.22/api/node/v1beta1/scheduling.k b/k8s/1.22/api/node/v1beta1/scheduling.k index 21d7f359..5ef688e3 100644 --- a/k8s/1.22/api/node/v1beta1/scheduling.k +++ b/k8s/1.22/api/node/v1beta1/scheduling.k @@ -3,7 +3,7 @@ This is the scheduling module in k8s.api.node.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 Scheduling: @@ -14,13 +14,13 @@ schema Scheduling: ---------- nodeSelector : {str:str}, default is Undefined, optional nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - tolerations : [v1.Toleration], default is Undefined, optional + tolerations : [corev1.Toleration], default is Undefined, optional tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. """ nodeSelector?: {str:str} - tolerations?: [v1.Toleration] + tolerations?: [corev1.Toleration] diff --git a/k8s/1.22/api/policy/v1beta1/se_linux_strategy_options.k b/k8s/1.22/api/policy/v1beta1/se_linux_strategy_options.k index db38b01b..2ca9c4ad 100644 --- a/k8s/1.22/api/policy/v1beta1/se_linux_strategy_options.k +++ b/k8s/1.22/api/policy/v1beta1/se_linux_strategy_options.k @@ -3,7 +3,7 @@ This is the se_linux_strategy_options module in k8s.api.policy.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 SELinuxStrategyOptions: @@ -14,13 +14,13 @@ schema SELinuxStrategyOptions: ---------- $rule : str, default is Undefined, required rule is the strategy that will dictate the allowable labels that may be set. - seLinuxOptions : v1.SELinuxOptions, default is Undefined, optional + seLinuxOptions : corev1.SELinuxOptions, default is Undefined, optional seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ """ $rule: str - seLinuxOptions?: v1.SELinuxOptions + seLinuxOptions?: corev1.SELinuxOptions diff --git a/k8s/1.22/api/storage/v1/storage_class.k b/k8s/1.22/api/storage/v1/storage_class.k index 351af9b5..c6ef3db4 100644 --- a/k8s/1.22/api/storage/v1/storage_class.k +++ b/k8s/1.22/api/storage/v1/storage_class.k @@ -3,8 +3,8 @@ This is the storage_class module in k8s.api.storage.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 -import apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema StorageClass: @@ -17,13 +17,13 @@ schema StorageClass: ---------- allowVolumeExpansion : bool, default is Undefined, optional AllowVolumeExpansion shows whether the storage class allow volume expand - allowedTopologies : [v1.TopologySelectorTerm], default is Undefined, optional + allowedTopologies : [corev1.TopologySelectorTerm], default is Undefined, optional Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. apiVersion : str, default is "storage.k8s.io/v1", required APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources kind : str, default is "StorageClass", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata mountOptions : [str], default is Undefined, optional Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. @@ -40,13 +40,13 @@ schema StorageClass: allowVolumeExpansion?: bool - allowedTopologies?: [v1.TopologySelectorTerm] + allowedTopologies?: [corev1.TopologySelectorTerm] apiVersion: "storage.k8s.io/v1" = "storage.k8s.io/v1" kind: "StorageClass" = "StorageClass" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta mountOptions?: [str] diff --git a/k8s/1.22/api/storage/v1/volume_attachment_source.k b/k8s/1.22/api/storage/v1/volume_attachment_source.k index 11213d5d..ed5a5959 100644 --- a/k8s/1.22/api/storage/v1/volume_attachment_source.k +++ b/k8s/1.22/api/storage/v1/volume_attachment_source.k @@ -3,7 +3,7 @@ This is the volume_attachment_source module in k8s.api.storage.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 +import api.core.v1 as corev1 schema VolumeAttachmentSource: @@ -12,14 +12,14 @@ schema VolumeAttachmentSource: Attributes ---------- - inlineVolumeSpec : v1.PersistentVolumeSpec, default is Undefined, optional + inlineVolumeSpec : corev1.PersistentVolumeSpec, default is Undefined, optional inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature. persistentVolumeName : str, default is Undefined, optional Name of the persistent volume to attach. """ - inlineVolumeSpec?: v1.PersistentVolumeSpec + inlineVolumeSpec?: corev1.PersistentVolumeSpec persistentVolumeName?: str diff --git a/k8s/1.22/api/storage/v1alpha1/volume_attachment_source.k b/k8s/1.22/api/storage/v1alpha1/volume_attachment_source.k index 61209a6a..7e9611f9 100644 --- a/k8s/1.22/api/storage/v1alpha1/volume_attachment_source.k +++ b/k8s/1.22/api/storage/v1alpha1/volume_attachment_source.k @@ -3,7 +3,7 @@ This is the volume_attachment_source module in k8s.api.storage.v1alpha1 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 VolumeAttachmentSource: @@ -12,14 +12,14 @@ schema VolumeAttachmentSource: Attributes ---------- - inlineVolumeSpec : v1.PersistentVolumeSpec, default is Undefined, optional + inlineVolumeSpec : corev1.PersistentVolumeSpec, default is Undefined, optional inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. persistentVolumeName : str, default is Undefined, optional Name of the persistent volume to attach. """ - inlineVolumeSpec?: v1.PersistentVolumeSpec + inlineVolumeSpec?: corev1.PersistentVolumeSpec persistentVolumeName?: str diff --git a/k8s/1.22/kcl.mod b/k8s/1.22/kcl.mod index 2e67afc8..0759d0b2 100644 --- a/k8s/1.22/kcl.mod +++ b/k8s/1.22/kcl.mod @@ -1,5 +1,5 @@ [package] name = "k8s" edition = "*" -version = "1.22" +version = "1.22.1" description = "`k8s` is a KCL module contains all the built-in Kubernetes resource models (the CRDs are not included here)." diff --git a/k8s/1.23/api/apps/v1/daemon_set_spec.k b/k8s/1.23/api/apps/v1/daemon_set_spec.k index d26e3e9d..caf3faf8 100644 --- a/k8s/1.23/api/apps/v1/daemon_set_spec.k +++ b/k8s/1.23/api/apps/v1/daemon_set_spec.k @@ -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 @@ -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. @@ -32,7 +32,7 @@ schema DaemonSetSpec: selector: v1.LabelSelector - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: DaemonSetUpdateStrategy diff --git a/k8s/1.23/api/apps/v1/deployment_spec.k b/k8s/1.23/api/apps/v1/deployment_spec.k index 1bbe7887..b8591d9a 100644 --- a/k8s/1.23/api/apps/v1/deployment_spec.k +++ b/k8s/1.23/api/apps/v1/deployment_spec.k @@ -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 @@ -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. """ @@ -46,6 +46,6 @@ schema DeploymentSpec: strategy?: DeploymentStrategy - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec diff --git a/k8s/1.23/api/apps/v1/replica_set_spec.k b/k8s/1.23/api/apps/v1/replica_set_spec.k index a1572bc1..700810d3 100644 --- a/k8s/1.23/api/apps/v1/replica_set_spec.k +++ b/k8s/1.23/api/apps/v1/replica_set_spec.k @@ -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 @@ -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 """ @@ -30,6 +30,6 @@ schema ReplicaSetSpec: selector: v1.LabelSelector - template?: coreV1.PodTemplateSpec + template?: corev1.PodTemplateSpec diff --git a/k8s/1.23/api/apps/v1/stateful_set_spec.k b/k8s/1.23/api/apps/v1/stateful_set_spec.k index be5e5e6a..d57e7ed3 100644 --- a/k8s/1.23/api/apps/v1/stateful_set_spec.k +++ b/k8s/1.23/api/apps/v1/stateful_set_spec.k @@ -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 @@ -29,11 +29,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. """ @@ -52,10 +52,10 @@ schema StatefulSetSpec: serviceName: str - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: StatefulSetUpdateStrategy - volumeClaimTemplates?: [coreV1.PersistentVolumeClaim] + volumeClaimTemplates?: [corev1.PersistentVolumeClaim] diff --git a/k8s/1.23/api/batch/v1/cron_job_status.k b/k8s/1.23/api/batch/v1/cron_job_status.k index bc07fdb1..420347ff 100644 --- a/k8s/1.23/api/batch/v1/cron_job_status.k +++ b/k8s/1.23/api/batch/v1/cron_job_status.k @@ -3,7 +3,7 @@ This is the cron_job_status 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 +import api.core.v1 as corev1 schema CronJobStatus: @@ -12,7 +12,7 @@ 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. @@ -21,7 +21,7 @@ schema CronJobStatus: """ - active?: [v1.ObjectReference] + active?: [corev1.ObjectReference] lastScheduleTime?: str diff --git a/k8s/1.23/api/batch/v1/job_spec.k b/k8s/1.23/api/batch/v1/job_spec.k index 20fa7350..d6a374a8 100644 --- a/k8s/1.23/api/batch/v1/job_spec.k +++ b/k8s/1.23/api/batch/v1/job_spec.k @@ -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 @@ -37,7 +37,7 @@ schema JobSpec: Suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false. This field is beta-level, gated by SuspendJob feature flag (enabled by default). - 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. @@ -60,7 +60,7 @@ schema JobSpec: suspend?: bool - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec ttlSecondsAfterFinished?: int diff --git a/k8s/1.23/api/batch/v1beta1/cron_job_status.k b/k8s/1.23/api/batch/v1beta1/cron_job_status.k index a1c88d48..d11aca1f 100644 --- a/k8s/1.23/api/batch/v1beta1/cron_job_status.k +++ b/k8s/1.23/api/batch/v1beta1/cron_job_status.k @@ -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: @@ -12,7 +12,7 @@ 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. @@ -21,7 +21,7 @@ schema CronJobStatus: """ - active?: [v1.ObjectReference] + active?: [corev1.ObjectReference] lastScheduleTime?: str diff --git a/k8s/1.23/api/discovery/v1/endpoint.k b/k8s/1.23/api/discovery/v1/endpoint.k index c8dd0b66..ca97ea92 100644 --- a/k8s/1.23/api/discovery/v1/endpoint.k +++ b/k8s/1.23/api/discovery/v1/endpoint.k @@ -3,7 +3,7 @@ This is the endpoint module in k8s.api.discovery.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 +import api.core.v1 as corev1 schema Endpoint: @@ -24,7 +24,7 @@ schema Endpoint: hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation. nodeName : str, default is Undefined, optional nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. This field can be enabled with the EndpointSliceNodeName feature gate. - targetRef : v1.ObjectReference, default is Undefined, optional + targetRef : corev1.ObjectReference, default is Undefined, optional targetRef is a reference to a Kubernetes object that represents this endpoint. zone : str, default is Undefined, optional zone is the name of the Zone this endpoint exists in. @@ -43,7 +43,7 @@ schema Endpoint: nodeName?: str - targetRef?: v1.ObjectReference + targetRef?: corev1.ObjectReference zone?: str diff --git a/k8s/1.23/api/discovery/v1beta1/endpoint.k b/k8s/1.23/api/discovery/v1beta1/endpoint.k index b3f6978c..9aba50c4 100644 --- a/k8s/1.23/api/discovery/v1beta1/endpoint.k +++ b/k8s/1.23/api/discovery/v1beta1/endpoint.k @@ -3,7 +3,7 @@ This is the endpoint module in k8s.api.discovery.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 Endpoint: @@ -22,7 +22,7 @@ schema Endpoint: hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation. nodeName : str, default is Undefined, optional nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. This field can be enabled with the EndpointSliceNodeName feature gate. - targetRef : v1.ObjectReference, default is Undefined, optional + targetRef : corev1.ObjectReference, default is Undefined, optional targetRef is a reference to a Kubernetes object that represents this endpoint. topology : {str:str}, default is Undefined, optional topology contains arbitrary topology information associated with the endpoint. These key/value pairs must conform with the label format. https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Topology may include a maximum of 16 key/value pairs. This includes, but is not limited to the following well known keys: * kubernetes.io/hostname: the value indicates the hostname of the node @@ -46,7 +46,7 @@ schema Endpoint: nodeName?: str - targetRef?: v1.ObjectReference + targetRef?: corev1.ObjectReference topology?: {str:str} diff --git a/k8s/1.23/api/events/v1/event.k b/k8s/1.23/api/events/v1/event.k index 0141a1f4..67b0e016 100644 --- a/k8s/1.23/api/events/v1/event.k +++ b/k8s/1.23/api/events/v1/event.k @@ -3,8 +3,8 @@ This is the event module in k8s.api.events.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 -import apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema Event: @@ -23,21 +23,21 @@ schema Event: deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. deprecatedLastTimestamp : str, default is Undefined, optional deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. - deprecatedSource : v1.EventSource, default is Undefined, optional + deprecatedSource : corev1.EventSource, default is Undefined, optional deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. eventTime : str, default is Undefined, required eventTime is the time when this Event was first observed. It is required. kind : str, default is "Event", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata note : str, default is Undefined, optional note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. reason : str, default is Undefined, optional reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters. - regarding : v1.ObjectReference, default is Undefined, optional + regarding : corev1.ObjectReference, default is Undefined, optional regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. - related : v1.ObjectReference, default is Undefined, optional + related : corev1.ObjectReference, default is Undefined, optional related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. reportingController : str, default is Undefined, optional reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. @@ -60,21 +60,21 @@ schema Event: deprecatedLastTimestamp?: str - deprecatedSource?: v1.EventSource + deprecatedSource?: corev1.EventSource eventTime: str kind: "Event" = "Event" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta note?: str reason?: str - regarding?: v1.ObjectReference + regarding?: corev1.ObjectReference - related?: v1.ObjectReference + related?: corev1.ObjectReference reportingController?: str diff --git a/k8s/1.23/api/events/v1beta1/event.k b/k8s/1.23/api/events/v1beta1/event.k index 6fbc668a..0e18a1d6 100644 --- a/k8s/1.23/api/events/v1beta1/event.k +++ b/k8s/1.23/api/events/v1beta1/event.k @@ -3,8 +3,8 @@ This is the event module in k8s.api.events.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 apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema Event: @@ -23,21 +23,21 @@ schema Event: deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. deprecatedLastTimestamp : str, default is Undefined, optional deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. - deprecatedSource : v1.EventSource, default is Undefined, optional + deprecatedSource : corev1.EventSource, default is Undefined, optional deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. eventTime : str, default is Undefined, required eventTime is the time when this Event was first observed. It is required. kind : str, default is "Event", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata note : str, default is Undefined, optional note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. reason : str, default is Undefined, optional reason is why the action was taken. It is human-readable. This field can have at most 128 characters. - regarding : v1.ObjectReference, default is Undefined, optional + regarding : corev1.ObjectReference, default is Undefined, optional regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. - related : v1.ObjectReference, default is Undefined, optional + related : corev1.ObjectReference, default is Undefined, optional related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. reportingController : str, default is Undefined, optional reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. @@ -60,21 +60,21 @@ schema Event: deprecatedLastTimestamp?: str - deprecatedSource?: v1.EventSource + deprecatedSource?: corev1.EventSource eventTime: str kind: "Event" = "Event" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta note?: str reason?: str - regarding?: v1.ObjectReference + regarding?: corev1.ObjectReference - related?: v1.ObjectReference + related?: corev1.ObjectReference reportingController?: str diff --git a/k8s/1.23/api/networking/v1/ingress_backend.k b/k8s/1.23/api/networking/v1/ingress_backend.k index a21e4ca1..d4d7eb0c 100644 --- a/k8s/1.23/api/networking/v1/ingress_backend.k +++ b/k8s/1.23/api/networking/v1/ingress_backend.k @@ -3,7 +3,7 @@ This is the ingress_backend module in k8s.api.networking.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 +import api.core.v1 as corev1 schema IngressBackend: @@ -12,14 +12,14 @@ schema IngressBackend: Attributes ---------- - resource : v1.TypedLocalObjectReference, default is Undefined, optional + resource : corev1.TypedLocalObjectReference, default is Undefined, optional Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with "Service". service : IngressServiceBackend, default is Undefined, optional Service references a Service as a Backend. This is a mutually exclusive setting with "Resource". """ - resource?: v1.TypedLocalObjectReference + resource?: corev1.TypedLocalObjectReference service?: IngressServiceBackend diff --git a/k8s/1.23/api/networking/v1/ingress_status.k b/k8s/1.23/api/networking/v1/ingress_status.k index 609ea64d..592c30c6 100644 --- a/k8s/1.23/api/networking/v1/ingress_status.k +++ b/k8s/1.23/api/networking/v1/ingress_status.k @@ -3,7 +3,7 @@ This is the ingress_status module in k8s.api.networking.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 +import api.core.v1 as corev1 schema IngressStatus: @@ -12,11 +12,11 @@ schema IngressStatus: Attributes ---------- - loadBalancer : v1.LoadBalancerStatus, default is Undefined, optional + loadBalancer : corev1.LoadBalancerStatus, default is Undefined, optional LoadBalancer contains the current status of the load-balancer. """ - loadBalancer?: v1.LoadBalancerStatus + loadBalancer?: corev1.LoadBalancerStatus diff --git a/k8s/1.23/api/node/v1/scheduling.k b/k8s/1.23/api/node/v1/scheduling.k index b7904f85..593e8d61 100644 --- a/k8s/1.23/api/node/v1/scheduling.k +++ b/k8s/1.23/api/node/v1/scheduling.k @@ -3,7 +3,7 @@ This is the scheduling module in k8s.api.node.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 +import api.core.v1 as corev1 schema Scheduling: @@ -14,13 +14,13 @@ schema Scheduling: ---------- nodeSelector : {str:str}, default is Undefined, optional nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - tolerations : [v1.Toleration], default is Undefined, optional + tolerations : [corev1.Toleration], default is Undefined, optional tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. """ nodeSelector?: {str:str} - tolerations?: [v1.Toleration] + tolerations?: [corev1.Toleration] diff --git a/k8s/1.23/api/node/v1alpha1/scheduling.k b/k8s/1.23/api/node/v1alpha1/scheduling.k index 359ca2e9..b90cbcd9 100644 --- a/k8s/1.23/api/node/v1alpha1/scheduling.k +++ b/k8s/1.23/api/node/v1alpha1/scheduling.k @@ -3,7 +3,7 @@ This is the scheduling module in k8s.api.node.v1alpha1 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 Scheduling: @@ -14,13 +14,13 @@ schema Scheduling: ---------- nodeSelector : {str:str}, default is Undefined, optional nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - tolerations : [v1.Toleration], default is Undefined, optional + tolerations : [corev1.Toleration], default is Undefined, optional tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. """ nodeSelector?: {str:str} - tolerations?: [v1.Toleration] + tolerations?: [corev1.Toleration] diff --git a/k8s/1.23/api/node/v1beta1/scheduling.k b/k8s/1.23/api/node/v1beta1/scheduling.k index 21d7f359..5ef688e3 100644 --- a/k8s/1.23/api/node/v1beta1/scheduling.k +++ b/k8s/1.23/api/node/v1beta1/scheduling.k @@ -3,7 +3,7 @@ This is the scheduling module in k8s.api.node.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 Scheduling: @@ -14,13 +14,13 @@ schema Scheduling: ---------- nodeSelector : {str:str}, default is Undefined, optional nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - tolerations : [v1.Toleration], default is Undefined, optional + tolerations : [corev1.Toleration], default is Undefined, optional tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. """ nodeSelector?: {str:str} - tolerations?: [v1.Toleration] + tolerations?: [corev1.Toleration] diff --git a/k8s/1.23/api/policy/v1beta1/se_linux_strategy_options.k b/k8s/1.23/api/policy/v1beta1/se_linux_strategy_options.k index db38b01b..2ca9c4ad 100644 --- a/k8s/1.23/api/policy/v1beta1/se_linux_strategy_options.k +++ b/k8s/1.23/api/policy/v1beta1/se_linux_strategy_options.k @@ -3,7 +3,7 @@ This is the se_linux_strategy_options module in k8s.api.policy.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 SELinuxStrategyOptions: @@ -14,13 +14,13 @@ schema SELinuxStrategyOptions: ---------- $rule : str, default is Undefined, required rule is the strategy that will dictate the allowable labels that may be set. - seLinuxOptions : v1.SELinuxOptions, default is Undefined, optional + seLinuxOptions : corev1.SELinuxOptions, default is Undefined, optional seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ """ $rule: str - seLinuxOptions?: v1.SELinuxOptions + seLinuxOptions?: corev1.SELinuxOptions diff --git a/k8s/1.23/api/storage/v1/storage_class.k b/k8s/1.23/api/storage/v1/storage_class.k index 351af9b5..c6ef3db4 100644 --- a/k8s/1.23/api/storage/v1/storage_class.k +++ b/k8s/1.23/api/storage/v1/storage_class.k @@ -3,8 +3,8 @@ This is the storage_class module in k8s.api.storage.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 -import apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema StorageClass: @@ -17,13 +17,13 @@ schema StorageClass: ---------- allowVolumeExpansion : bool, default is Undefined, optional AllowVolumeExpansion shows whether the storage class allow volume expand - allowedTopologies : [v1.TopologySelectorTerm], default is Undefined, optional + allowedTopologies : [corev1.TopologySelectorTerm], default is Undefined, optional Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. apiVersion : str, default is "storage.k8s.io/v1", required APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources kind : str, default is "StorageClass", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata mountOptions : [str], default is Undefined, optional Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. @@ -40,13 +40,13 @@ schema StorageClass: allowVolumeExpansion?: bool - allowedTopologies?: [v1.TopologySelectorTerm] + allowedTopologies?: [corev1.TopologySelectorTerm] apiVersion: "storage.k8s.io/v1" = "storage.k8s.io/v1" kind: "StorageClass" = "StorageClass" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta mountOptions?: [str] diff --git a/k8s/1.23/api/storage/v1/volume_attachment_source.k b/k8s/1.23/api/storage/v1/volume_attachment_source.k index 11213d5d..ed5a5959 100644 --- a/k8s/1.23/api/storage/v1/volume_attachment_source.k +++ b/k8s/1.23/api/storage/v1/volume_attachment_source.k @@ -3,7 +3,7 @@ This is the volume_attachment_source module in k8s.api.storage.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 +import api.core.v1 as corev1 schema VolumeAttachmentSource: @@ -12,14 +12,14 @@ schema VolumeAttachmentSource: Attributes ---------- - inlineVolumeSpec : v1.PersistentVolumeSpec, default is Undefined, optional + inlineVolumeSpec : corev1.PersistentVolumeSpec, default is Undefined, optional inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature. persistentVolumeName : str, default is Undefined, optional Name of the persistent volume to attach. """ - inlineVolumeSpec?: v1.PersistentVolumeSpec + inlineVolumeSpec?: corev1.PersistentVolumeSpec persistentVolumeName?: str diff --git a/k8s/1.23/kcl.mod b/k8s/1.23/kcl.mod index 3adc7edd..9fdfddca 100644 --- a/k8s/1.23/kcl.mod +++ b/k8s/1.23/kcl.mod @@ -1,5 +1,5 @@ [package] name = "k8s" edition = "*" -version = "1.23" +version = "1.23.1" description = "`k8s` is a KCL module contains all the built-in Kubernetes resource models (the CRDs are not included here)." diff --git a/k8s/1.24/api/apps/v1/daemon_set_spec.k b/k8s/1.24/api/apps/v1/daemon_set_spec.k index d26e3e9d..caf3faf8 100644 --- a/k8s/1.24/api/apps/v1/daemon_set_spec.k +++ b/k8s/1.24/api/apps/v1/daemon_set_spec.k @@ -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 @@ -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. @@ -32,7 +32,7 @@ schema DaemonSetSpec: selector: v1.LabelSelector - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: DaemonSetUpdateStrategy diff --git a/k8s/1.24/api/apps/v1/deployment_spec.k b/k8s/1.24/api/apps/v1/deployment_spec.k index 1bbe7887..b8591d9a 100644 --- a/k8s/1.24/api/apps/v1/deployment_spec.k +++ b/k8s/1.24/api/apps/v1/deployment_spec.k @@ -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 @@ -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. """ @@ -46,6 +46,6 @@ schema DeploymentSpec: strategy?: DeploymentStrategy - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec diff --git a/k8s/1.24/api/apps/v1/replica_set_spec.k b/k8s/1.24/api/apps/v1/replica_set_spec.k index a1572bc1..700810d3 100644 --- a/k8s/1.24/api/apps/v1/replica_set_spec.k +++ b/k8s/1.24/api/apps/v1/replica_set_spec.k @@ -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 @@ -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 """ @@ -30,6 +30,6 @@ schema ReplicaSetSpec: selector: v1.LabelSelector - template?: coreV1.PodTemplateSpec + template?: corev1.PodTemplateSpec diff --git a/k8s/1.24/api/apps/v1/stateful_set_spec.k b/k8s/1.24/api/apps/v1/stateful_set_spec.k index be5e5e6a..d57e7ed3 100644 --- a/k8s/1.24/api/apps/v1/stateful_set_spec.k +++ b/k8s/1.24/api/apps/v1/stateful_set_spec.k @@ -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 @@ -29,11 +29,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. """ @@ -52,10 +52,10 @@ schema StatefulSetSpec: serviceName: str - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: StatefulSetUpdateStrategy - volumeClaimTemplates?: [coreV1.PersistentVolumeClaim] + volumeClaimTemplates?: [corev1.PersistentVolumeClaim] diff --git a/k8s/1.24/api/batch/v1/cron_job_status.k b/k8s/1.24/api/batch/v1/cron_job_status.k index bc07fdb1..420347ff 100644 --- a/k8s/1.24/api/batch/v1/cron_job_status.k +++ b/k8s/1.24/api/batch/v1/cron_job_status.k @@ -3,7 +3,7 @@ This is the cron_job_status 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 +import api.core.v1 as corev1 schema CronJobStatus: @@ -12,7 +12,7 @@ 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. @@ -21,7 +21,7 @@ schema CronJobStatus: """ - active?: [v1.ObjectReference] + active?: [corev1.ObjectReference] lastScheduleTime?: str diff --git a/k8s/1.24/api/batch/v1/job_spec.k b/k8s/1.24/api/batch/v1/job_spec.k index bf426c53..255ba4c7 100644 --- a/k8s/1.24/api/batch/v1/job_spec.k +++ b/k8s/1.24/api/batch/v1/job_spec.k @@ -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 @@ -35,7 +35,7 @@ schema JobSpec: 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 suspend : bool, default is Undefined, optional Suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false. - 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. @@ -58,7 +58,7 @@ schema JobSpec: suspend?: bool - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec ttlSecondsAfterFinished?: int diff --git a/k8s/1.24/api/batch/v1beta1/cron_job_status.k b/k8s/1.24/api/batch/v1beta1/cron_job_status.k index a1c88d48..d11aca1f 100644 --- a/k8s/1.24/api/batch/v1beta1/cron_job_status.k +++ b/k8s/1.24/api/batch/v1beta1/cron_job_status.k @@ -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: @@ -12,7 +12,7 @@ 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. @@ -21,7 +21,7 @@ schema CronJobStatus: """ - active?: [v1.ObjectReference] + active?: [corev1.ObjectReference] lastScheduleTime?: str diff --git a/k8s/1.24/api/discovery/v1/endpoint.k b/k8s/1.24/api/discovery/v1/endpoint.k index f529f51e..8ae2e9ab 100644 --- a/k8s/1.24/api/discovery/v1/endpoint.k +++ b/k8s/1.24/api/discovery/v1/endpoint.k @@ -3,7 +3,7 @@ This is the endpoint module in k8s.api.discovery.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 +import api.core.v1 as corev1 schema Endpoint: @@ -24,7 +24,7 @@ schema Endpoint: hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation. nodeName : str, default is Undefined, optional nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. This field can be enabled with the EndpointSliceNodeName feature gate. - targetRef : v1.ObjectReference, default is Undefined, optional + targetRef : corev1.ObjectReference, default is Undefined, optional targetRef is a reference to a Kubernetes object that represents this endpoint. zone : str, default is Undefined, optional zone is the name of the Zone this endpoint exists in. @@ -43,7 +43,7 @@ schema Endpoint: nodeName?: str - targetRef?: v1.ObjectReference + targetRef?: corev1.ObjectReference zone?: str diff --git a/k8s/1.24/api/discovery/v1beta1/endpoint.k b/k8s/1.24/api/discovery/v1beta1/endpoint.k index d242437c..eb257608 100644 --- a/k8s/1.24/api/discovery/v1beta1/endpoint.k +++ b/k8s/1.24/api/discovery/v1beta1/endpoint.k @@ -3,7 +3,7 @@ This is the endpoint module in k8s.api.discovery.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 Endpoint: @@ -22,7 +22,7 @@ schema Endpoint: hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation. nodeName : str, default is Undefined, optional nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. This field can be enabled with the EndpointSliceNodeName feature gate. - targetRef : v1.ObjectReference, default is Undefined, optional + targetRef : corev1.ObjectReference, default is Undefined, optional targetRef is a reference to a Kubernetes object that represents this endpoint. topology : {str:str}, default is Undefined, optional topology contains arbitrary topology information associated with the endpoint. These key/value pairs must conform with the label format. https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Topology may include a maximum of 16 key/value pairs. This includes, but is not limited to the following well known keys: * kubernetes.io/hostname: the value indicates the hostname of the node @@ -46,7 +46,7 @@ schema Endpoint: nodeName?: str - targetRef?: v1.ObjectReference + targetRef?: corev1.ObjectReference topology?: {str:str} diff --git a/k8s/1.24/api/events/v1/event.k b/k8s/1.24/api/events/v1/event.k index 0141a1f4..67b0e016 100644 --- a/k8s/1.24/api/events/v1/event.k +++ b/k8s/1.24/api/events/v1/event.k @@ -3,8 +3,8 @@ This is the event module in k8s.api.events.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 -import apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema Event: @@ -23,21 +23,21 @@ schema Event: deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. deprecatedLastTimestamp : str, default is Undefined, optional deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. - deprecatedSource : v1.EventSource, default is Undefined, optional + deprecatedSource : corev1.EventSource, default is Undefined, optional deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. eventTime : str, default is Undefined, required eventTime is the time when this Event was first observed. It is required. kind : str, default is "Event", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata note : str, default is Undefined, optional note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. reason : str, default is Undefined, optional reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters. - regarding : v1.ObjectReference, default is Undefined, optional + regarding : corev1.ObjectReference, default is Undefined, optional regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. - related : v1.ObjectReference, default is Undefined, optional + related : corev1.ObjectReference, default is Undefined, optional related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. reportingController : str, default is Undefined, optional reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. @@ -60,21 +60,21 @@ schema Event: deprecatedLastTimestamp?: str - deprecatedSource?: v1.EventSource + deprecatedSource?: corev1.EventSource eventTime: str kind: "Event" = "Event" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta note?: str reason?: str - regarding?: v1.ObjectReference + regarding?: corev1.ObjectReference - related?: v1.ObjectReference + related?: corev1.ObjectReference reportingController?: str diff --git a/k8s/1.24/api/events/v1beta1/event.k b/k8s/1.24/api/events/v1beta1/event.k index 6fbc668a..0e18a1d6 100644 --- a/k8s/1.24/api/events/v1beta1/event.k +++ b/k8s/1.24/api/events/v1beta1/event.k @@ -3,8 +3,8 @@ This is the event module in k8s.api.events.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 apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema Event: @@ -23,21 +23,21 @@ schema Event: deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. deprecatedLastTimestamp : str, default is Undefined, optional deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. - deprecatedSource : v1.EventSource, default is Undefined, optional + deprecatedSource : corev1.EventSource, default is Undefined, optional deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. eventTime : str, default is Undefined, required eventTime is the time when this Event was first observed. It is required. kind : str, default is "Event", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata note : str, default is Undefined, optional note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. reason : str, default is Undefined, optional reason is why the action was taken. It is human-readable. This field can have at most 128 characters. - regarding : v1.ObjectReference, default is Undefined, optional + regarding : corev1.ObjectReference, default is Undefined, optional regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. - related : v1.ObjectReference, default is Undefined, optional + related : corev1.ObjectReference, default is Undefined, optional related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. reportingController : str, default is Undefined, optional reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. @@ -60,21 +60,21 @@ schema Event: deprecatedLastTimestamp?: str - deprecatedSource?: v1.EventSource + deprecatedSource?: corev1.EventSource eventTime: str kind: "Event" = "Event" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta note?: str reason?: str - regarding?: v1.ObjectReference + regarding?: corev1.ObjectReference - related?: v1.ObjectReference + related?: corev1.ObjectReference reportingController?: str diff --git a/k8s/1.24/api/networking/v1/ingress_backend.k b/k8s/1.24/api/networking/v1/ingress_backend.k index a21e4ca1..d4d7eb0c 100644 --- a/k8s/1.24/api/networking/v1/ingress_backend.k +++ b/k8s/1.24/api/networking/v1/ingress_backend.k @@ -3,7 +3,7 @@ This is the ingress_backend module in k8s.api.networking.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 +import api.core.v1 as corev1 schema IngressBackend: @@ -12,14 +12,14 @@ schema IngressBackend: Attributes ---------- - resource : v1.TypedLocalObjectReference, default is Undefined, optional + resource : corev1.TypedLocalObjectReference, default is Undefined, optional Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with "Service". service : IngressServiceBackend, default is Undefined, optional Service references a Service as a Backend. This is a mutually exclusive setting with "Resource". """ - resource?: v1.TypedLocalObjectReference + resource?: corev1.TypedLocalObjectReference service?: IngressServiceBackend diff --git a/k8s/1.24/api/networking/v1/ingress_status.k b/k8s/1.24/api/networking/v1/ingress_status.k index 609ea64d..592c30c6 100644 --- a/k8s/1.24/api/networking/v1/ingress_status.k +++ b/k8s/1.24/api/networking/v1/ingress_status.k @@ -3,7 +3,7 @@ This is the ingress_status module in k8s.api.networking.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 +import api.core.v1 as corev1 schema IngressStatus: @@ -12,11 +12,11 @@ schema IngressStatus: Attributes ---------- - loadBalancer : v1.LoadBalancerStatus, default is Undefined, optional + loadBalancer : corev1.LoadBalancerStatus, default is Undefined, optional LoadBalancer contains the current status of the load-balancer. """ - loadBalancer?: v1.LoadBalancerStatus + loadBalancer?: corev1.LoadBalancerStatus diff --git a/k8s/1.24/api/node/v1/scheduling.k b/k8s/1.24/api/node/v1/scheduling.k index b7904f85..593e8d61 100644 --- a/k8s/1.24/api/node/v1/scheduling.k +++ b/k8s/1.24/api/node/v1/scheduling.k @@ -3,7 +3,7 @@ This is the scheduling module in k8s.api.node.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 +import api.core.v1 as corev1 schema Scheduling: @@ -14,13 +14,13 @@ schema Scheduling: ---------- nodeSelector : {str:str}, default is Undefined, optional nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - tolerations : [v1.Toleration], default is Undefined, optional + tolerations : [corev1.Toleration], default is Undefined, optional tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. """ nodeSelector?: {str:str} - tolerations?: [v1.Toleration] + tolerations?: [corev1.Toleration] diff --git a/k8s/1.24/api/node/v1beta1/scheduling.k b/k8s/1.24/api/node/v1beta1/scheduling.k index 21d7f359..5ef688e3 100644 --- a/k8s/1.24/api/node/v1beta1/scheduling.k +++ b/k8s/1.24/api/node/v1beta1/scheduling.k @@ -3,7 +3,7 @@ This is the scheduling module in k8s.api.node.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 Scheduling: @@ -14,13 +14,13 @@ schema Scheduling: ---------- nodeSelector : {str:str}, default is Undefined, optional nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - tolerations : [v1.Toleration], default is Undefined, optional + tolerations : [corev1.Toleration], default is Undefined, optional tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. """ nodeSelector?: {str:str} - tolerations?: [v1.Toleration] + tolerations?: [corev1.Toleration] diff --git a/k8s/1.24/api/policy/v1beta1/se_linux_strategy_options.k b/k8s/1.24/api/policy/v1beta1/se_linux_strategy_options.k index db38b01b..2ca9c4ad 100644 --- a/k8s/1.24/api/policy/v1beta1/se_linux_strategy_options.k +++ b/k8s/1.24/api/policy/v1beta1/se_linux_strategy_options.k @@ -3,7 +3,7 @@ This is the se_linux_strategy_options module in k8s.api.policy.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 SELinuxStrategyOptions: @@ -14,13 +14,13 @@ schema SELinuxStrategyOptions: ---------- $rule : str, default is Undefined, required rule is the strategy that will dictate the allowable labels that may be set. - seLinuxOptions : v1.SELinuxOptions, default is Undefined, optional + seLinuxOptions : corev1.SELinuxOptions, default is Undefined, optional seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ """ $rule: str - seLinuxOptions?: v1.SELinuxOptions + seLinuxOptions?: corev1.SELinuxOptions diff --git a/k8s/1.24/api/storage/v1/storage_class.k b/k8s/1.24/api/storage/v1/storage_class.k index 351af9b5..c6ef3db4 100644 --- a/k8s/1.24/api/storage/v1/storage_class.k +++ b/k8s/1.24/api/storage/v1/storage_class.k @@ -3,8 +3,8 @@ This is the storage_class module in k8s.api.storage.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 -import apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema StorageClass: @@ -17,13 +17,13 @@ schema StorageClass: ---------- allowVolumeExpansion : bool, default is Undefined, optional AllowVolumeExpansion shows whether the storage class allow volume expand - allowedTopologies : [v1.TopologySelectorTerm], default is Undefined, optional + allowedTopologies : [corev1.TopologySelectorTerm], default is Undefined, optional Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. apiVersion : str, default is "storage.k8s.io/v1", required APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources kind : str, default is "StorageClass", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata mountOptions : [str], default is Undefined, optional Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. @@ -40,13 +40,13 @@ schema StorageClass: allowVolumeExpansion?: bool - allowedTopologies?: [v1.TopologySelectorTerm] + allowedTopologies?: [corev1.TopologySelectorTerm] apiVersion: "storage.k8s.io/v1" = "storage.k8s.io/v1" kind: "StorageClass" = "StorageClass" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta mountOptions?: [str] diff --git a/k8s/1.24/api/storage/v1/volume_attachment_source.k b/k8s/1.24/api/storage/v1/volume_attachment_source.k index 11213d5d..ed5a5959 100644 --- a/k8s/1.24/api/storage/v1/volume_attachment_source.k +++ b/k8s/1.24/api/storage/v1/volume_attachment_source.k @@ -3,7 +3,7 @@ This is the volume_attachment_source module in k8s.api.storage.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 +import api.core.v1 as corev1 schema VolumeAttachmentSource: @@ -12,14 +12,14 @@ schema VolumeAttachmentSource: Attributes ---------- - inlineVolumeSpec : v1.PersistentVolumeSpec, default is Undefined, optional + inlineVolumeSpec : corev1.PersistentVolumeSpec, default is Undefined, optional inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature. persistentVolumeName : str, default is Undefined, optional Name of the persistent volume to attach. """ - inlineVolumeSpec?: v1.PersistentVolumeSpec + inlineVolumeSpec?: corev1.PersistentVolumeSpec persistentVolumeName?: str diff --git a/k8s/1.24/kcl.mod b/k8s/1.24/kcl.mod index ec4c077f..5dc96102 100644 --- a/k8s/1.24/kcl.mod +++ b/k8s/1.24/kcl.mod @@ -1,5 +1,5 @@ [package] name = "k8s" edition = "*" -version = "1.24" +version = "1.24.1" description = "`k8s` is a KCL module contains all the built-in Kubernetes resource models (the CRDs are not included here)." diff --git a/k8s/1.25/api/apps/v1/daemon_set_spec.k b/k8s/1.25/api/apps/v1/daemon_set_spec.k index d26e3e9d..caf3faf8 100644 --- a/k8s/1.25/api/apps/v1/daemon_set_spec.k +++ b/k8s/1.25/api/apps/v1/daemon_set_spec.k @@ -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 @@ -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. @@ -32,7 +32,7 @@ schema DaemonSetSpec: selector: v1.LabelSelector - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: DaemonSetUpdateStrategy diff --git a/k8s/1.25/api/apps/v1/deployment_spec.k b/k8s/1.25/api/apps/v1/deployment_spec.k index 1bbe7887..b8591d9a 100644 --- a/k8s/1.25/api/apps/v1/deployment_spec.k +++ b/k8s/1.25/api/apps/v1/deployment_spec.k @@ -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 @@ -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. """ @@ -46,6 +46,6 @@ schema DeploymentSpec: strategy?: DeploymentStrategy - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec diff --git a/k8s/1.25/api/apps/v1/replica_set_spec.k b/k8s/1.25/api/apps/v1/replica_set_spec.k index a1572bc1..700810d3 100644 --- a/k8s/1.25/api/apps/v1/replica_set_spec.k +++ b/k8s/1.25/api/apps/v1/replica_set_spec.k @@ -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 @@ -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 """ @@ -30,6 +30,6 @@ schema ReplicaSetSpec: selector: v1.LabelSelector - template?: coreV1.PodTemplateSpec + template?: corev1.PodTemplateSpec diff --git a/k8s/1.25/api/apps/v1/stateful_set_spec.k b/k8s/1.25/api/apps/v1/stateful_set_spec.k index 34565393..6ab16dcd 100644 --- a/k8s/1.25/api/apps/v1/stateful_set_spec.k +++ b/k8s/1.25/api/apps/v1/stateful_set_spec.k @@ -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 @@ -29,11 +29,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. """ @@ -52,10 +52,10 @@ schema StatefulSetSpec: serviceName: str - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: StatefulSetUpdateStrategy - volumeClaimTemplates?: [coreV1.PersistentVolumeClaim] + volumeClaimTemplates?: [corev1.PersistentVolumeClaim] diff --git a/k8s/1.25/api/batch/v1/cron_job_status.k b/k8s/1.25/api/batch/v1/cron_job_status.k index bc07fdb1..420347ff 100644 --- a/k8s/1.25/api/batch/v1/cron_job_status.k +++ b/k8s/1.25/api/batch/v1/cron_job_status.k @@ -3,7 +3,7 @@ This is the cron_job_status 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 +import api.core.v1 as corev1 schema CronJobStatus: @@ -12,7 +12,7 @@ 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. @@ -21,7 +21,7 @@ schema CronJobStatus: """ - active?: [v1.ObjectReference] + active?: [corev1.ObjectReference] lastScheduleTime?: str diff --git a/k8s/1.25/api/batch/v1/job_spec.k b/k8s/1.25/api/batch/v1/job_spec.k index 594ab75b..97e20689 100644 --- a/k8s/1.25/api/batch/v1/job_spec.k +++ b/k8s/1.25/api/batch/v1/job_spec.k @@ -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 @@ -39,7 +39,7 @@ schema JobSpec: 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 suspend : bool, default is Undefined, optional Suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false. - 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. @@ -64,7 +64,7 @@ schema JobSpec: suspend?: bool - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec ttlSecondsAfterFinished?: int diff --git a/k8s/1.25/api/discovery/v1/endpoint.k b/k8s/1.25/api/discovery/v1/endpoint.k index 77dc0d6d..4e423ee7 100644 --- a/k8s/1.25/api/discovery/v1/endpoint.k +++ b/k8s/1.25/api/discovery/v1/endpoint.k @@ -3,7 +3,7 @@ This is the endpoint module in k8s.api.discovery.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 +import api.core.v1 as corev1 schema Endpoint: @@ -24,7 +24,7 @@ schema Endpoint: hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation. nodeName : str, default is Undefined, optional nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. - targetRef : v1.ObjectReference, default is Undefined, optional + targetRef : corev1.ObjectReference, default is Undefined, optional targetRef is a reference to a Kubernetes object that represents this endpoint. zone : str, default is Undefined, optional zone is the name of the Zone this endpoint exists in. @@ -43,7 +43,7 @@ schema Endpoint: nodeName?: str - targetRef?: v1.ObjectReference + targetRef?: corev1.ObjectReference zone?: str diff --git a/k8s/1.25/api/events/v1/event.k b/k8s/1.25/api/events/v1/event.k index 0141a1f4..67b0e016 100644 --- a/k8s/1.25/api/events/v1/event.k +++ b/k8s/1.25/api/events/v1/event.k @@ -3,8 +3,8 @@ This is the event module in k8s.api.events.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 -import apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema Event: @@ -23,21 +23,21 @@ schema Event: deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. deprecatedLastTimestamp : str, default is Undefined, optional deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. - deprecatedSource : v1.EventSource, default is Undefined, optional + deprecatedSource : corev1.EventSource, default is Undefined, optional deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. eventTime : str, default is Undefined, required eventTime is the time when this Event was first observed. It is required. kind : str, default is "Event", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata note : str, default is Undefined, optional note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. reason : str, default is Undefined, optional reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters. - regarding : v1.ObjectReference, default is Undefined, optional + regarding : corev1.ObjectReference, default is Undefined, optional regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. - related : v1.ObjectReference, default is Undefined, optional + related : corev1.ObjectReference, default is Undefined, optional related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. reportingController : str, default is Undefined, optional reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. @@ -60,21 +60,21 @@ schema Event: deprecatedLastTimestamp?: str - deprecatedSource?: v1.EventSource + deprecatedSource?: corev1.EventSource eventTime: str kind: "Event" = "Event" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta note?: str reason?: str - regarding?: v1.ObjectReference + regarding?: corev1.ObjectReference - related?: v1.ObjectReference + related?: corev1.ObjectReference reportingController?: str diff --git a/k8s/1.25/api/networking/v1/ingress_backend.k b/k8s/1.25/api/networking/v1/ingress_backend.k index a21e4ca1..d4d7eb0c 100644 --- a/k8s/1.25/api/networking/v1/ingress_backend.k +++ b/k8s/1.25/api/networking/v1/ingress_backend.k @@ -3,7 +3,7 @@ This is the ingress_backend module in k8s.api.networking.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 +import api.core.v1 as corev1 schema IngressBackend: @@ -12,14 +12,14 @@ schema IngressBackend: Attributes ---------- - resource : v1.TypedLocalObjectReference, default is Undefined, optional + resource : corev1.TypedLocalObjectReference, default is Undefined, optional Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with "Service". service : IngressServiceBackend, default is Undefined, optional Service references a Service as a Backend. This is a mutually exclusive setting with "Resource". """ - resource?: v1.TypedLocalObjectReference + resource?: corev1.TypedLocalObjectReference service?: IngressServiceBackend diff --git a/k8s/1.25/api/networking/v1/ingress_status.k b/k8s/1.25/api/networking/v1/ingress_status.k index 609ea64d..592c30c6 100644 --- a/k8s/1.25/api/networking/v1/ingress_status.k +++ b/k8s/1.25/api/networking/v1/ingress_status.k @@ -3,7 +3,7 @@ This is the ingress_status module in k8s.api.networking.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 +import api.core.v1 as corev1 schema IngressStatus: @@ -12,11 +12,11 @@ schema IngressStatus: Attributes ---------- - loadBalancer : v1.LoadBalancerStatus, default is Undefined, optional + loadBalancer : corev1.LoadBalancerStatus, default is Undefined, optional LoadBalancer contains the current status of the load-balancer. """ - loadBalancer?: v1.LoadBalancerStatus + loadBalancer?: corev1.LoadBalancerStatus diff --git a/k8s/1.25/api/networking/v1alpha1/cluster_cidr_spec.k b/k8s/1.25/api/networking/v1alpha1/cluster_cidr_spec.k index 00d05e37..1697d511 100644 --- a/k8s/1.25/api/networking/v1alpha1/cluster_cidr_spec.k +++ b/k8s/1.25/api/networking/v1alpha1/cluster_cidr_spec.k @@ -3,7 +3,7 @@ This is the cluster_cidr_spec module in k8s.api.networking.v1alpha1 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 ClusterCIDRSpec: @@ -16,7 +16,7 @@ schema ClusterCIDRSpec: IPv4 defines an IPv4 IP block in CIDR notation(e.g. "10.0.0.0/8"). At least one of IPv4 and IPv6 must be specified. This field is immutable. ipv6 : str, default is Undefined, optional IPv6 defines an IPv6 IP block in CIDR notation(e.g. "fd12:3456:789a:1::/64"). At least one of IPv4 and IPv6 must be specified. This field is immutable. - nodeSelector : v1.NodeSelector, default is Undefined, optional + nodeSelector : corev1.NodeSelector, default is Undefined, optional NodeSelector defines which nodes the config is applicable to. An empty or nil NodeSelector selects all nodes. This field is immutable. perNodeHostBits : int, default is Undefined, required PerNodeHostBits defines the number of host bits to be configured per node. A subnet mask determines how much of the address is used for network bits and host bits. For example an IPv4 address of 192.168.0.0/24, splits the address into 24 bits for the network portion and 8 bits for the host portion. To allocate 256 IPs, set this field to 8 (a /24 mask for IPv4 or a /120 for IPv6). Minimum value is 4 (16 IPs). This field is immutable. @@ -27,7 +27,7 @@ schema ClusterCIDRSpec: ipv6?: str - nodeSelector?: v1.NodeSelector + nodeSelector?: corev1.NodeSelector perNodeHostBits: int diff --git a/k8s/1.25/api/node/v1/scheduling.k b/k8s/1.25/api/node/v1/scheduling.k index b7904f85..593e8d61 100644 --- a/k8s/1.25/api/node/v1/scheduling.k +++ b/k8s/1.25/api/node/v1/scheduling.k @@ -3,7 +3,7 @@ This is the scheduling module in k8s.api.node.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 +import api.core.v1 as corev1 schema Scheduling: @@ -14,13 +14,13 @@ schema Scheduling: ---------- nodeSelector : {str:str}, default is Undefined, optional nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - tolerations : [v1.Toleration], default is Undefined, optional + tolerations : [corev1.Toleration], default is Undefined, optional tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. """ nodeSelector?: {str:str} - tolerations?: [v1.Toleration] + tolerations?: [corev1.Toleration] diff --git a/k8s/1.25/api/storage/v1/storage_class.k b/k8s/1.25/api/storage/v1/storage_class.k index 351af9b5..c6ef3db4 100644 --- a/k8s/1.25/api/storage/v1/storage_class.k +++ b/k8s/1.25/api/storage/v1/storage_class.k @@ -3,8 +3,8 @@ This is the storage_class module in k8s.api.storage.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 -import apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema StorageClass: @@ -17,13 +17,13 @@ schema StorageClass: ---------- allowVolumeExpansion : bool, default is Undefined, optional AllowVolumeExpansion shows whether the storage class allow volume expand - allowedTopologies : [v1.TopologySelectorTerm], default is Undefined, optional + allowedTopologies : [corev1.TopologySelectorTerm], default is Undefined, optional Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. apiVersion : str, default is "storage.k8s.io/v1", required APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources kind : str, default is "StorageClass", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata mountOptions : [str], default is Undefined, optional Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. @@ -40,13 +40,13 @@ schema StorageClass: allowVolumeExpansion?: bool - allowedTopologies?: [v1.TopologySelectorTerm] + allowedTopologies?: [corev1.TopologySelectorTerm] apiVersion: "storage.k8s.io/v1" = "storage.k8s.io/v1" kind: "StorageClass" = "StorageClass" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta mountOptions?: [str] diff --git a/k8s/1.25/api/storage/v1/volume_attachment_source.k b/k8s/1.25/api/storage/v1/volume_attachment_source.k index 11213d5d..ed5a5959 100644 --- a/k8s/1.25/api/storage/v1/volume_attachment_source.k +++ b/k8s/1.25/api/storage/v1/volume_attachment_source.k @@ -3,7 +3,7 @@ This is the volume_attachment_source module in k8s.api.storage.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 +import api.core.v1 as corev1 schema VolumeAttachmentSource: @@ -12,14 +12,14 @@ schema VolumeAttachmentSource: Attributes ---------- - inlineVolumeSpec : v1.PersistentVolumeSpec, default is Undefined, optional + inlineVolumeSpec : corev1.PersistentVolumeSpec, default is Undefined, optional inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature. persistentVolumeName : str, default is Undefined, optional Name of the persistent volume to attach. """ - inlineVolumeSpec?: v1.PersistentVolumeSpec + inlineVolumeSpec?: corev1.PersistentVolumeSpec persistentVolumeName?: str diff --git a/k8s/1.25/kcl.mod b/k8s/1.25/kcl.mod index 149b0682..8fda7dcd 100644 --- a/k8s/1.25/kcl.mod +++ b/k8s/1.25/kcl.mod @@ -1,5 +1,5 @@ [package] name = "k8s" edition = "*" -version = "1.25" +version = "1.25.1" description = "`k8s` is a KCL module contains all the built-in Kubernetes resource models (the CRDs are not included here)." diff --git a/k8s/1.26/api/apps/v1/daemon_set_spec.k b/k8s/1.26/api/apps/v1/daemon_set_spec.k index d26e3e9d..caf3faf8 100644 --- a/k8s/1.26/api/apps/v1/daemon_set_spec.k +++ b/k8s/1.26/api/apps/v1/daemon_set_spec.k @@ -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 @@ -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. @@ -32,7 +32,7 @@ schema DaemonSetSpec: selector: v1.LabelSelector - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: DaemonSetUpdateStrategy diff --git a/k8s/1.26/api/apps/v1/deployment_spec.k b/k8s/1.26/api/apps/v1/deployment_spec.k index 1bbe7887..b8591d9a 100644 --- a/k8s/1.26/api/apps/v1/deployment_spec.k +++ b/k8s/1.26/api/apps/v1/deployment_spec.k @@ -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 @@ -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. """ @@ -46,6 +46,6 @@ schema DeploymentSpec: strategy?: DeploymentStrategy - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec diff --git a/k8s/1.26/api/apps/v1/replica_set_spec.k b/k8s/1.26/api/apps/v1/replica_set_spec.k index a1572bc1..700810d3 100644 --- a/k8s/1.26/api/apps/v1/replica_set_spec.k +++ b/k8s/1.26/api/apps/v1/replica_set_spec.k @@ -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 @@ -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 """ @@ -30,6 +30,6 @@ schema ReplicaSetSpec: selector: v1.LabelSelector - template?: coreV1.PodTemplateSpec + template?: corev1.PodTemplateSpec diff --git a/k8s/1.26/api/apps/v1/stateful_set_spec.k b/k8s/1.26/api/apps/v1/stateful_set_spec.k index f4e6732e..e33b14a9 100644 --- a/k8s/1.26/api/apps/v1/stateful_set_spec.k +++ b/k8s/1.26/api/apps/v1/stateful_set_spec.k @@ -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 @@ -31,11 +31,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. Each pod will be named with the format -. For example, a pod in a StatefulSet named "web" with index number "3" would be named "web-3". 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. """ @@ -56,10 +56,10 @@ schema StatefulSetSpec: serviceName: str - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: StatefulSetUpdateStrategy - volumeClaimTemplates?: [coreV1.PersistentVolumeClaim] + volumeClaimTemplates?: [corev1.PersistentVolumeClaim] diff --git a/k8s/1.26/api/authentication/v1alpha1/self_subject_review_status.k b/k8s/1.26/api/authentication/v1alpha1/self_subject_review_status.k index 5c668d73..df9e8481 100644 --- a/k8s/1.26/api/authentication/v1alpha1/self_subject_review_status.k +++ b/k8s/1.26/api/authentication/v1alpha1/self_subject_review_status.k @@ -3,7 +3,7 @@ This is the self_subject_review_status module in k8s.api.authentication.v1alpha1 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.authentication.v1 +import api.authentication.v1 as apiauthv1 schema SelfSubjectReviewStatus: @@ -17,6 +17,6 @@ schema SelfSubjectReviewStatus: """ - userInfo?: v1.UserInfo + userInfo?: apiauthv1.UserInfo diff --git a/k8s/1.26/api/batch/v1/cron_job_status.k b/k8s/1.26/api/batch/v1/cron_job_status.k index bc07fdb1..420347ff 100644 --- a/k8s/1.26/api/batch/v1/cron_job_status.k +++ b/k8s/1.26/api/batch/v1/cron_job_status.k @@ -3,7 +3,7 @@ This is the cron_job_status 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 +import api.core.v1 as corev1 schema CronJobStatus: @@ -12,7 +12,7 @@ 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. @@ -21,7 +21,7 @@ schema CronJobStatus: """ - active?: [v1.ObjectReference] + active?: [corev1.ObjectReference] lastScheduleTime?: str diff --git a/k8s/1.26/api/batch/v1/job_spec.k b/k8s/1.26/api/batch/v1/job_spec.k index f7bcf7b5..38170d45 100644 --- a/k8s/1.26/api/batch/v1/job_spec.k +++ b/k8s/1.26/api/batch/v1/job_spec.k @@ -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 @@ -39,7 +39,7 @@ schema JobSpec: 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 suspend : bool, default is Undefined, optional Suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false. - 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. @@ -64,7 +64,7 @@ schema JobSpec: suspend?: bool - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec ttlSecondsAfterFinished?: int diff --git a/k8s/1.26/api/discovery/v1/endpoint.k b/k8s/1.26/api/discovery/v1/endpoint.k index 77dc0d6d..4e423ee7 100644 --- a/k8s/1.26/api/discovery/v1/endpoint.k +++ b/k8s/1.26/api/discovery/v1/endpoint.k @@ -3,7 +3,7 @@ This is the endpoint module in k8s.api.discovery.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 +import api.core.v1 as corev1 schema Endpoint: @@ -24,7 +24,7 @@ schema Endpoint: hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation. nodeName : str, default is Undefined, optional nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. - targetRef : v1.ObjectReference, default is Undefined, optional + targetRef : corev1.ObjectReference, default is Undefined, optional targetRef is a reference to a Kubernetes object that represents this endpoint. zone : str, default is Undefined, optional zone is the name of the Zone this endpoint exists in. @@ -43,7 +43,7 @@ schema Endpoint: nodeName?: str - targetRef?: v1.ObjectReference + targetRef?: corev1.ObjectReference zone?: str diff --git a/k8s/1.26/api/events/v1/event.k b/k8s/1.26/api/events/v1/event.k index 0141a1f4..67b0e016 100644 --- a/k8s/1.26/api/events/v1/event.k +++ b/k8s/1.26/api/events/v1/event.k @@ -3,8 +3,8 @@ This is the event module in k8s.api.events.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 -import apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema Event: @@ -23,21 +23,21 @@ schema Event: deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. deprecatedLastTimestamp : str, default is Undefined, optional deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. - deprecatedSource : v1.EventSource, default is Undefined, optional + deprecatedSource : corev1.EventSource, default is Undefined, optional deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. eventTime : str, default is Undefined, required eventTime is the time when this Event was first observed. It is required. kind : str, default is "Event", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata note : str, default is Undefined, optional note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. reason : str, default is Undefined, optional reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters. - regarding : v1.ObjectReference, default is Undefined, optional + regarding : corev1.ObjectReference, default is Undefined, optional regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. - related : v1.ObjectReference, default is Undefined, optional + related : corev1.ObjectReference, default is Undefined, optional related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. reportingController : str, default is Undefined, optional reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. @@ -60,21 +60,21 @@ schema Event: deprecatedLastTimestamp?: str - deprecatedSource?: v1.EventSource + deprecatedSource?: corev1.EventSource eventTime: str kind: "Event" = "Event" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta note?: str reason?: str - regarding?: v1.ObjectReference + regarding?: corev1.ObjectReference - related?: v1.ObjectReference + related?: corev1.ObjectReference reportingController?: str diff --git a/k8s/1.26/api/networking/v1/ingress_backend.k b/k8s/1.26/api/networking/v1/ingress_backend.k index a21e4ca1..d4d7eb0c 100644 --- a/k8s/1.26/api/networking/v1/ingress_backend.k +++ b/k8s/1.26/api/networking/v1/ingress_backend.k @@ -3,7 +3,7 @@ This is the ingress_backend module in k8s.api.networking.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 +import api.core.v1 as corev1 schema IngressBackend: @@ -12,14 +12,14 @@ schema IngressBackend: Attributes ---------- - resource : v1.TypedLocalObjectReference, default is Undefined, optional + resource : corev1.TypedLocalObjectReference, default is Undefined, optional Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with "Service". service : IngressServiceBackend, default is Undefined, optional Service references a Service as a Backend. This is a mutually exclusive setting with "Resource". """ - resource?: v1.TypedLocalObjectReference + resource?: corev1.TypedLocalObjectReference service?: IngressServiceBackend diff --git a/k8s/1.26/api/networking/v1alpha1/cluster_cidr_spec.k b/k8s/1.26/api/networking/v1alpha1/cluster_cidr_spec.k index 46a3b085..6e59f1aa 100644 --- a/k8s/1.26/api/networking/v1alpha1/cluster_cidr_spec.k +++ b/k8s/1.26/api/networking/v1alpha1/cluster_cidr_spec.k @@ -3,7 +3,7 @@ This is the cluster_cidr_spec module in k8s.api.networking.v1alpha1 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 ClusterCIDRSpec: @@ -16,7 +16,7 @@ schema ClusterCIDRSpec: IPv4 defines an IPv4 IP block in CIDR notation(e.g. "10.0.0.0/8"). At least one of IPv4 and IPv6 must be specified. This field is immutable. ipv6 : str, default is Undefined, optional IPv6 defines an IPv6 IP block in CIDR notation(e.g. "2001:db8::/64"). At least one of IPv4 and IPv6 must be specified. This field is immutable. - nodeSelector : v1.NodeSelector, default is Undefined, optional + nodeSelector : corev1.NodeSelector, default is Undefined, optional NodeSelector defines which nodes the config is applicable to. An empty or nil NodeSelector selects all nodes. This field is immutable. perNodeHostBits : int, default is Undefined, required PerNodeHostBits defines the number of host bits to be configured per node. A subnet mask determines how much of the address is used for network bits and host bits. For example an IPv4 address of 192.168.0.0/24, splits the address into 24 bits for the network portion and 8 bits for the host portion. To allocate 256 IPs, set this field to 8 (a /24 mask for IPv4 or a /120 for IPv6). Minimum value is 4 (16 IPs). This field is immutable. @@ -27,7 +27,7 @@ schema ClusterCIDRSpec: ipv6?: str - nodeSelector?: v1.NodeSelector + nodeSelector?: corev1.NodeSelector perNodeHostBits: int diff --git a/k8s/1.26/api/node/v1/scheduling.k b/k8s/1.26/api/node/v1/scheduling.k index b7904f85..593e8d61 100644 --- a/k8s/1.26/api/node/v1/scheduling.k +++ b/k8s/1.26/api/node/v1/scheduling.k @@ -3,7 +3,7 @@ This is the scheduling module in k8s.api.node.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 +import api.core.v1 as corev1 schema Scheduling: @@ -14,13 +14,13 @@ schema Scheduling: ---------- nodeSelector : {str:str}, default is Undefined, optional nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - tolerations : [v1.Toleration], default is Undefined, optional + tolerations : [corev1.Toleration], default is Undefined, optional tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. """ nodeSelector?: {str:str} - tolerations?: [v1.Toleration] + tolerations?: [corev1.Toleration] diff --git a/k8s/1.26/api/resource/v1alpha1/allocation_result.k b/k8s/1.26/api/resource/v1alpha1/allocation_result.k index f4ef3b3c..b0312f11 100644 --- a/k8s/1.26/api/resource/v1alpha1/allocation_result.k +++ b/k8s/1.26/api/resource/v1alpha1/allocation_result.k @@ -3,7 +3,7 @@ This is the allocation_result module in k8s.api.resource.v1alpha1 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 AllocationResult: @@ -12,7 +12,7 @@ schema AllocationResult: Attributes ---------- - availableOnNodes : v1.NodeSelector, default is Undefined, optional + availableOnNodes : corev1.NodeSelector, default is Undefined, optional This field will get set by the resource driver after it has allocated the resource driver to inform the scheduler where it can schedule Pods using the ResourceClaim. Setting this field is optional. If null, the resource is available everywhere. @@ -25,7 +25,7 @@ schema AllocationResult: """ - availableOnNodes?: v1.NodeSelector + availableOnNodes?: corev1.NodeSelector resourceHandle?: str diff --git a/k8s/1.26/api/resource/v1alpha1/resource_class.k b/k8s/1.26/api/resource/v1alpha1/resource_class.k index 3f7ba07b..e5a82bb4 100644 --- a/k8s/1.26/api/resource/v1alpha1/resource_class.k +++ b/k8s/1.26/api/resource/v1alpha1/resource_class.k @@ -3,7 +3,7 @@ This is the resource_class module in k8s.api.resource.v1alpha1 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 @@ -27,7 +27,7 @@ schema ResourceClass: Standard object metadata parametersRef : ResourceClassParametersReference, default is Undefined, optional ParametersRef references an arbitrary separate object that may hold parameters that will be used by the driver when allocating a resource that uses this class. A dynamic resource driver can distinguish between parameters stored here and and those stored in ResourceClaimSpec. - suitableNodes : coreV1.NodeSelector, default is Undefined, optional + suitableNodes : corev1.NodeSelector, default is Undefined, optional Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a ResourceClaim that has not been allocated yet. Setting this field is optional. If null, all nodes are candidates. @@ -44,6 +44,6 @@ schema ResourceClass: parametersRef?: ResourceClassParametersReference - suitableNodes?: coreV1.NodeSelector + suitableNodes?: corev1.NodeSelector diff --git a/k8s/1.26/api/storage/v1/storage_class.k b/k8s/1.26/api/storage/v1/storage_class.k index 351af9b5..c6ef3db4 100644 --- a/k8s/1.26/api/storage/v1/storage_class.k +++ b/k8s/1.26/api/storage/v1/storage_class.k @@ -3,8 +3,8 @@ This is the storage_class module in k8s.api.storage.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 -import apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema StorageClass: @@ -17,13 +17,13 @@ schema StorageClass: ---------- allowVolumeExpansion : bool, default is Undefined, optional AllowVolumeExpansion shows whether the storage class allow volume expand - allowedTopologies : [v1.TopologySelectorTerm], default is Undefined, optional + allowedTopologies : [corev1.TopologySelectorTerm], default is Undefined, optional Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. apiVersion : str, default is "storage.k8s.io/v1", required APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources kind : str, default is "StorageClass", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata mountOptions : [str], default is Undefined, optional Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. @@ -40,13 +40,13 @@ schema StorageClass: allowVolumeExpansion?: bool - allowedTopologies?: [v1.TopologySelectorTerm] + allowedTopologies?: [corev1.TopologySelectorTerm] apiVersion: "storage.k8s.io/v1" = "storage.k8s.io/v1" kind: "StorageClass" = "StorageClass" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta mountOptions?: [str] diff --git a/k8s/1.26/api/storage/v1/volume_attachment_source.k b/k8s/1.26/api/storage/v1/volume_attachment_source.k index 11213d5d..ed5a5959 100644 --- a/k8s/1.26/api/storage/v1/volume_attachment_source.k +++ b/k8s/1.26/api/storage/v1/volume_attachment_source.k @@ -3,7 +3,7 @@ This is the volume_attachment_source module in k8s.api.storage.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 +import api.core.v1 as corev1 schema VolumeAttachmentSource: @@ -12,14 +12,14 @@ schema VolumeAttachmentSource: Attributes ---------- - inlineVolumeSpec : v1.PersistentVolumeSpec, default is Undefined, optional + inlineVolumeSpec : corev1.PersistentVolumeSpec, default is Undefined, optional inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature. persistentVolumeName : str, default is Undefined, optional Name of the persistent volume to attach. """ - inlineVolumeSpec?: v1.PersistentVolumeSpec + inlineVolumeSpec?: corev1.PersistentVolumeSpec persistentVolumeName?: str diff --git a/k8s/1.26/kcl.mod b/k8s/1.26/kcl.mod index 9d244f93..04136298 100644 --- a/k8s/1.26/kcl.mod +++ b/k8s/1.26/kcl.mod @@ -1,5 +1,5 @@ [package] name = "k8s" edition = "*" -version = "1.26" +version = "1.26.1" description = "`k8s` is a KCL module contains all the built-in Kubernetes resource models (the CRDs are not included here)." diff --git a/k8s/1.27/api/apps/v1/daemon_set_spec.k b/k8s/1.27/api/apps/v1/daemon_set_spec.k index b97d2046..c34c5eba 100644 --- a/k8s/1.27/api/apps/v1/daemon_set_spec.k +++ b/k8s/1.27/api/apps/v1/daemon_set_spec.k @@ -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 @@ -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). The only allowed template.spec.restartPolicy value is "Always". 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. @@ -32,7 +32,7 @@ schema DaemonSetSpec: selector: v1.LabelSelector - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: DaemonSetUpdateStrategy diff --git a/k8s/1.27/api/apps/v1/deployment_spec.k b/k8s/1.27/api/apps/v1/deployment_spec.k index 5bdc7a00..7a6835d9 100644 --- a/k8s/1.27/api/apps/v1/deployment_spec.k +++ b/k8s/1.27/api/apps/v1/deployment_spec.k @@ -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 @@ -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. The only allowed template.spec.restartPolicy value is "Always". """ @@ -46,6 +46,6 @@ schema DeploymentSpec: strategy?: DeploymentStrategy - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec diff --git a/k8s/1.27/api/apps/v1/replica_set_spec.k b/k8s/1.27/api/apps/v1/replica_set_spec.k index a1572bc1..700810d3 100644 --- a/k8s/1.27/api/apps/v1/replica_set_spec.k +++ b/k8s/1.27/api/apps/v1/replica_set_spec.k @@ -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 @@ -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 """ @@ -30,6 +30,6 @@ schema ReplicaSetSpec: selector: v1.LabelSelector - template?: coreV1.PodTemplateSpec + template?: corev1.PodTemplateSpec diff --git a/k8s/1.27/api/apps/v1/stateful_set_spec.k b/k8s/1.27/api/apps/v1/stateful_set_spec.k index c5b98c80..fb5f2938 100644 --- a/k8s/1.27/api/apps/v1/stateful_set_spec.k +++ b/k8s/1.27/api/apps/v1/stateful_set_spec.k @@ -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 @@ -29,11 +29,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. Each pod will be named with the format -. For example, a pod in a StatefulSet named "web" with index number "3" would be named "web-3". The only allowed template.spec.restartPolicy value is "Always". 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. """ @@ -54,10 +54,10 @@ schema StatefulSetSpec: serviceName: str - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: StatefulSetUpdateStrategy - volumeClaimTemplates?: [coreV1.PersistentVolumeClaim] + volumeClaimTemplates?: [corev1.PersistentVolumeClaim] diff --git a/k8s/1.27/api/authentication/v1alpha1/self_subject_review_status.k b/k8s/1.27/api/authentication/v1alpha1/self_subject_review_status.k index 5c668d73..df9e8481 100644 --- a/k8s/1.27/api/authentication/v1alpha1/self_subject_review_status.k +++ b/k8s/1.27/api/authentication/v1alpha1/self_subject_review_status.k @@ -3,7 +3,7 @@ This is the self_subject_review_status module in k8s.api.authentication.v1alpha1 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.authentication.v1 +import api.authentication.v1 as apiauthv1 schema SelfSubjectReviewStatus: @@ -17,6 +17,6 @@ schema SelfSubjectReviewStatus: """ - userInfo?: v1.UserInfo + userInfo?: apiauthv1.UserInfo diff --git a/k8s/1.27/api/authentication/v1beta1/self_subject_review_status.k b/k8s/1.27/api/authentication/v1beta1/self_subject_review_status.k index 1656c4c2..6be5c336 100644 --- a/k8s/1.27/api/authentication/v1beta1/self_subject_review_status.k +++ b/k8s/1.27/api/authentication/v1beta1/self_subject_review_status.k @@ -3,7 +3,7 @@ This is the self_subject_review_status module in k8s.api.authentication.v1beta1 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.authentication.v1 +import api.authentication.v1 as apiauthv1 schema SelfSubjectReviewStatus: @@ -17,6 +17,6 @@ schema SelfSubjectReviewStatus: """ - userInfo?: v1.UserInfo + userInfo?: apiauthv1.UserInfo diff --git a/k8s/1.27/api/batch/v1/cron_job_status.k b/k8s/1.27/api/batch/v1/cron_job_status.k index bc07fdb1..420347ff 100644 --- a/k8s/1.27/api/batch/v1/cron_job_status.k +++ b/k8s/1.27/api/batch/v1/cron_job_status.k @@ -3,7 +3,7 @@ This is the cron_job_status 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 +import api.core.v1 as corev1 schema CronJobStatus: @@ -12,7 +12,7 @@ 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. @@ -21,7 +21,7 @@ schema CronJobStatus: """ - active?: [v1.ObjectReference] + active?: [corev1.ObjectReference] lastScheduleTime?: str diff --git a/k8s/1.27/api/batch/v1/job_spec.k b/k8s/1.27/api/batch/v1/job_spec.k index a2ae1bb4..197def5b 100644 --- a/k8s/1.27/api/batch/v1/job_spec.k +++ b/k8s/1.27/api/batch/v1/job_spec.k @@ -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 @@ -39,7 +39,7 @@ schema JobSpec: 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 suspend : bool, default is Undefined, optional suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false. - 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. The only allowed template.spec.restartPolicy values are "Never" or "OnFailure". 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. @@ -64,7 +64,7 @@ schema JobSpec: suspend?: bool - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec ttlSecondsAfterFinished?: int diff --git a/k8s/1.27/api/discovery/v1/endpoint.k b/k8s/1.27/api/discovery/v1/endpoint.k index 77dc0d6d..4e423ee7 100644 --- a/k8s/1.27/api/discovery/v1/endpoint.k +++ b/k8s/1.27/api/discovery/v1/endpoint.k @@ -3,7 +3,7 @@ This is the endpoint module in k8s.api.discovery.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 +import api.core.v1 as corev1 schema Endpoint: @@ -24,7 +24,7 @@ schema Endpoint: hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation. nodeName : str, default is Undefined, optional nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. - targetRef : v1.ObjectReference, default is Undefined, optional + targetRef : corev1.ObjectReference, default is Undefined, optional targetRef is a reference to a Kubernetes object that represents this endpoint. zone : str, default is Undefined, optional zone is the name of the Zone this endpoint exists in. @@ -43,7 +43,7 @@ schema Endpoint: nodeName?: str - targetRef?: v1.ObjectReference + targetRef?: corev1.ObjectReference zone?: str diff --git a/k8s/1.27/api/events/v1/event.k b/k8s/1.27/api/events/v1/event.k index 0141a1f4..67b0e016 100644 --- a/k8s/1.27/api/events/v1/event.k +++ b/k8s/1.27/api/events/v1/event.k @@ -3,8 +3,8 @@ This is the event module in k8s.api.events.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 -import apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema Event: @@ -23,21 +23,21 @@ schema Event: deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. deprecatedLastTimestamp : str, default is Undefined, optional deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. - deprecatedSource : v1.EventSource, default is Undefined, optional + deprecatedSource : corev1.EventSource, default is Undefined, optional deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. eventTime : str, default is Undefined, required eventTime is the time when this Event was first observed. It is required. kind : str, default is "Event", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata note : str, default is Undefined, optional note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. reason : str, default is Undefined, optional reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters. - regarding : v1.ObjectReference, default is Undefined, optional + regarding : corev1.ObjectReference, default is Undefined, optional regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. - related : v1.ObjectReference, default is Undefined, optional + related : corev1.ObjectReference, default is Undefined, optional related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. reportingController : str, default is Undefined, optional reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. @@ -60,21 +60,21 @@ schema Event: deprecatedLastTimestamp?: str - deprecatedSource?: v1.EventSource + deprecatedSource?: corev1.EventSource eventTime: str kind: "Event" = "Event" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta note?: str reason?: str - regarding?: v1.ObjectReference + regarding?: corev1.ObjectReference - related?: v1.ObjectReference + related?: corev1.ObjectReference reportingController?: str diff --git a/k8s/1.27/api/networking/v1/ingress_backend.k b/k8s/1.27/api/networking/v1/ingress_backend.k index 15df5a94..cb0aa358 100644 --- a/k8s/1.27/api/networking/v1/ingress_backend.k +++ b/k8s/1.27/api/networking/v1/ingress_backend.k @@ -3,7 +3,7 @@ This is the ingress_backend module in k8s.api.networking.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 +import api.core.v1 as corev1 schema IngressBackend: @@ -12,14 +12,14 @@ schema IngressBackend: Attributes ---------- - resource : v1.TypedLocalObjectReference, default is Undefined, optional + resource : corev1.TypedLocalObjectReference, default is Undefined, optional resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with "Service". service : IngressServiceBackend, default is Undefined, optional service references a service as a backend. This is a mutually exclusive setting with "Resource". """ - resource?: v1.TypedLocalObjectReference + resource?: corev1.TypedLocalObjectReference service?: IngressServiceBackend diff --git a/k8s/1.27/api/networking/v1alpha1/cluster_cidr_spec.k b/k8s/1.27/api/networking/v1alpha1/cluster_cidr_spec.k index 4c47bc10..12d46868 100644 --- a/k8s/1.27/api/networking/v1alpha1/cluster_cidr_spec.k +++ b/k8s/1.27/api/networking/v1alpha1/cluster_cidr_spec.k @@ -3,7 +3,7 @@ This is the cluster_cidr_spec module in k8s.api.networking.v1alpha1 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 ClusterCIDRSpec: @@ -16,7 +16,7 @@ schema ClusterCIDRSpec: ipv4 defines an IPv4 IP block in CIDR notation(e.g. "10.0.0.0/8"). At least one of ipv4 and ipv6 must be specified. This field is immutable. ipv6 : str, default is Undefined, optional ipv6 defines an IPv6 IP block in CIDR notation(e.g. "2001:db8::/64"). At least one of ipv4 and ipv6 must be specified. This field is immutable. - nodeSelector : v1.NodeSelector, default is Undefined, optional + nodeSelector : corev1.NodeSelector, default is Undefined, optional nodeSelector defines which nodes the config is applicable to. An empty or nil nodeSelector selects all nodes. This field is immutable. perNodeHostBits : int, default is Undefined, required perNodeHostBits defines the number of host bits to be configured per node. A subnet mask determines how much of the address is used for network bits and host bits. For example an IPv4 address of 192.168.0.0/24, splits the address into 24 bits for the network portion and 8 bits for the host portion. To allocate 256 IPs, set this field to 8 (a /24 mask for IPv4 or a /120 for IPv6). Minimum value is 4 (16 IPs). This field is immutable. @@ -27,7 +27,7 @@ schema ClusterCIDRSpec: ipv6?: str - nodeSelector?: v1.NodeSelector + nodeSelector?: corev1.NodeSelector perNodeHostBits: int diff --git a/k8s/1.27/api/node/v1/scheduling.k b/k8s/1.27/api/node/v1/scheduling.k index b7904f85..593e8d61 100644 --- a/k8s/1.27/api/node/v1/scheduling.k +++ b/k8s/1.27/api/node/v1/scheduling.k @@ -3,7 +3,7 @@ This is the scheduling module in k8s.api.node.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 +import api.core.v1 as corev1 schema Scheduling: @@ -14,13 +14,13 @@ schema Scheduling: ---------- nodeSelector : {str:str}, default is Undefined, optional nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - tolerations : [v1.Toleration], default is Undefined, optional + tolerations : [corev1.Toleration], default is Undefined, optional tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. """ nodeSelector?: {str:str} - tolerations?: [v1.Toleration] + tolerations?: [corev1.Toleration] diff --git a/k8s/1.27/api/resource/v1alpha2/allocation_result.k b/k8s/1.27/api/resource/v1alpha2/allocation_result.k index e1d5a6fd..fe2766c2 100644 --- a/k8s/1.27/api/resource/v1alpha2/allocation_result.k +++ b/k8s/1.27/api/resource/v1alpha2/allocation_result.k @@ -3,7 +3,7 @@ This is the allocation_result module in k8s.api.resource.v1alpha2 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 AllocationResult: @@ -12,7 +12,7 @@ schema AllocationResult: Attributes ---------- - availableOnNodes : v1.NodeSelector, default is Undefined, optional + availableOnNodes : corev1.NodeSelector, default is Undefined, optional This field will get set by the resource driver after it has allocated the resource to inform the scheduler where it can schedule Pods using the ResourceClaim. Setting this field is optional. If null, the resource is available everywhere. @@ -25,7 +25,7 @@ schema AllocationResult: """ - availableOnNodes?: v1.NodeSelector + availableOnNodes?: corev1.NodeSelector resourceHandles?: [ResourceHandle] diff --git a/k8s/1.27/api/resource/v1alpha2/resource_class.k b/k8s/1.27/api/resource/v1alpha2/resource_class.k index 73a8fe03..f037ba6e 100644 --- a/k8s/1.27/api/resource/v1alpha2/resource_class.k +++ b/k8s/1.27/api/resource/v1alpha2/resource_class.k @@ -3,7 +3,7 @@ This is the resource_class module in k8s.api.resource.v1alpha2 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 @@ -27,7 +27,7 @@ schema ResourceClass: Standard object metadata parametersRef : ResourceClassParametersReference, default is Undefined, optional ParametersRef references an arbitrary separate object that may hold parameters that will be used by the driver when allocating a resource that uses this class. A dynamic resource driver can distinguish between parameters stored here and and those stored in ResourceClaimSpec. - suitableNodes : coreV1.NodeSelector, default is Undefined, optional + suitableNodes : corev1.NodeSelector, default is Undefined, optional Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a ResourceClaim that has not been allocated yet. Setting this field is optional. If null, all nodes are candidates. @@ -44,6 +44,6 @@ schema ResourceClass: parametersRef?: ResourceClassParametersReference - suitableNodes?: coreV1.NodeSelector + suitableNodes?: corev1.NodeSelector diff --git a/k8s/1.27/api/storage/v1/storage_class.k b/k8s/1.27/api/storage/v1/storage_class.k index ba7a6664..846ca7fa 100644 --- a/k8s/1.27/api/storage/v1/storage_class.k +++ b/k8s/1.27/api/storage/v1/storage_class.k @@ -3,8 +3,8 @@ This is the storage_class module in k8s.api.storage.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 -import apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema StorageClass: @@ -17,13 +17,13 @@ schema StorageClass: ---------- allowVolumeExpansion : bool, default is Undefined, optional allowVolumeExpansion shows whether the storage class allow volume expand. - allowedTopologies : [v1.TopologySelectorTerm], default is Undefined, optional + allowedTopologies : [corev1.TopologySelectorTerm], default is Undefined, optional allowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. apiVersion : str, default is "storage.k8s.io/v1", required APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources kind : str, default is "StorageClass", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata mountOptions : [str], default is Undefined, optional mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. @@ -40,13 +40,13 @@ schema StorageClass: allowVolumeExpansion?: bool - allowedTopologies?: [v1.TopologySelectorTerm] + allowedTopologies?: [corev1.TopologySelectorTerm] apiVersion: "storage.k8s.io/v1" = "storage.k8s.io/v1" kind: "StorageClass" = "StorageClass" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta mountOptions?: [str] diff --git a/k8s/1.27/api/storage/v1/volume_attachment_source.k b/k8s/1.27/api/storage/v1/volume_attachment_source.k index 09262196..a8b6abd3 100644 --- a/k8s/1.27/api/storage/v1/volume_attachment_source.k +++ b/k8s/1.27/api/storage/v1/volume_attachment_source.k @@ -3,7 +3,7 @@ This is the volume_attachment_source module in k8s.api.storage.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 +import api.core.v1 as corev1 schema VolumeAttachmentSource: @@ -12,14 +12,14 @@ schema VolumeAttachmentSource: Attributes ---------- - inlineVolumeSpec : v1.PersistentVolumeSpec, default is Undefined, optional + inlineVolumeSpec : corev1.PersistentVolumeSpec, default is Undefined, optional inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature. persistentVolumeName : str, default is Undefined, optional persistentVolumeName represents the name of the persistent volume to attach. """ - inlineVolumeSpec?: v1.PersistentVolumeSpec + inlineVolumeSpec?: corev1.PersistentVolumeSpec persistentVolumeName?: str diff --git a/k8s/1.27/kcl.mod b/k8s/1.27/kcl.mod index 49b24bfd..e74ff3d6 100644 --- a/k8s/1.27/kcl.mod +++ b/k8s/1.27/kcl.mod @@ -1,5 +1,5 @@ [package] name = "k8s" edition = "*" -version = "1.27" +version = "1.27.1" description = "`k8s` is a KCL module contains all the built-in Kubernetes resource models (the CRDs are not included here)." diff --git a/k8s/1.28/api/apps/v1/daemon_set_spec.k b/k8s/1.28/api/apps/v1/daemon_set_spec.k index b97d2046..c34c5eba 100644 --- a/k8s/1.28/api/apps/v1/daemon_set_spec.k +++ b/k8s/1.28/api/apps/v1/daemon_set_spec.k @@ -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 @@ -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). The only allowed template.spec.restartPolicy value is "Always". 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. @@ -32,7 +32,7 @@ schema DaemonSetSpec: selector: v1.LabelSelector - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: DaemonSetUpdateStrategy diff --git a/k8s/1.28/api/apps/v1/deployment_spec.k b/k8s/1.28/api/apps/v1/deployment_spec.k index 5bdc7a00..7a6835d9 100644 --- a/k8s/1.28/api/apps/v1/deployment_spec.k +++ b/k8s/1.28/api/apps/v1/deployment_spec.k @@ -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 @@ -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. The only allowed template.spec.restartPolicy value is "Always". """ @@ -46,6 +46,6 @@ schema DeploymentSpec: strategy?: DeploymentStrategy - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec diff --git a/k8s/1.28/api/apps/v1/replica_set_spec.k b/k8s/1.28/api/apps/v1/replica_set_spec.k index a1572bc1..700810d3 100644 --- a/k8s/1.28/api/apps/v1/replica_set_spec.k +++ b/k8s/1.28/api/apps/v1/replica_set_spec.k @@ -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 @@ -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 """ @@ -30,6 +30,6 @@ schema ReplicaSetSpec: selector: v1.LabelSelector - template?: coreV1.PodTemplateSpec + template?: corev1.PodTemplateSpec diff --git a/k8s/1.28/api/apps/v1/stateful_set_spec.k b/k8s/1.28/api/apps/v1/stateful_set_spec.k index c5b98c80..fb5f2938 100644 --- a/k8s/1.28/api/apps/v1/stateful_set_spec.k +++ b/k8s/1.28/api/apps/v1/stateful_set_spec.k @@ -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 @@ -29,11 +29,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. Each pod will be named with the format -. For example, a pod in a StatefulSet named "web" with index number "3" would be named "web-3". The only allowed template.spec.restartPolicy value is "Always". 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. """ @@ -54,10 +54,10 @@ schema StatefulSetSpec: serviceName: str - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: StatefulSetUpdateStrategy - volumeClaimTemplates?: [coreV1.PersistentVolumeClaim] + volumeClaimTemplates?: [corev1.PersistentVolumeClaim] diff --git a/k8s/1.28/api/authentication/v1alpha1/self_subject_review_status.k b/k8s/1.28/api/authentication/v1alpha1/self_subject_review_status.k index 5c668d73..df9e8481 100644 --- a/k8s/1.28/api/authentication/v1alpha1/self_subject_review_status.k +++ b/k8s/1.28/api/authentication/v1alpha1/self_subject_review_status.k @@ -3,7 +3,7 @@ This is the self_subject_review_status module in k8s.api.authentication.v1alpha1 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.authentication.v1 +import api.authentication.v1 as apiauthv1 schema SelfSubjectReviewStatus: @@ -17,6 +17,6 @@ schema SelfSubjectReviewStatus: """ - userInfo?: v1.UserInfo + userInfo?: apiauthv1.UserInfo diff --git a/k8s/1.28/api/authentication/v1beta1/self_subject_review_status.k b/k8s/1.28/api/authentication/v1beta1/self_subject_review_status.k index 1656c4c2..6be5c336 100644 --- a/k8s/1.28/api/authentication/v1beta1/self_subject_review_status.k +++ b/k8s/1.28/api/authentication/v1beta1/self_subject_review_status.k @@ -3,7 +3,7 @@ This is the self_subject_review_status module in k8s.api.authentication.v1beta1 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.authentication.v1 +import api.authentication.v1 as apiauthv1 schema SelfSubjectReviewStatus: @@ -17,6 +17,6 @@ schema SelfSubjectReviewStatus: """ - userInfo?: v1.UserInfo + userInfo?: apiauthv1.UserInfo diff --git a/k8s/1.28/api/batch/v1/cron_job_status.k b/k8s/1.28/api/batch/v1/cron_job_status.k index bc07fdb1..420347ff 100644 --- a/k8s/1.28/api/batch/v1/cron_job_status.k +++ b/k8s/1.28/api/batch/v1/cron_job_status.k @@ -3,7 +3,7 @@ This is the cron_job_status 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 +import api.core.v1 as corev1 schema CronJobStatus: @@ -12,7 +12,7 @@ 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. @@ -21,7 +21,7 @@ schema CronJobStatus: """ - active?: [v1.ObjectReference] + active?: [corev1.ObjectReference] lastScheduleTime?: str diff --git a/k8s/1.28/api/batch/v1/job_spec.k b/k8s/1.28/api/batch/v1/job_spec.k index a2ae1bb4..197def5b 100644 --- a/k8s/1.28/api/batch/v1/job_spec.k +++ b/k8s/1.28/api/batch/v1/job_spec.k @@ -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 @@ -39,7 +39,7 @@ schema JobSpec: 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 suspend : bool, default is Undefined, optional suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false. - 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. The only allowed template.spec.restartPolicy values are "Never" or "OnFailure". 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. @@ -64,7 +64,7 @@ schema JobSpec: suspend?: bool - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec ttlSecondsAfterFinished?: int diff --git a/k8s/1.28/api/discovery/v1/endpoint.k b/k8s/1.28/api/discovery/v1/endpoint.k index 77dc0d6d..4e423ee7 100644 --- a/k8s/1.28/api/discovery/v1/endpoint.k +++ b/k8s/1.28/api/discovery/v1/endpoint.k @@ -3,7 +3,7 @@ This is the endpoint module in k8s.api.discovery.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 +import api.core.v1 as corev1 schema Endpoint: @@ -24,7 +24,7 @@ schema Endpoint: hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation. nodeName : str, default is Undefined, optional nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. - targetRef : v1.ObjectReference, default is Undefined, optional + targetRef : corev1.ObjectReference, default is Undefined, optional targetRef is a reference to a Kubernetes object that represents this endpoint. zone : str, default is Undefined, optional zone is the name of the Zone this endpoint exists in. @@ -43,7 +43,7 @@ schema Endpoint: nodeName?: str - targetRef?: v1.ObjectReference + targetRef?: corev1.ObjectReference zone?: str diff --git a/k8s/1.28/api/events/v1/event.k b/k8s/1.28/api/events/v1/event.k index 0141a1f4..67b0e016 100644 --- a/k8s/1.28/api/events/v1/event.k +++ b/k8s/1.28/api/events/v1/event.k @@ -3,8 +3,8 @@ This is the event module in k8s.api.events.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 -import apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema Event: @@ -23,21 +23,21 @@ schema Event: deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. deprecatedLastTimestamp : str, default is Undefined, optional deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. - deprecatedSource : v1.EventSource, default is Undefined, optional + deprecatedSource : corev1.EventSource, default is Undefined, optional deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. eventTime : str, default is Undefined, required eventTime is the time when this Event was first observed. It is required. kind : str, default is "Event", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata note : str, default is Undefined, optional note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. reason : str, default is Undefined, optional reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters. - regarding : v1.ObjectReference, default is Undefined, optional + regarding : corev1.ObjectReference, default is Undefined, optional regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. - related : v1.ObjectReference, default is Undefined, optional + related : corev1.ObjectReference, default is Undefined, optional related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. reportingController : str, default is Undefined, optional reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. @@ -60,21 +60,21 @@ schema Event: deprecatedLastTimestamp?: str - deprecatedSource?: v1.EventSource + deprecatedSource?: corev1.EventSource eventTime: str kind: "Event" = "Event" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta note?: str reason?: str - regarding?: v1.ObjectReference + regarding?: corev1.ObjectReference - related?: v1.ObjectReference + related?: corev1.ObjectReference reportingController?: str diff --git a/k8s/1.28/api/networking/v1/ingress_backend.k b/k8s/1.28/api/networking/v1/ingress_backend.k index 15df5a94..cb0aa358 100644 --- a/k8s/1.28/api/networking/v1/ingress_backend.k +++ b/k8s/1.28/api/networking/v1/ingress_backend.k @@ -3,7 +3,7 @@ This is the ingress_backend module in k8s.api.networking.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 +import api.core.v1 as corev1 schema IngressBackend: @@ -12,14 +12,14 @@ schema IngressBackend: Attributes ---------- - resource : v1.TypedLocalObjectReference, default is Undefined, optional + resource : corev1.TypedLocalObjectReference, default is Undefined, optional resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with "Service". service : IngressServiceBackend, default is Undefined, optional service references a service as a backend. This is a mutually exclusive setting with "Resource". """ - resource?: v1.TypedLocalObjectReference + resource?: corev1.TypedLocalObjectReference service?: IngressServiceBackend diff --git a/k8s/1.28/api/networking/v1alpha1/cluster_cidr_spec.k b/k8s/1.28/api/networking/v1alpha1/cluster_cidr_spec.k index 4c47bc10..12d46868 100644 --- a/k8s/1.28/api/networking/v1alpha1/cluster_cidr_spec.k +++ b/k8s/1.28/api/networking/v1alpha1/cluster_cidr_spec.k @@ -3,7 +3,7 @@ This is the cluster_cidr_spec module in k8s.api.networking.v1alpha1 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 ClusterCIDRSpec: @@ -16,7 +16,7 @@ schema ClusterCIDRSpec: ipv4 defines an IPv4 IP block in CIDR notation(e.g. "10.0.0.0/8"). At least one of ipv4 and ipv6 must be specified. This field is immutable. ipv6 : str, default is Undefined, optional ipv6 defines an IPv6 IP block in CIDR notation(e.g. "2001:db8::/64"). At least one of ipv4 and ipv6 must be specified. This field is immutable. - nodeSelector : v1.NodeSelector, default is Undefined, optional + nodeSelector : corev1.NodeSelector, default is Undefined, optional nodeSelector defines which nodes the config is applicable to. An empty or nil nodeSelector selects all nodes. This field is immutable. perNodeHostBits : int, default is Undefined, required perNodeHostBits defines the number of host bits to be configured per node. A subnet mask determines how much of the address is used for network bits and host bits. For example an IPv4 address of 192.168.0.0/24, splits the address into 24 bits for the network portion and 8 bits for the host portion. To allocate 256 IPs, set this field to 8 (a /24 mask for IPv4 or a /120 for IPv6). Minimum value is 4 (16 IPs). This field is immutable. @@ -27,7 +27,7 @@ schema ClusterCIDRSpec: ipv6?: str - nodeSelector?: v1.NodeSelector + nodeSelector?: corev1.NodeSelector perNodeHostBits: int diff --git a/k8s/1.28/api/node/v1/scheduling.k b/k8s/1.28/api/node/v1/scheduling.k index b7904f85..593e8d61 100644 --- a/k8s/1.28/api/node/v1/scheduling.k +++ b/k8s/1.28/api/node/v1/scheduling.k @@ -3,7 +3,7 @@ This is the scheduling module in k8s.api.node.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 +import api.core.v1 as corev1 schema Scheduling: @@ -14,13 +14,13 @@ schema Scheduling: ---------- nodeSelector : {str:str}, default is Undefined, optional nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - tolerations : [v1.Toleration], default is Undefined, optional + tolerations : [corev1.Toleration], default is Undefined, optional tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. """ nodeSelector?: {str:str} - tolerations?: [v1.Toleration] + tolerations?: [corev1.Toleration] diff --git a/k8s/1.28/api/resource/v1alpha2/allocation_result.k b/k8s/1.28/api/resource/v1alpha2/allocation_result.k index e1d5a6fd..fe2766c2 100644 --- a/k8s/1.28/api/resource/v1alpha2/allocation_result.k +++ b/k8s/1.28/api/resource/v1alpha2/allocation_result.k @@ -3,7 +3,7 @@ This is the allocation_result module in k8s.api.resource.v1alpha2 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 AllocationResult: @@ -12,7 +12,7 @@ schema AllocationResult: Attributes ---------- - availableOnNodes : v1.NodeSelector, default is Undefined, optional + availableOnNodes : corev1.NodeSelector, default is Undefined, optional This field will get set by the resource driver after it has allocated the resource to inform the scheduler where it can schedule Pods using the ResourceClaim. Setting this field is optional. If null, the resource is available everywhere. @@ -25,7 +25,7 @@ schema AllocationResult: """ - availableOnNodes?: v1.NodeSelector + availableOnNodes?: corev1.NodeSelector resourceHandles?: [ResourceHandle] diff --git a/k8s/1.28/api/resource/v1alpha2/resource_class.k b/k8s/1.28/api/resource/v1alpha2/resource_class.k index 73a8fe03..f037ba6e 100644 --- a/k8s/1.28/api/resource/v1alpha2/resource_class.k +++ b/k8s/1.28/api/resource/v1alpha2/resource_class.k @@ -3,7 +3,7 @@ This is the resource_class module in k8s.api.resource.v1alpha2 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 @@ -27,7 +27,7 @@ schema ResourceClass: Standard object metadata parametersRef : ResourceClassParametersReference, default is Undefined, optional ParametersRef references an arbitrary separate object that may hold parameters that will be used by the driver when allocating a resource that uses this class. A dynamic resource driver can distinguish between parameters stored here and and those stored in ResourceClaimSpec. - suitableNodes : coreV1.NodeSelector, default is Undefined, optional + suitableNodes : corev1.NodeSelector, default is Undefined, optional Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a ResourceClaim that has not been allocated yet. Setting this field is optional. If null, all nodes are candidates. @@ -44,6 +44,6 @@ schema ResourceClass: parametersRef?: ResourceClassParametersReference - suitableNodes?: coreV1.NodeSelector + suitableNodes?: corev1.NodeSelector diff --git a/k8s/1.28/api/storage/v1/storage_class.k b/k8s/1.28/api/storage/v1/storage_class.k index ba7a6664..846ca7fa 100644 --- a/k8s/1.28/api/storage/v1/storage_class.k +++ b/k8s/1.28/api/storage/v1/storage_class.k @@ -3,8 +3,8 @@ This is the storage_class module in k8s.api.storage.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 -import apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema StorageClass: @@ -17,13 +17,13 @@ schema StorageClass: ---------- allowVolumeExpansion : bool, default is Undefined, optional allowVolumeExpansion shows whether the storage class allow volume expand. - allowedTopologies : [v1.TopologySelectorTerm], default is Undefined, optional + allowedTopologies : [corev1.TopologySelectorTerm], default is Undefined, optional allowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. apiVersion : str, default is "storage.k8s.io/v1", required APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources kind : str, default is "StorageClass", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata mountOptions : [str], default is Undefined, optional mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. @@ -40,13 +40,13 @@ schema StorageClass: allowVolumeExpansion?: bool - allowedTopologies?: [v1.TopologySelectorTerm] + allowedTopologies?: [corev1.TopologySelectorTerm] apiVersion: "storage.k8s.io/v1" = "storage.k8s.io/v1" kind: "StorageClass" = "StorageClass" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta mountOptions?: [str] diff --git a/k8s/1.28/api/storage/v1/volume_attachment_source.k b/k8s/1.28/api/storage/v1/volume_attachment_source.k index 09262196..a8b6abd3 100644 --- a/k8s/1.28/api/storage/v1/volume_attachment_source.k +++ b/k8s/1.28/api/storage/v1/volume_attachment_source.k @@ -3,7 +3,7 @@ This is the volume_attachment_source module in k8s.api.storage.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 +import api.core.v1 as corev1 schema VolumeAttachmentSource: @@ -12,14 +12,14 @@ schema VolumeAttachmentSource: Attributes ---------- - inlineVolumeSpec : v1.PersistentVolumeSpec, default is Undefined, optional + inlineVolumeSpec : corev1.PersistentVolumeSpec, default is Undefined, optional inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature. persistentVolumeName : str, default is Undefined, optional persistentVolumeName represents the name of the persistent volume to attach. """ - inlineVolumeSpec?: v1.PersistentVolumeSpec + inlineVolumeSpec?: corev1.PersistentVolumeSpec persistentVolumeName?: str diff --git a/k8s/1.28/kcl.mod b/k8s/1.28/kcl.mod index bef81bd0..2dafde42 100644 --- a/k8s/1.28/kcl.mod +++ b/k8s/1.28/kcl.mod @@ -1,5 +1,5 @@ [package] name = "k8s" edition = "*" -version = "1.28" +version = "1.28.1" description = "`k8s` is a KCL module contains all the built-in Kubernetes resource models (the CRDs are not included here)." diff --git a/k8s/1.29/api/apps/v1/daemon_set_spec.k b/k8s/1.29/api/apps/v1/daemon_set_spec.k index b97d2046..c34c5eba 100644 --- a/k8s/1.29/api/apps/v1/daemon_set_spec.k +++ b/k8s/1.29/api/apps/v1/daemon_set_spec.k @@ -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 @@ -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). The only allowed template.spec.restartPolicy value is "Always". 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. @@ -32,7 +32,7 @@ schema DaemonSetSpec: selector: v1.LabelSelector - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: DaemonSetUpdateStrategy diff --git a/k8s/1.29/api/apps/v1/deployment_spec.k b/k8s/1.29/api/apps/v1/deployment_spec.k index 5bdc7a00..7a6835d9 100644 --- a/k8s/1.29/api/apps/v1/deployment_spec.k +++ b/k8s/1.29/api/apps/v1/deployment_spec.k @@ -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 @@ -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. The only allowed template.spec.restartPolicy value is "Always". """ @@ -46,6 +46,6 @@ schema DeploymentSpec: strategy?: DeploymentStrategy - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec diff --git a/k8s/1.29/api/apps/v1/replica_set_spec.k b/k8s/1.29/api/apps/v1/replica_set_spec.k index a1572bc1..700810d3 100644 --- a/k8s/1.29/api/apps/v1/replica_set_spec.k +++ b/k8s/1.29/api/apps/v1/replica_set_spec.k @@ -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 @@ -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 """ @@ -30,6 +30,6 @@ schema ReplicaSetSpec: selector: v1.LabelSelector - template?: coreV1.PodTemplateSpec + template?: corev1.PodTemplateSpec diff --git a/k8s/1.29/api/apps/v1/stateful_set_spec.k b/k8s/1.29/api/apps/v1/stateful_set_spec.k index c5b98c80..fb5f2938 100644 --- a/k8s/1.29/api/apps/v1/stateful_set_spec.k +++ b/k8s/1.29/api/apps/v1/stateful_set_spec.k @@ -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 @@ -29,11 +29,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. Each pod will be named with the format -. For example, a pod in a StatefulSet named "web" with index number "3" would be named "web-3". The only allowed template.spec.restartPolicy value is "Always". 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. """ @@ -54,10 +54,10 @@ schema StatefulSetSpec: serviceName: str - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: StatefulSetUpdateStrategy - volumeClaimTemplates?: [coreV1.PersistentVolumeClaim] + volumeClaimTemplates?: [corev1.PersistentVolumeClaim] diff --git a/k8s/1.29/api/authentication/v1alpha1/self_subject_review_status.k b/k8s/1.29/api/authentication/v1alpha1/self_subject_review_status.k index 5c668d73..df9e8481 100644 --- a/k8s/1.29/api/authentication/v1alpha1/self_subject_review_status.k +++ b/k8s/1.29/api/authentication/v1alpha1/self_subject_review_status.k @@ -3,7 +3,7 @@ This is the self_subject_review_status module in k8s.api.authentication.v1alpha1 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.authentication.v1 +import api.authentication.v1 as apiauthv1 schema SelfSubjectReviewStatus: @@ -17,6 +17,6 @@ schema SelfSubjectReviewStatus: """ - userInfo?: v1.UserInfo + userInfo?: apiauthv1.UserInfo diff --git a/k8s/1.29/api/authentication/v1beta1/self_subject_review_status.k b/k8s/1.29/api/authentication/v1beta1/self_subject_review_status.k index 1656c4c2..6be5c336 100644 --- a/k8s/1.29/api/authentication/v1beta1/self_subject_review_status.k +++ b/k8s/1.29/api/authentication/v1beta1/self_subject_review_status.k @@ -3,7 +3,7 @@ This is the self_subject_review_status module in k8s.api.authentication.v1beta1 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.authentication.v1 +import api.authentication.v1 as apiauthv1 schema SelfSubjectReviewStatus: @@ -17,6 +17,6 @@ schema SelfSubjectReviewStatus: """ - userInfo?: v1.UserInfo + userInfo?: apiauthv1.UserInfo diff --git a/k8s/1.29/api/batch/v1/cron_job_status.k b/k8s/1.29/api/batch/v1/cron_job_status.k index bc07fdb1..420347ff 100644 --- a/k8s/1.29/api/batch/v1/cron_job_status.k +++ b/k8s/1.29/api/batch/v1/cron_job_status.k @@ -3,7 +3,7 @@ This is the cron_job_status 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 +import api.core.v1 as corev1 schema CronJobStatus: @@ -12,7 +12,7 @@ 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. @@ -21,7 +21,7 @@ schema CronJobStatus: """ - active?: [v1.ObjectReference] + active?: [corev1.ObjectReference] lastScheduleTime?: str diff --git a/k8s/1.29/api/batch/v1/job_spec.k b/k8s/1.29/api/batch/v1/job_spec.k index 7e89334d..835efa21 100644 --- a/k8s/1.29/api/batch/v1/job_spec.k +++ b/k8s/1.29/api/batch/v1/job_spec.k @@ -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 @@ -50,7 +50,7 @@ schema JobSpec: 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 suspend : bool, default is Undefined, optional suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false. - 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. The only allowed template.spec.restartPolicy values are "Never" or "OnFailure". 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. @@ -81,7 +81,7 @@ schema JobSpec: suspend?: bool - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec ttlSecondsAfterFinished?: int diff --git a/k8s/1.29/api/discovery/v1/endpoint.k b/k8s/1.29/api/discovery/v1/endpoint.k index 77dc0d6d..4e423ee7 100644 --- a/k8s/1.29/api/discovery/v1/endpoint.k +++ b/k8s/1.29/api/discovery/v1/endpoint.k @@ -3,7 +3,7 @@ This is the endpoint module in k8s.api.discovery.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 +import api.core.v1 as corev1 schema Endpoint: @@ -24,7 +24,7 @@ schema Endpoint: hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation. nodeName : str, default is Undefined, optional nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. - targetRef : v1.ObjectReference, default is Undefined, optional + targetRef : corev1.ObjectReference, default is Undefined, optional targetRef is a reference to a Kubernetes object that represents this endpoint. zone : str, default is Undefined, optional zone is the name of the Zone this endpoint exists in. @@ -43,7 +43,7 @@ schema Endpoint: nodeName?: str - targetRef?: v1.ObjectReference + targetRef?: corev1.ObjectReference zone?: str diff --git a/k8s/1.29/api/events/v1/event.k b/k8s/1.29/api/events/v1/event.k index 0141a1f4..67b0e016 100644 --- a/k8s/1.29/api/events/v1/event.k +++ b/k8s/1.29/api/events/v1/event.k @@ -3,8 +3,8 @@ This is the event module in k8s.api.events.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 -import apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema Event: @@ -23,21 +23,21 @@ schema Event: deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. deprecatedLastTimestamp : str, default is Undefined, optional deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. - deprecatedSource : v1.EventSource, default is Undefined, optional + deprecatedSource : corev1.EventSource, default is Undefined, optional deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. eventTime : str, default is Undefined, required eventTime is the time when this Event was first observed. It is required. kind : str, default is "Event", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata note : str, default is Undefined, optional note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. reason : str, default is Undefined, optional reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters. - regarding : v1.ObjectReference, default is Undefined, optional + regarding : corev1.ObjectReference, default is Undefined, optional regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. - related : v1.ObjectReference, default is Undefined, optional + related : corev1.ObjectReference, default is Undefined, optional related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. reportingController : str, default is Undefined, optional reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. @@ -60,21 +60,21 @@ schema Event: deprecatedLastTimestamp?: str - deprecatedSource?: v1.EventSource + deprecatedSource?: corev1.EventSource eventTime: str kind: "Event" = "Event" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta note?: str reason?: str - regarding?: v1.ObjectReference + regarding?: corev1.ObjectReference - related?: v1.ObjectReference + related?: corev1.ObjectReference reportingController?: str diff --git a/k8s/1.29/api/networking/v1/ingress_backend.k b/k8s/1.29/api/networking/v1/ingress_backend.k index 15df5a94..cb0aa358 100644 --- a/k8s/1.29/api/networking/v1/ingress_backend.k +++ b/k8s/1.29/api/networking/v1/ingress_backend.k @@ -3,7 +3,7 @@ This is the ingress_backend module in k8s.api.networking.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 +import api.core.v1 as corev1 schema IngressBackend: @@ -12,14 +12,14 @@ schema IngressBackend: Attributes ---------- - resource : v1.TypedLocalObjectReference, default is Undefined, optional + resource : corev1.TypedLocalObjectReference, default is Undefined, optional resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with "Service". service : IngressServiceBackend, default is Undefined, optional service references a service as a backend. This is a mutually exclusive setting with "Resource". """ - resource?: v1.TypedLocalObjectReference + resource?: corev1.TypedLocalObjectReference service?: IngressServiceBackend diff --git a/k8s/1.29/api/node/v1/scheduling.k b/k8s/1.29/api/node/v1/scheduling.k index b7904f85..593e8d61 100644 --- a/k8s/1.29/api/node/v1/scheduling.k +++ b/k8s/1.29/api/node/v1/scheduling.k @@ -3,7 +3,7 @@ This is the scheduling module in k8s.api.node.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 +import api.core.v1 as corev1 schema Scheduling: @@ -14,13 +14,13 @@ schema Scheduling: ---------- nodeSelector : {str:str}, default is Undefined, optional nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - tolerations : [v1.Toleration], default is Undefined, optional + tolerations : [corev1.Toleration], default is Undefined, optional tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. """ nodeSelector?: {str:str} - tolerations?: [v1.Toleration] + tolerations?: [corev1.Toleration] diff --git a/k8s/1.29/api/resource/v1alpha2/allocation_result.k b/k8s/1.29/api/resource/v1alpha2/allocation_result.k index e1d5a6fd..fe2766c2 100644 --- a/k8s/1.29/api/resource/v1alpha2/allocation_result.k +++ b/k8s/1.29/api/resource/v1alpha2/allocation_result.k @@ -3,7 +3,7 @@ This is the allocation_result module in k8s.api.resource.v1alpha2 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 AllocationResult: @@ -12,7 +12,7 @@ schema AllocationResult: Attributes ---------- - availableOnNodes : v1.NodeSelector, default is Undefined, optional + availableOnNodes : corev1.NodeSelector, default is Undefined, optional This field will get set by the resource driver after it has allocated the resource to inform the scheduler where it can schedule Pods using the ResourceClaim. Setting this field is optional. If null, the resource is available everywhere. @@ -25,7 +25,7 @@ schema AllocationResult: """ - availableOnNodes?: v1.NodeSelector + availableOnNodes?: corev1.NodeSelector resourceHandles?: [ResourceHandle] diff --git a/k8s/1.29/api/resource/v1alpha2/resource_class.k b/k8s/1.29/api/resource/v1alpha2/resource_class.k index 73a8fe03..f037ba6e 100644 --- a/k8s/1.29/api/resource/v1alpha2/resource_class.k +++ b/k8s/1.29/api/resource/v1alpha2/resource_class.k @@ -3,7 +3,7 @@ This is the resource_class module in k8s.api.resource.v1alpha2 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 @@ -27,7 +27,7 @@ schema ResourceClass: Standard object metadata parametersRef : ResourceClassParametersReference, default is Undefined, optional ParametersRef references an arbitrary separate object that may hold parameters that will be used by the driver when allocating a resource that uses this class. A dynamic resource driver can distinguish between parameters stored here and and those stored in ResourceClaimSpec. - suitableNodes : coreV1.NodeSelector, default is Undefined, optional + suitableNodes : corev1.NodeSelector, default is Undefined, optional Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a ResourceClaim that has not been allocated yet. Setting this field is optional. If null, all nodes are candidates. @@ -44,6 +44,6 @@ schema ResourceClass: parametersRef?: ResourceClassParametersReference - suitableNodes?: coreV1.NodeSelector + suitableNodes?: corev1.NodeSelector diff --git a/k8s/1.29/api/storage/v1/storage_class.k b/k8s/1.29/api/storage/v1/storage_class.k index ba7a6664..846ca7fa 100644 --- a/k8s/1.29/api/storage/v1/storage_class.k +++ b/k8s/1.29/api/storage/v1/storage_class.k @@ -3,8 +3,8 @@ This is the storage_class module in k8s.api.storage.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 -import apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema StorageClass: @@ -17,13 +17,13 @@ schema StorageClass: ---------- allowVolumeExpansion : bool, default is Undefined, optional allowVolumeExpansion shows whether the storage class allow volume expand. - allowedTopologies : [v1.TopologySelectorTerm], default is Undefined, optional + allowedTopologies : [corev1.TopologySelectorTerm], default is Undefined, optional allowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. apiVersion : str, default is "storage.k8s.io/v1", required APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources kind : str, default is "StorageClass", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata mountOptions : [str], default is Undefined, optional mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. @@ -40,13 +40,13 @@ schema StorageClass: allowVolumeExpansion?: bool - allowedTopologies?: [v1.TopologySelectorTerm] + allowedTopologies?: [corev1.TopologySelectorTerm] apiVersion: "storage.k8s.io/v1" = "storage.k8s.io/v1" kind: "StorageClass" = "StorageClass" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta mountOptions?: [str] diff --git a/k8s/1.29/api/storage/v1/volume_attachment_source.k b/k8s/1.29/api/storage/v1/volume_attachment_source.k index 09262196..a8b6abd3 100644 --- a/k8s/1.29/api/storage/v1/volume_attachment_source.k +++ b/k8s/1.29/api/storage/v1/volume_attachment_source.k @@ -3,7 +3,7 @@ This is the volume_attachment_source module in k8s.api.storage.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 +import api.core.v1 as corev1 schema VolumeAttachmentSource: @@ -12,14 +12,14 @@ schema VolumeAttachmentSource: Attributes ---------- - inlineVolumeSpec : v1.PersistentVolumeSpec, default is Undefined, optional + inlineVolumeSpec : corev1.PersistentVolumeSpec, default is Undefined, optional inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature. persistentVolumeName : str, default is Undefined, optional persistentVolumeName represents the name of the persistent volume to attach. """ - inlineVolumeSpec?: v1.PersistentVolumeSpec + inlineVolumeSpec?: corev1.PersistentVolumeSpec persistentVolumeName?: str diff --git a/k8s/1.29/kcl.mod b/k8s/1.29/kcl.mod index 305e594f..4e325744 100644 --- a/k8s/1.29/kcl.mod +++ b/k8s/1.29/kcl.mod @@ -1,5 +1,5 @@ [package] name = "k8s" edition = "*" -version = "1.29" +version = "1.29.1" description = "`k8s` is a KCL module contains all the built-in Kubernetes resource models (the CRDs are not included here)." diff --git a/k8s/1.30/api/apps/v1/daemon_set_spec.k b/k8s/1.30/api/apps/v1/daemon_set_spec.k index b97d2046..c34c5eba 100644 --- a/k8s/1.30/api/apps/v1/daemon_set_spec.k +++ b/k8s/1.30/api/apps/v1/daemon_set_spec.k @@ -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 @@ -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). The only allowed template.spec.restartPolicy value is "Always". 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. @@ -32,7 +32,7 @@ schema DaemonSetSpec: selector: v1.LabelSelector - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: DaemonSetUpdateStrategy diff --git a/k8s/1.30/api/apps/v1/deployment_spec.k b/k8s/1.30/api/apps/v1/deployment_spec.k index 5bdc7a00..7a6835d9 100644 --- a/k8s/1.30/api/apps/v1/deployment_spec.k +++ b/k8s/1.30/api/apps/v1/deployment_spec.k @@ -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 @@ -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. The only allowed template.spec.restartPolicy value is "Always". """ @@ -46,6 +46,6 @@ schema DeploymentSpec: strategy?: DeploymentStrategy - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec diff --git a/k8s/1.30/api/apps/v1/replica_set_spec.k b/k8s/1.30/api/apps/v1/replica_set_spec.k index a1572bc1..700810d3 100644 --- a/k8s/1.30/api/apps/v1/replica_set_spec.k +++ b/k8s/1.30/api/apps/v1/replica_set_spec.k @@ -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 @@ -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 """ @@ -30,6 +30,6 @@ schema ReplicaSetSpec: selector: v1.LabelSelector - template?: coreV1.PodTemplateSpec + template?: corev1.PodTemplateSpec diff --git a/k8s/1.30/api/apps/v1/stateful_set_spec.k b/k8s/1.30/api/apps/v1/stateful_set_spec.k index c5b98c80..fb5f2938 100644 --- a/k8s/1.30/api/apps/v1/stateful_set_spec.k +++ b/k8s/1.30/api/apps/v1/stateful_set_spec.k @@ -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 @@ -29,11 +29,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. Each pod will be named with the format -. For example, a pod in a StatefulSet named "web" with index number "3" would be named "web-3". The only allowed template.spec.restartPolicy value is "Always". 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. """ @@ -54,10 +54,10 @@ schema StatefulSetSpec: serviceName: str - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: StatefulSetUpdateStrategy - volumeClaimTemplates?: [coreV1.PersistentVolumeClaim] + volumeClaimTemplates?: [corev1.PersistentVolumeClaim] diff --git a/k8s/1.30/api/authentication/v1alpha1/self_subject_review_status.k b/k8s/1.30/api/authentication/v1alpha1/self_subject_review_status.k index 5c668d73..df9e8481 100644 --- a/k8s/1.30/api/authentication/v1alpha1/self_subject_review_status.k +++ b/k8s/1.30/api/authentication/v1alpha1/self_subject_review_status.k @@ -3,7 +3,7 @@ This is the self_subject_review_status module in k8s.api.authentication.v1alpha1 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.authentication.v1 +import api.authentication.v1 as apiauthv1 schema SelfSubjectReviewStatus: @@ -17,6 +17,6 @@ schema SelfSubjectReviewStatus: """ - userInfo?: v1.UserInfo + userInfo?: apiauthv1.UserInfo diff --git a/k8s/1.30/api/authentication/v1beta1/self_subject_review_status.k b/k8s/1.30/api/authentication/v1beta1/self_subject_review_status.k index 1656c4c2..6be5c336 100644 --- a/k8s/1.30/api/authentication/v1beta1/self_subject_review_status.k +++ b/k8s/1.30/api/authentication/v1beta1/self_subject_review_status.k @@ -3,7 +3,7 @@ This is the self_subject_review_status module in k8s.api.authentication.v1beta1 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.authentication.v1 +import api.authentication.v1 as apiauthv1 schema SelfSubjectReviewStatus: @@ -17,6 +17,6 @@ schema SelfSubjectReviewStatus: """ - userInfo?: v1.UserInfo + userInfo?: apiauthv1.UserInfo diff --git a/k8s/1.30/api/batch/v1/cron_job_status.k b/k8s/1.30/api/batch/v1/cron_job_status.k index bc07fdb1..420347ff 100644 --- a/k8s/1.30/api/batch/v1/cron_job_status.k +++ b/k8s/1.30/api/batch/v1/cron_job_status.k @@ -3,7 +3,7 @@ This is the cron_job_status 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 +import api.core.v1 as corev1 schema CronJobStatus: @@ -12,7 +12,7 @@ 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. @@ -21,7 +21,7 @@ schema CronJobStatus: """ - active?: [v1.ObjectReference] + active?: [corev1.ObjectReference] lastScheduleTime?: str diff --git a/k8s/1.30/api/batch/v1/job_spec.k b/k8s/1.30/api/batch/v1/job_spec.k index a604d0a0..9c4bfd01 100644 --- a/k8s/1.30/api/batch/v1/job_spec.k +++ b/k8s/1.30/api/batch/v1/job_spec.k @@ -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 @@ -58,7 +58,7 @@ schema JobSpec: This field is alpha-level. To use this field, you must enable the `JobSuccessPolicy` feature gate (disabled by default). suspend : bool, default is Undefined, optional suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false. - 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. The only allowed template.spec.restartPolicy values are "Never" or "OnFailure". 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. @@ -93,7 +93,7 @@ schema JobSpec: suspend?: bool - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec ttlSecondsAfterFinished?: int diff --git a/k8s/1.30/api/discovery/v1/endpoint.k b/k8s/1.30/api/discovery/v1/endpoint.k index 77dc0d6d..4e423ee7 100644 --- a/k8s/1.30/api/discovery/v1/endpoint.k +++ b/k8s/1.30/api/discovery/v1/endpoint.k @@ -3,7 +3,7 @@ This is the endpoint module in k8s.api.discovery.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 +import api.core.v1 as corev1 schema Endpoint: @@ -24,7 +24,7 @@ schema Endpoint: hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation. nodeName : str, default is Undefined, optional nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. - targetRef : v1.ObjectReference, default is Undefined, optional + targetRef : corev1.ObjectReference, default is Undefined, optional targetRef is a reference to a Kubernetes object that represents this endpoint. zone : str, default is Undefined, optional zone is the name of the Zone this endpoint exists in. @@ -43,7 +43,7 @@ schema Endpoint: nodeName?: str - targetRef?: v1.ObjectReference + targetRef?: corev1.ObjectReference zone?: str diff --git a/k8s/1.30/api/events/v1/event.k b/k8s/1.30/api/events/v1/event.k index 0141a1f4..67b0e016 100644 --- a/k8s/1.30/api/events/v1/event.k +++ b/k8s/1.30/api/events/v1/event.k @@ -3,8 +3,8 @@ This is the event module in k8s.api.events.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 -import apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema Event: @@ -23,21 +23,21 @@ schema Event: deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. deprecatedLastTimestamp : str, default is Undefined, optional deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. - deprecatedSource : v1.EventSource, default is Undefined, optional + deprecatedSource : corev1.EventSource, default is Undefined, optional deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. eventTime : str, default is Undefined, required eventTime is the time when this Event was first observed. It is required. kind : str, default is "Event", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata note : str, default is Undefined, optional note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. reason : str, default is Undefined, optional reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters. - regarding : v1.ObjectReference, default is Undefined, optional + regarding : corev1.ObjectReference, default is Undefined, optional regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. - related : v1.ObjectReference, default is Undefined, optional + related : corev1.ObjectReference, default is Undefined, optional related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. reportingController : str, default is Undefined, optional reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. @@ -60,21 +60,21 @@ schema Event: deprecatedLastTimestamp?: str - deprecatedSource?: v1.EventSource + deprecatedSource?: corev1.EventSource eventTime: str kind: "Event" = "Event" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta note?: str reason?: str - regarding?: v1.ObjectReference + regarding?: corev1.ObjectReference - related?: v1.ObjectReference + related?: corev1.ObjectReference reportingController?: str diff --git a/k8s/1.30/api/networking/v1/ingress_backend.k b/k8s/1.30/api/networking/v1/ingress_backend.k index 15df5a94..cb0aa358 100644 --- a/k8s/1.30/api/networking/v1/ingress_backend.k +++ b/k8s/1.30/api/networking/v1/ingress_backend.k @@ -3,7 +3,7 @@ This is the ingress_backend module in k8s.api.networking.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 +import api.core.v1 as corev1 schema IngressBackend: @@ -12,14 +12,14 @@ schema IngressBackend: Attributes ---------- - resource : v1.TypedLocalObjectReference, default is Undefined, optional + resource : corev1.TypedLocalObjectReference, default is Undefined, optional resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with "Service". service : IngressServiceBackend, default is Undefined, optional service references a service as a backend. This is a mutually exclusive setting with "Resource". """ - resource?: v1.TypedLocalObjectReference + resource?: corev1.TypedLocalObjectReference service?: IngressServiceBackend diff --git a/k8s/1.30/api/node/v1/scheduling.k b/k8s/1.30/api/node/v1/scheduling.k index b7904f85..593e8d61 100644 --- a/k8s/1.30/api/node/v1/scheduling.k +++ b/k8s/1.30/api/node/v1/scheduling.k @@ -3,7 +3,7 @@ This is the scheduling module in k8s.api.node.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 +import api.core.v1 as corev1 schema Scheduling: @@ -14,13 +14,13 @@ schema Scheduling: ---------- nodeSelector : {str:str}, default is Undefined, optional nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - tolerations : [v1.Toleration], default is Undefined, optional + tolerations : [corev1.Toleration], default is Undefined, optional tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. """ nodeSelector?: {str:str} - tolerations?: [v1.Toleration] + tolerations?: [corev1.Toleration] diff --git a/k8s/1.30/api/resource/v1alpha2/allocation_result.k b/k8s/1.30/api/resource/v1alpha2/allocation_result.k index e1d5a6fd..fe2766c2 100644 --- a/k8s/1.30/api/resource/v1alpha2/allocation_result.k +++ b/k8s/1.30/api/resource/v1alpha2/allocation_result.k @@ -3,7 +3,7 @@ This is the allocation_result module in k8s.api.resource.v1alpha2 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 AllocationResult: @@ -12,7 +12,7 @@ schema AllocationResult: Attributes ---------- - availableOnNodes : v1.NodeSelector, default is Undefined, optional + availableOnNodes : corev1.NodeSelector, default is Undefined, optional This field will get set by the resource driver after it has allocated the resource to inform the scheduler where it can schedule Pods using the ResourceClaim. Setting this field is optional. If null, the resource is available everywhere. @@ -25,7 +25,7 @@ schema AllocationResult: """ - availableOnNodes?: v1.NodeSelector + availableOnNodes?: corev1.NodeSelector resourceHandles?: [ResourceHandle] diff --git a/k8s/1.30/api/resource/v1alpha2/resource_class.k b/k8s/1.30/api/resource/v1alpha2/resource_class.k index f875a0ed..d92eadd3 100644 --- a/k8s/1.30/api/resource/v1alpha2/resource_class.k +++ b/k8s/1.30/api/resource/v1alpha2/resource_class.k @@ -3,7 +3,7 @@ This is the resource_class module in k8s.api.resource.v1alpha2 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 @@ -29,7 +29,7 @@ schema ResourceClass: ParametersRef references an arbitrary separate object that may hold parameters that will be used by the driver when allocating a resource that uses this class. A dynamic resource driver can distinguish between parameters stored here and and those stored in ResourceClaimSpec. structuredParameters : bool, default is Undefined, optional If and only if allocation of claims using this class is handled via structured parameters, then StructuredParameters must be set to true. - suitableNodes : coreV1.NodeSelector, default is Undefined, optional + suitableNodes : corev1.NodeSelector, default is Undefined, optional Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a ResourceClaim that has not been allocated yet. Setting this field is optional. If null, all nodes are candidates. @@ -48,6 +48,6 @@ schema ResourceClass: structuredParameters?: bool - suitableNodes?: coreV1.NodeSelector + suitableNodes?: corev1.NodeSelector diff --git a/k8s/1.30/api/storage/v1/storage_class.k b/k8s/1.30/api/storage/v1/storage_class.k index ba7a6664..846ca7fa 100644 --- a/k8s/1.30/api/storage/v1/storage_class.k +++ b/k8s/1.30/api/storage/v1/storage_class.k @@ -3,8 +3,8 @@ This is the storage_class module in k8s.api.storage.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 -import apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema StorageClass: @@ -17,13 +17,13 @@ schema StorageClass: ---------- allowVolumeExpansion : bool, default is Undefined, optional allowVolumeExpansion shows whether the storage class allow volume expand. - allowedTopologies : [v1.TopologySelectorTerm], default is Undefined, optional + allowedTopologies : [corev1.TopologySelectorTerm], default is Undefined, optional allowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. apiVersion : str, default is "storage.k8s.io/v1", required APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources kind : str, default is "StorageClass", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata mountOptions : [str], default is Undefined, optional mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. @@ -40,13 +40,13 @@ schema StorageClass: allowVolumeExpansion?: bool - allowedTopologies?: [v1.TopologySelectorTerm] + allowedTopologies?: [corev1.TopologySelectorTerm] apiVersion: "storage.k8s.io/v1" = "storage.k8s.io/v1" kind: "StorageClass" = "StorageClass" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta mountOptions?: [str] diff --git a/k8s/1.30/api/storage/v1/volume_attachment_source.k b/k8s/1.30/api/storage/v1/volume_attachment_source.k index 09262196..a8b6abd3 100644 --- a/k8s/1.30/api/storage/v1/volume_attachment_source.k +++ b/k8s/1.30/api/storage/v1/volume_attachment_source.k @@ -3,7 +3,7 @@ This is the volume_attachment_source module in k8s.api.storage.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 +import api.core.v1 as corev1 schema VolumeAttachmentSource: @@ -12,14 +12,14 @@ schema VolumeAttachmentSource: Attributes ---------- - inlineVolumeSpec : v1.PersistentVolumeSpec, default is Undefined, optional + inlineVolumeSpec : corev1.PersistentVolumeSpec, default is Undefined, optional inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature. persistentVolumeName : str, default is Undefined, optional persistentVolumeName represents the name of the persistent volume to attach. """ - inlineVolumeSpec?: v1.PersistentVolumeSpec + inlineVolumeSpec?: corev1.PersistentVolumeSpec persistentVolumeName?: str diff --git a/k8s/1.30/kcl.mod b/k8s/1.30/kcl.mod index aa23b173..15ff28a6 100644 --- a/k8s/1.30/kcl.mod +++ b/k8s/1.30/kcl.mod @@ -1,5 +1,5 @@ [package] name = "k8s" edition = "*" -version = "1.30" +version = "1.30.1" description = "`k8s` is a KCL module contains all the built-in Kubernetes resource models (the CRDs are not included here)." diff --git a/k8s/1.31/api/apps/v1/daemon_set_spec.k b/k8s/1.31/api/apps/v1/daemon_set_spec.k index 9fe199d7..07902427 100644 --- a/k8s/1.31/api/apps/v1/daemon_set_spec.k +++ b/k8s/1.31/api/apps/v1/daemon_set_spec.k @@ -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 @@ -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). The only allowed template.spec.restartPolicy value is "Always". 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. @@ -32,7 +32,7 @@ schema DaemonSetSpec: selector: v1.LabelSelector - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: DaemonSetUpdateStrategy diff --git a/k8s/1.31/api/apps/v1/deployment_spec.k b/k8s/1.31/api/apps/v1/deployment_spec.k index a941866f..765d2139 100644 --- a/k8s/1.31/api/apps/v1/deployment_spec.k +++ b/k8s/1.31/api/apps/v1/deployment_spec.k @@ -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 @@ -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. The only allowed template.spec.restartPolicy value is "Always". """ @@ -46,6 +46,6 @@ schema DeploymentSpec: strategy?: DeploymentStrategy - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec diff --git a/k8s/1.31/api/apps/v1/replica_set_spec.k b/k8s/1.31/api/apps/v1/replica_set_spec.k index 7954a4ed..7d3f3d93 100644 --- a/k8s/1.31/api/apps/v1/replica_set_spec.k +++ b/k8s/1.31/api/apps/v1/replica_set_spec.k @@ -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 @@ -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 """ @@ -30,6 +30,6 @@ schema ReplicaSetSpec: selector: v1.LabelSelector - template?: coreV1.PodTemplateSpec + template?: corev1.PodTemplateSpec diff --git a/k8s/1.31/api/apps/v1/stateful_set_spec.k b/k8s/1.31/api/apps/v1/stateful_set_spec.k index 0200ff75..a1f7cb8e 100644 --- a/k8s/1.31/api/apps/v1/stateful_set_spec.k +++ b/k8s/1.31/api/apps/v1/stateful_set_spec.k @@ -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 @@ -29,11 +29,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. Each pod will be named with the format -. For example, a pod in a StatefulSet named "web" with index number "3" would be named "web-3". The only allowed template.spec.restartPolicy value is "Always". 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. """ @@ -54,10 +54,10 @@ schema StatefulSetSpec: serviceName: str - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec updateStrategy?: StatefulSetUpdateStrategy - volumeClaimTemplates?: [coreV1.PersistentVolumeClaim] + volumeClaimTemplates?: [corev1.PersistentVolumeClaim] diff --git a/k8s/1.31/api/authentication/v1alpha1/self_subject_review_status.k b/k8s/1.31/api/authentication/v1alpha1/self_subject_review_status.k index b6ca6713..24b3a0f6 100644 --- a/k8s/1.31/api/authentication/v1alpha1/self_subject_review_status.k +++ b/k8s/1.31/api/authentication/v1alpha1/self_subject_review_status.k @@ -3,7 +3,7 @@ This is the self_subject_review_status module in k8s.api.authentication.v1alpha1 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.authentication.v1 +import api.authentication.v1 as apiauthv1 schema SelfSubjectReviewStatus: @@ -17,6 +17,6 @@ schema SelfSubjectReviewStatus: """ - userInfo?: v1.UserInfo + userInfo?: apiauthv1.UserInfo diff --git a/k8s/1.31/api/authentication/v1beta1/self_subject_review_status.k b/k8s/1.31/api/authentication/v1beta1/self_subject_review_status.k index 15c8cc61..92248aa9 100644 --- a/k8s/1.31/api/authentication/v1beta1/self_subject_review_status.k +++ b/k8s/1.31/api/authentication/v1beta1/self_subject_review_status.k @@ -3,7 +3,7 @@ This is the self_subject_review_status module in k8s.api.authentication.v1beta1 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.authentication.v1 +import api.authentication.v1 as apiauthv1 schema SelfSubjectReviewStatus: @@ -17,6 +17,6 @@ schema SelfSubjectReviewStatus: """ - userInfo?: v1.UserInfo + userInfo?: apiauthv1.UserInfo diff --git a/k8s/1.31/api/batch/v1/cron_job_status.k b/k8s/1.31/api/batch/v1/cron_job_status.k index e929bfac..d2859073 100644 --- a/k8s/1.31/api/batch/v1/cron_job_status.k +++ b/k8s/1.31/api/batch/v1/cron_job_status.k @@ -3,7 +3,7 @@ This is the cron_job_status 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 +import api.core.v1 as corev1 schema CronJobStatus: @@ -12,7 +12,7 @@ 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. @@ -21,7 +21,7 @@ schema CronJobStatus: """ - active?: [v1.ObjectReference] + active?: [corev1.ObjectReference] lastScheduleTime?: str diff --git a/k8s/1.31/api/batch/v1/job_spec.k b/k8s/1.31/api/batch/v1/job_spec.k index 6eda7350..9bdaff4e 100644 --- a/k8s/1.31/api/batch/v1/job_spec.k +++ b/k8s/1.31/api/batch/v1/job_spec.k @@ -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 @@ -56,7 +56,7 @@ schema JobSpec: This field is beta-level. To use this field, you must enable the `JobSuccessPolicy` feature gate (enabled by default). suspend : bool, default is Undefined, optional suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false. - 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. The only allowed template.spec.restartPolicy values are "Never" or "OnFailure". 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. @@ -91,7 +91,7 @@ schema JobSpec: suspend?: bool - template: coreV1.PodTemplateSpec + template: corev1.PodTemplateSpec ttlSecondsAfterFinished?: int diff --git a/k8s/1.31/api/discovery/v1/endpoint.k b/k8s/1.31/api/discovery/v1/endpoint.k index 4e3c81c7..fc2bfef7 100644 --- a/k8s/1.31/api/discovery/v1/endpoint.k +++ b/k8s/1.31/api/discovery/v1/endpoint.k @@ -3,7 +3,7 @@ This is the endpoint module in k8s.api.discovery.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 +import api.core.v1 as corev1 schema Endpoint: @@ -24,7 +24,7 @@ schema Endpoint: hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation. nodeName : str, default is Undefined, optional nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. - targetRef : v1.ObjectReference, default is Undefined, optional + targetRef : corev1.ObjectReference, default is Undefined, optional targetRef is a reference to a Kubernetes object that represents this endpoint. zone : str, default is Undefined, optional zone is the name of the Zone this endpoint exists in. @@ -43,7 +43,7 @@ schema Endpoint: nodeName?: str - targetRef?: v1.ObjectReference + targetRef?: corev1.ObjectReference zone?: str diff --git a/k8s/1.31/api/events/v1/event.k b/k8s/1.31/api/events/v1/event.k index 3ae2ed04..e0f1ae96 100644 --- a/k8s/1.31/api/events/v1/event.k +++ b/k8s/1.31/api/events/v1/event.k @@ -3,8 +3,8 @@ This is the event module in k8s.api.events.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 -import apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema Event: @@ -23,21 +23,21 @@ schema Event: deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. deprecatedLastTimestamp : str, default is Undefined, optional deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. - deprecatedSource : v1.EventSource, default is Undefined, optional + deprecatedSource : corev1.EventSource, default is Undefined, optional deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. eventTime : str, default is Undefined, required eventTime is the time when this Event was first observed. It is required. kind : str, default is "Event", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata note : str, default is Undefined, optional note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. reason : str, default is Undefined, optional reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters. - regarding : v1.ObjectReference, default is Undefined, optional + regarding : corev1.ObjectReference, default is Undefined, optional regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. - related : v1.ObjectReference, default is Undefined, optional + related : corev1.ObjectReference, default is Undefined, optional related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. reportingController : str, default is Undefined, optional reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. @@ -60,21 +60,21 @@ schema Event: deprecatedLastTimestamp?: str - deprecatedSource?: v1.EventSource + deprecatedSource?: corev1.EventSource eventTime: str kind: "Event" = "Event" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta note?: str reason?: str - regarding?: v1.ObjectReference + regarding?: corev1.ObjectReference - related?: v1.ObjectReference + related?: corev1.ObjectReference reportingController?: str diff --git a/k8s/1.31/api/networking/v1/ingress_backend.k b/k8s/1.31/api/networking/v1/ingress_backend.k index 96504843..c7fcb116 100644 --- a/k8s/1.31/api/networking/v1/ingress_backend.k +++ b/k8s/1.31/api/networking/v1/ingress_backend.k @@ -3,7 +3,7 @@ This is the ingress_backend module in k8s.api.networking.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 +import api.core.v1 as corev1 schema IngressBackend: @@ -12,14 +12,14 @@ schema IngressBackend: Attributes ---------- - resource : v1.TypedLocalObjectReference, default is Undefined, optional + resource : corev1.TypedLocalObjectReference, default is Undefined, optional resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with "Service". service : IngressServiceBackend, default is Undefined, optional service references a service as a backend. This is a mutually exclusive setting with "Resource". """ - resource?: v1.TypedLocalObjectReference + resource?: corev1.TypedLocalObjectReference service?: IngressServiceBackend diff --git a/k8s/1.31/api/node/v1/scheduling.k b/k8s/1.31/api/node/v1/scheduling.k index 996786af..c7adeae0 100644 --- a/k8s/1.31/api/node/v1/scheduling.k +++ b/k8s/1.31/api/node/v1/scheduling.k @@ -3,7 +3,7 @@ This is the scheduling module in k8s.api.node.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 +import api.core.v1 as corev1 schema Scheduling: @@ -14,13 +14,13 @@ schema Scheduling: ---------- nodeSelector : {str:str}, default is Undefined, optional nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - tolerations : [v1.Toleration], default is Undefined, optional + tolerations : [corev1.Toleration], default is Undefined, optional tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. """ nodeSelector?: {str:str} - tolerations?: [v1.Toleration] + tolerations?: [corev1.Toleration] diff --git a/k8s/1.31/api/resource/v1alpha3/allocation_result.k b/k8s/1.31/api/resource/v1alpha3/allocation_result.k index 1583a359..d7534480 100644 --- a/k8s/1.31/api/resource/v1alpha3/allocation_result.k +++ b/k8s/1.31/api/resource/v1alpha3/allocation_result.k @@ -3,7 +3,7 @@ This is the allocation_result module in k8s.api.resource.v1alpha3 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 AllocationResult: @@ -20,7 +20,7 @@ schema AllocationResult: This is an alpha field and requires enabling the DRAControlPlaneController feature gate. devices : DeviceAllocationResult, default is Undefined, optional Devices is the result of allocating devices. - nodeSelector : v1.NodeSelector, default is Undefined, optional + nodeSelector : corev1.NodeSelector, default is Undefined, optional NodeSelector defines where the allocated resources are available. If unset, they are available everywhere. """ @@ -29,6 +29,6 @@ schema AllocationResult: devices?: DeviceAllocationResult - nodeSelector?: v1.NodeSelector + nodeSelector?: corev1.NodeSelector diff --git a/k8s/1.31/api/resource/v1alpha3/device_class_spec.k b/k8s/1.31/api/resource/v1alpha3/device_class_spec.k index d44f03a6..2826df08 100644 --- a/k8s/1.31/api/resource/v1alpha3/device_class_spec.k +++ b/k8s/1.31/api/resource/v1alpha3/device_class_spec.k @@ -3,7 +3,7 @@ This is the device_class_spec module in k8s.api.resource.v1alpha3 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 DeviceClassSpec: @@ -18,7 +18,7 @@ schema DeviceClassSpec: They are passed to the driver, but are not considered while allocating the claim. selectors : [DeviceSelector], default is Undefined, optional Each selector must be satisfied by a device which is claimed via this class. - suitableNodes : v1.NodeSelector, default is Undefined, optional + suitableNodes : corev1.NodeSelector, default is Undefined, optional Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a claim that has not been allocated yet *and* that claim gets allocated through a control plane controller. It is ignored when the claim does not use a control plane controller for allocation. Setting this field is optional. If unset, all Nodes are candidates. @@ -31,6 +31,6 @@ schema DeviceClassSpec: selectors?: [DeviceSelector] - suitableNodes?: v1.NodeSelector + suitableNodes?: corev1.NodeSelector diff --git a/k8s/1.31/api/resource/v1alpha3/resource_slice_spec.k b/k8s/1.31/api/resource/v1alpha3/resource_slice_spec.k index b1397ae5..e47812e0 100644 --- a/k8s/1.31/api/resource/v1alpha3/resource_slice_spec.k +++ b/k8s/1.31/api/resource/v1alpha3/resource_slice_spec.k @@ -3,7 +3,7 @@ This is the resource_slice_spec module in k8s.api.resource.v1alpha3 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 ResourceSliceSpec: @@ -30,7 +30,7 @@ schema ResourceSliceSpec: This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available. Exactly one of NodeName, NodeSelector and AllNodes must be set. This field is immutable. - nodeSelector : v1.NodeSelector, default is Undefined, optional + nodeSelector : corev1.NodeSelector, default is Undefined, optional NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node. Must use exactly one term. @@ -49,7 +49,7 @@ schema ResourceSliceSpec: nodeName?: str - nodeSelector?: v1.NodeSelector + nodeSelector?: corev1.NodeSelector pool: ResourcePool diff --git a/k8s/1.31/api/storage/v1/storage_class.k b/k8s/1.31/api/storage/v1/storage_class.k index 1db90d11..be1f590d 100644 --- a/k8s/1.31/api/storage/v1/storage_class.k +++ b/k8s/1.31/api/storage/v1/storage_class.k @@ -3,8 +3,8 @@ This is the storage_class module in k8s.api.storage.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 -import apimachinery.pkg.apis.meta.v1 as metaV1 +import api.core.v1 as corev1 +import apimachinery.pkg.apis.meta.v1 as metav1 schema StorageClass: @@ -17,13 +17,13 @@ schema StorageClass: ---------- allowVolumeExpansion : bool, default is Undefined, optional allowVolumeExpansion shows whether the storage class allow volume expand. - allowedTopologies : [v1.TopologySelectorTerm], default is Undefined, optional + allowedTopologies : [corev1.TopologySelectorTerm], default is Undefined, optional allowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. apiVersion : str, default is "storage.k8s.io/v1", required APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources kind : str, default is "StorageClass", required Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - metadata : metaV1.ObjectMeta, default is Undefined, optional + metadata : metav1.ObjectMeta, default is Undefined, optional Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata mountOptions : [str], default is Undefined, optional mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. @@ -40,13 +40,13 @@ schema StorageClass: allowVolumeExpansion?: bool - allowedTopologies?: [v1.TopologySelectorTerm] + allowedTopologies?: [corev1.TopologySelectorTerm] apiVersion: "storage.k8s.io/v1" = "storage.k8s.io/v1" kind: "StorageClass" = "StorageClass" - metadata?: metaV1.ObjectMeta + metadata?: metav1.ObjectMeta mountOptions?: [str] diff --git a/k8s/1.31/api/storage/v1/volume_attachment_source.k b/k8s/1.31/api/storage/v1/volume_attachment_source.k index f8b9941b..bf6be574 100644 --- a/k8s/1.31/api/storage/v1/volume_attachment_source.k +++ b/k8s/1.31/api/storage/v1/volume_attachment_source.k @@ -3,7 +3,7 @@ This is the volume_attachment_source module in k8s.api.storage.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 +import api.core.v1 as corev1 schema VolumeAttachmentSource: @@ -12,14 +12,14 @@ schema VolumeAttachmentSource: Attributes ---------- - inlineVolumeSpec : v1.PersistentVolumeSpec, default is Undefined, optional + inlineVolumeSpec : corev1.PersistentVolumeSpec, default is Undefined, optional inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature. persistentVolumeName : str, default is Undefined, optional persistentVolumeName represents the name of the persistent volume to attach. """ - inlineVolumeSpec?: v1.PersistentVolumeSpec + inlineVolumeSpec?: corev1.PersistentVolumeSpec persistentVolumeName?: str