From 65b35d154bafa0ccc5186acdec61253293c380b2 Mon Sep 17 00:00:00 2001 From: "Shinebayar G." <3091558+shinebayar-g@users.noreply.github.com> Date: Mon, 16 Dec 2024 19:32:09 -0800 Subject: [PATCH] fix: remove all the Status classes (#26) Release-As: 0.2.0 --- .github/workflows/pull-request.yaml | 1 - packages/cli/src/generateCore.ts | 8 ++ packages/cli/src/utils.ts | 9 ++- .../core/src/models/APIServiceStatusv1.ts | 11 --- .../CertificateSigningRequestStatusv1.ts | 15 ---- packages/core/src/models/ComponentStatusv1.ts | 24 ------ .../models/ContainerResourceMetricStatusv2.ts | 19 ----- packages/core/src/models/ContainerStatusv1.ts | 67 ----------------- packages/core/src/models/CronJobStatusv1.ts | 19 ----- .../CustomResourceDefinitionStatusv1.ts | 20 ----- packages/core/src/models/DaemonSetStatusv1.ts | 47 ------------ .../core/src/models/DeploymentStatusv1.ts | 39 ---------- .../core/src/models/ExternalMetricStatusv2.ts | 16 ---- .../core/src/models/FlowSchemaStatusv1.ts | 11 --- .../src/models/FlowSchemaStatusv1beta3.ts | 11 --- .../models/HorizontalPodAutoscalerStatusv1.ts | 25 ------- .../models/HorizontalPodAutoscalerStatusv2.ts | 32 -------- .../models/IngressLoadBalancerIngressv1.ts | 19 ----- .../src/models/IngressLoadBalancerStatusv1.ts | 11 --- .../core/src/models/IngressPortStatusv1.ts | 17 ----- packages/core/src/models/IngressStatusv1.ts | 11 --- packages/core/src/models/JobStatusv1.ts | 52 ------------- .../core/src/models/LoadBalancerIngressv1.ts | 23 ------ .../core/src/models/LoadBalancerStatusv1.ts | 11 --- packages/core/src/models/MetricStatusv2.ts | 35 --------- .../core/src/models/MetricValueStatusv2.ts | 17 ----- .../core/src/models/ModifyVolumeStatusv1.ts | 9 --- packages/core/src/models/NamespaceStatusv1.ts | 15 ---- .../core/src/models/NodeConfigStatusv1.ts | 23 ------ packages/core/src/models/NodeStatusv1.ts | 67 ----------------- .../core/src/models/ObjectMetricStatusv2.ts | 21 ------ .../models/PersistentVolumeClaimStatusv1.ts | 40 ---------- .../src/models/PersistentVolumeStatusv1.ts | 21 ------ .../src/models/PodDisruptionBudgetStatusv1.ts | 35 --------- .../src/models/PodResourceClaimStatusv1.ts | 13 ---- .../PodSchedulingContextStatusv1alpha3.ts | 11 --- packages/core/src/models/PodStatusv1.ts | 75 ------------------- .../core/src/models/PodsMetricStatusv2.ts | 16 ---- packages/core/src/models/PortStatusv1.ts | 17 ----- .../PriorityLevelConfigurationStatusv1.ts | 11 --- ...PriorityLevelConfigurationStatusv1beta3.ts | 11 --- .../core/src/models/ReplicaSetStatusv1.ts | 31 -------- .../models/ReplicationControllerStatusv1.ts | 31 -------- .../ResourceClaimSchedulingStatusv1alpha3.ts | 13 ---- .../src/models/ResourceClaimStatusv1alpha3.ts | 20 ----- .../core/src/models/ResourceMetricStatusv2.ts | 15 ---- .../core/src/models/ResourceQuotaStatusv1.ts | 13 ---- packages/core/src/models/ResourceStatusv1.ts | 15 ---- packages/core/src/models/ScaleStatusv1.ts | 13 ---- .../src/models/SelfSubjectReviewStatusv1.ts | 11 --- .../models/SelfSubjectReviewStatusv1alpha1.ts | 11 --- .../models/SelfSubjectReviewStatusv1beta1.ts | 11 --- .../src/models/ServiceCIDRStatusv1beta1.ts | 11 --- packages/core/src/models/ServiceStatusv1.ts | 16 ---- .../core/src/models/StatefulSetStatusv1.ts | 47 ------------ .../StorageVersionMigrationStatusv1alpha1.ts | 15 ---- .../models/StorageVersionStatusv1alpha1.ts | 20 ----- .../src/models/SubjectAccessReviewStatusv1.ts | 21 ------ .../src/models/SubjectRulesReviewStatusv1.ts | 24 ------ .../core/src/models/TokenRequestStatusv1.ts | 13 ---- .../core/src/models/TokenReviewStatusv1.ts | 23 ------ .../ValidatingAdmissionPolicyStatusv1.ts | 20 ----- ...ValidatingAdmissionPolicyStatusv1alpha1.ts | 20 ----- .../ValidatingAdmissionPolicyStatusv1beta1.ts | 20 ----- .../src/models/VolumeAttachmentStatusv1.ts | 23 ------ .../core/src/models/VolumeMountStatusv1.ts | 21 ------ 66 files changed, 14 insertions(+), 1419 deletions(-) delete mode 100644 packages/core/src/models/APIServiceStatusv1.ts delete mode 100644 packages/core/src/models/CertificateSigningRequestStatusv1.ts delete mode 100644 packages/core/src/models/ComponentStatusv1.ts delete mode 100644 packages/core/src/models/ContainerResourceMetricStatusv2.ts delete mode 100644 packages/core/src/models/ContainerStatusv1.ts delete mode 100644 packages/core/src/models/CronJobStatusv1.ts delete mode 100644 packages/core/src/models/CustomResourceDefinitionStatusv1.ts delete mode 100644 packages/core/src/models/DaemonSetStatusv1.ts delete mode 100644 packages/core/src/models/DeploymentStatusv1.ts delete mode 100644 packages/core/src/models/ExternalMetricStatusv2.ts delete mode 100644 packages/core/src/models/FlowSchemaStatusv1.ts delete mode 100644 packages/core/src/models/FlowSchemaStatusv1beta3.ts delete mode 100644 packages/core/src/models/HorizontalPodAutoscalerStatusv1.ts delete mode 100644 packages/core/src/models/HorizontalPodAutoscalerStatusv2.ts delete mode 100644 packages/core/src/models/IngressLoadBalancerIngressv1.ts delete mode 100644 packages/core/src/models/IngressLoadBalancerStatusv1.ts delete mode 100644 packages/core/src/models/IngressPortStatusv1.ts delete mode 100644 packages/core/src/models/IngressStatusv1.ts delete mode 100644 packages/core/src/models/JobStatusv1.ts delete mode 100644 packages/core/src/models/LoadBalancerIngressv1.ts delete mode 100644 packages/core/src/models/LoadBalancerStatusv1.ts delete mode 100644 packages/core/src/models/MetricStatusv2.ts delete mode 100644 packages/core/src/models/MetricValueStatusv2.ts delete mode 100644 packages/core/src/models/ModifyVolumeStatusv1.ts delete mode 100644 packages/core/src/models/NamespaceStatusv1.ts delete mode 100644 packages/core/src/models/NodeConfigStatusv1.ts delete mode 100644 packages/core/src/models/NodeStatusv1.ts delete mode 100644 packages/core/src/models/ObjectMetricStatusv2.ts delete mode 100644 packages/core/src/models/PersistentVolumeClaimStatusv1.ts delete mode 100644 packages/core/src/models/PersistentVolumeStatusv1.ts delete mode 100644 packages/core/src/models/PodDisruptionBudgetStatusv1.ts delete mode 100644 packages/core/src/models/PodResourceClaimStatusv1.ts delete mode 100644 packages/core/src/models/PodSchedulingContextStatusv1alpha3.ts delete mode 100644 packages/core/src/models/PodStatusv1.ts delete mode 100644 packages/core/src/models/PodsMetricStatusv2.ts delete mode 100644 packages/core/src/models/PortStatusv1.ts delete mode 100644 packages/core/src/models/PriorityLevelConfigurationStatusv1.ts delete mode 100644 packages/core/src/models/PriorityLevelConfigurationStatusv1beta3.ts delete mode 100644 packages/core/src/models/ReplicaSetStatusv1.ts delete mode 100644 packages/core/src/models/ReplicationControllerStatusv1.ts delete mode 100644 packages/core/src/models/ResourceClaimSchedulingStatusv1alpha3.ts delete mode 100644 packages/core/src/models/ResourceClaimStatusv1alpha3.ts delete mode 100644 packages/core/src/models/ResourceMetricStatusv2.ts delete mode 100644 packages/core/src/models/ResourceQuotaStatusv1.ts delete mode 100644 packages/core/src/models/ResourceStatusv1.ts delete mode 100644 packages/core/src/models/ScaleStatusv1.ts delete mode 100644 packages/core/src/models/SelfSubjectReviewStatusv1.ts delete mode 100644 packages/core/src/models/SelfSubjectReviewStatusv1alpha1.ts delete mode 100644 packages/core/src/models/SelfSubjectReviewStatusv1beta1.ts delete mode 100644 packages/core/src/models/ServiceCIDRStatusv1beta1.ts delete mode 100644 packages/core/src/models/ServiceStatusv1.ts delete mode 100644 packages/core/src/models/StatefulSetStatusv1.ts delete mode 100644 packages/core/src/models/StorageVersionMigrationStatusv1alpha1.ts delete mode 100644 packages/core/src/models/StorageVersionStatusv1alpha1.ts delete mode 100644 packages/core/src/models/SubjectAccessReviewStatusv1.ts delete mode 100644 packages/core/src/models/SubjectRulesReviewStatusv1.ts delete mode 100644 packages/core/src/models/TokenRequestStatusv1.ts delete mode 100644 packages/core/src/models/TokenReviewStatusv1.ts delete mode 100644 packages/core/src/models/ValidatingAdmissionPolicyStatusv1.ts delete mode 100644 packages/core/src/models/ValidatingAdmissionPolicyStatusv1alpha1.ts delete mode 100644 packages/core/src/models/ValidatingAdmissionPolicyStatusv1beta1.ts delete mode 100644 packages/core/src/models/VolumeAttachmentStatusv1.ts delete mode 100644 packages/core/src/models/VolumeMountStatusv1.ts diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml index 18aa9fa..1d45d20 100644 --- a/.github/workflows/pull-request.yaml +++ b/.github/workflows/pull-request.yaml @@ -30,7 +30,6 @@ jobs: ci requireScope: false - - uses: marocchino/sticky-pull-request-comment@v2 if: always() && steps.lint_pr_title.outputs.error_message != null with: diff --git a/packages/cli/src/generateCore.ts b/packages/cli/src/generateCore.ts index 658bd15..4b4034b 100644 --- a/packages/cli/src/generateCore.ts +++ b/packages/cli/src/generateCore.ts @@ -128,6 +128,14 @@ function morph() { if (classDeclaration && className) { removeUnusedThings(sourceFile, classDeclaration, className, groupVersionKindMap); + /** + * Remove all the Status classes. + */ + const isStatus = /^[A-Za-z]+Statusv\d/; + if (sourceFile.getBaseNameWithoutExtension().match(isStatus)) { + sourceFile.delete(); + continue; + } /** * If the groupVersionKindMap contains the "path" property, then it's a Kubernetes API resource. * Everything else should be interfaces. diff --git a/packages/cli/src/utils.ts b/packages/cli/src/utils.ts index def0de3..e0f3b54 100644 --- a/packages/cli/src/utils.ts +++ b/packages/cli/src/utils.ts @@ -27,10 +27,13 @@ export function formatCode(modelsPath: string) { } export function removeUnusedFiles(modelsPath: string) { - const unusedFiles = new Set(['V1Event.ts']); - const keepStatusFiles = new Set(['V1IngressPortStatus.ts', 'V1PortStatus.ts']); + const unusedFiles = new Set([ + 'V1Event.ts', + 'LoadBalancerIngressv1.ts', + 'IngressLoadBalancerIngressv1.ts', + ]); fs.readdirSync(modelsPath).forEach((file) => { - if ((file.endsWith('Status.ts') && !keepStatusFiles.has(file)) || unusedFiles.has(file)) { + if (file.endsWith('Status.ts') || unusedFiles.has(file)) { fs.rmSync(path.join(modelsPath, file)); } }); diff --git a/packages/core/src/models/APIServiceStatusv1.ts b/packages/core/src/models/APIServiceStatusv1.ts deleted file mode 100644 index 3fd255c..0000000 --- a/packages/core/src/models/APIServiceStatusv1.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { APIServiceConditionv1 } from './APIServiceConditionv1.js'; - -/** - * APIServiceStatus contains derived information about an API server - */ -export interface APIServiceStatusv1 { - /** - * Current service state of apiService. - */ - conditions?: Array; -} diff --git a/packages/core/src/models/CertificateSigningRequestStatusv1.ts b/packages/core/src/models/CertificateSigningRequestStatusv1.ts deleted file mode 100644 index 590bfcc..0000000 --- a/packages/core/src/models/CertificateSigningRequestStatusv1.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { CertificateSigningRequestConditionv1 } from './CertificateSigningRequestConditionv1.js'; - -/** - * CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate. - */ -export interface CertificateSigningRequestStatusv1 { - /** - * certificate is populated with an issued certificate by the signer after an Approved condition is present. This field is set via the /status subresource. Once populated, this field is immutable. If the certificate signing request is denied, a condition of type \"Denied\" is added and this field remains empty. If the signer cannot issue the certificate, a condition of type \"Failed\" is added and this field remains empty. Validation requirements: 1. certificate must contain one or more PEM blocks. 2. All PEM blocks must have the \"CERTIFICATE\" label, contain no headers, and the encoded data must be a BER-encoded ASN.1 Certificate structure as described in section 4 of RFC5280. 3. Non-PEM content may appear before or after the \"CERTIFICATE\" PEM blocks and is unvalidated, to allow for explanatory text as described in section 5.2 of RFC7468. If more than one PEM block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes. The certificate is encoded in PEM format. When serialized as JSON or YAML, the data is additionally base64-encoded, so it consists of: base64( -----BEGIN CERTIFICATE----- ... -----END CERTIFICATE----- ) - */ - certificate?: string; - /** - * conditions applied to the request. Known conditions are \"Approved\", \"Denied\", and \"Failed\". - */ - conditions?: Array; -} diff --git a/packages/core/src/models/ComponentStatusv1.ts b/packages/core/src/models/ComponentStatusv1.ts deleted file mode 100644 index 462a0de..0000000 --- a/packages/core/src/models/ComponentStatusv1.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { ComponentConditionv1 } from './ComponentConditionv1.js'; -import { ObjectMetav1 } from './ObjectMetav1.js'; - -/** - * ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+ - */ -export interface ComponentStatusv1 { - /** - * 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 - */ - apiVersion?: string; - /** - * List of component conditions observed - */ - conditions?: Array; - /** - * 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 - */ - kind?: string; - /** - * Standard object\'s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - */ - metadata?: ObjectMetav1; -} diff --git a/packages/core/src/models/ContainerResourceMetricStatusv2.ts b/packages/core/src/models/ContainerResourceMetricStatusv2.ts deleted file mode 100644 index b735bc0..0000000 --- a/packages/core/src/models/ContainerResourceMetricStatusv2.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { MetricValueStatusv2 } from './MetricValueStatusv2.js'; - -/** - * ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. - */ -export interface ContainerResourceMetricStatusv2 { - /** - * container is the name of the container in the pods of the scaling target - */ - container: string; - /** - * current contains the current value for the given metric - */ - current: MetricValueStatusv2; - /** - * name is the name of the resource in question. - */ - name: string; -} diff --git a/packages/core/src/models/ContainerStatusv1.ts b/packages/core/src/models/ContainerStatusv1.ts deleted file mode 100644 index e4cdb89..0000000 --- a/packages/core/src/models/ContainerStatusv1.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { ContainerStatev1 } from './ContainerStatev1.js'; -import { ContainerUserv1 } from './ContainerUserv1.js'; -import { ResourceRequirementsv1 } from './ResourceRequirementsv1.js'; -import { ResourceStatusv1 } from './ResourceStatusv1.js'; -import { VolumeMountStatusv1 } from './VolumeMountStatusv1.js'; - -/** - * ContainerStatus contains details for the current status of this container. - */ -export interface ContainerStatusv1 { - /** - * AllocatedResources represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize. - */ - allocatedResources?: { [key: string]: number | string }; - /** - * AllocatedResourcesStatus represents the status of various resources allocated for this Pod. - */ - allocatedResourcesStatus?: Array; - /** - * ContainerID is the ID of the container in the format \'://\'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\"). - */ - containerID?: string; - /** - * Image is the name of container image that the container is running. The container image may not match the image used in the PodSpec, as it may have been resolved by the runtime. More info: https://kubernetes.io/docs/concepts/containers/images. - */ - image: string; - /** - * ImageID is the image ID of the container\'s image. The image ID may not match the image ID of the image used in the PodSpec, as it may have been resolved by the runtime. - */ - imageID: string; - /** - * LastTerminationState holds the last termination state of the container to help debug container crashes and restarts. This field is not populated if the container is still running and RestartCount is 0. - */ - lastState?: ContainerStatev1; - /** - * Name is a DNS_LABEL representing the unique name of the container. Each container in a pod must have a unique name across all container types. Cannot be updated. - */ - name: string; - /** - * Ready specifies whether the container is currently passing its readiness check. The value will change as readiness probes keep executing. If no readiness probes are specified, this field defaults to true once the container is fully started (see Started field). The value is typically used to determine whether a container is ready to accept traffic. - */ - ready: boolean; - /** - * Resources represents the compute resource requests and limits that have been successfully enacted on the running container after it has been started or has been successfully resized. - */ - resources?: ResourceRequirementsv1; - /** - * RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative. - */ - restartCount: number; - /** - * Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. In both cases, startup probes will run again. Is always true when no startupProbe is defined and container is running and has passed the postStart lifecycle hook. The null value must be treated the same as false. - */ - started?: boolean; - /** - * State holds details about the container\'s current condition. - */ - state?: ContainerStatev1; - /** - * User represents user identity information initially attached to the first process of the container - */ - user?: ContainerUserv1; - /** - * Status of volume mounts. - */ - volumeMounts?: Array; -} diff --git a/packages/core/src/models/CronJobStatusv1.ts b/packages/core/src/models/CronJobStatusv1.ts deleted file mode 100644 index 1f6e58f..0000000 --- a/packages/core/src/models/CronJobStatusv1.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { ObjectReferencev1 } from './ObjectReferencev1.js'; - -/** - * CronJobStatus represents the current state of a cron job. - */ -export interface CronJobStatusv1 { - /** - * A list of pointers to currently running jobs. - */ - active?: Array; - /** - * Information when was the last time the job was successfully scheduled. - */ - lastScheduleTime?: Date; - /** - * Information when was the last time the job successfully completed. - */ - lastSuccessfulTime?: Date; -} diff --git a/packages/core/src/models/CustomResourceDefinitionStatusv1.ts b/packages/core/src/models/CustomResourceDefinitionStatusv1.ts deleted file mode 100644 index 688e332..0000000 --- a/packages/core/src/models/CustomResourceDefinitionStatusv1.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { CustomResourceDefinitionConditionv1 } from './CustomResourceDefinitionConditionv1.js'; -import { CustomResourceDefinitionNamesv1 } from './CustomResourceDefinitionNamesv1.js'; - -/** - * CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition - */ -export interface CustomResourceDefinitionStatusv1 { - /** - * acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec. - */ - acceptedNames?: CustomResourceDefinitionNamesv1; - /** - * conditions indicate state for particular aspects of a CustomResourceDefinition - */ - conditions?: Array; - /** - * storedVersions lists all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so a migration controller can finish a migration to another version (ensuring no old objects are left in storage), and then remove the rest of the versions from this list. Versions may not be removed from `spec.versions` while they exist in this list. - */ - storedVersions?: Array; -} diff --git a/packages/core/src/models/DaemonSetStatusv1.ts b/packages/core/src/models/DaemonSetStatusv1.ts deleted file mode 100644 index 3d201f8..0000000 --- a/packages/core/src/models/DaemonSetStatusv1.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { DaemonSetConditionv1 } from './DaemonSetConditionv1.js'; - -/** - * DaemonSetStatus represents the current status of a daemon set. - */ -export interface DaemonSetStatusv1 { - /** - * Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. - */ - collisionCount?: number; - /** - * Represents the latest available observations of a DaemonSet\'s current state. - */ - conditions?: Array; - /** - * The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - */ - currentNumberScheduled: number; - /** - * The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - */ - desiredNumberScheduled: number; - /** - * The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) - */ - numberAvailable?: number; - /** - * The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - */ - numberMisscheduled: number; - /** - * numberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running with a Ready Condition. - */ - numberReady: number; - /** - * The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) - */ - numberUnavailable?: number; - /** - * The most recent generation observed by the daemon set controller. - */ - observedGeneration?: number; - /** - * The total number of nodes that are running updated daemon pod - */ - updatedNumberScheduled?: number; -} diff --git a/packages/core/src/models/DeploymentStatusv1.ts b/packages/core/src/models/DeploymentStatusv1.ts deleted file mode 100644 index 7658e1d..0000000 --- a/packages/core/src/models/DeploymentStatusv1.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { DeploymentConditionv1 } from './DeploymentConditionv1.js'; - -/** - * DeploymentStatus is the most recently observed status of the Deployment. - */ -export interface DeploymentStatusv1 { - /** - * Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. - */ - availableReplicas?: number; - /** - * Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. - */ - collisionCount?: number; - /** - * Represents the latest available observations of a deployment\'s current state. - */ - conditions?: Array; - /** - * The generation observed by the deployment controller. - */ - observedGeneration?: number; - /** - * readyReplicas is the number of pods targeted by this Deployment with a Ready Condition. - */ - readyReplicas?: number; - /** - * Total number of non-terminated pods targeted by this deployment (their labels match the selector). - */ - replicas?: number; - /** - * Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. - */ - unavailableReplicas?: number; - /** - * Total number of non-terminated pods targeted by this deployment that have the desired template spec. - */ - updatedReplicas?: number; -} diff --git a/packages/core/src/models/ExternalMetricStatusv2.ts b/packages/core/src/models/ExternalMetricStatusv2.ts deleted file mode 100644 index 5f7c21f..0000000 --- a/packages/core/src/models/ExternalMetricStatusv2.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { MetricIdentifierv2 } from './MetricIdentifierv2.js'; -import { MetricValueStatusv2 } from './MetricValueStatusv2.js'; - -/** - * ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object. - */ -export interface ExternalMetricStatusv2 { - /** - * current contains the current value for the given metric - */ - current: MetricValueStatusv2; - /** - * metric identifies the target metric by name and selector - */ - metric: MetricIdentifierv2; -} diff --git a/packages/core/src/models/FlowSchemaStatusv1.ts b/packages/core/src/models/FlowSchemaStatusv1.ts deleted file mode 100644 index fc8fd40..0000000 --- a/packages/core/src/models/FlowSchemaStatusv1.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { FlowSchemaConditionv1 } from './FlowSchemaConditionv1.js'; - -/** - * FlowSchemaStatus represents the current state of a FlowSchema. - */ -export interface FlowSchemaStatusv1 { - /** - * `conditions` is a list of the current states of FlowSchema. - */ - conditions?: Array; -} diff --git a/packages/core/src/models/FlowSchemaStatusv1beta3.ts b/packages/core/src/models/FlowSchemaStatusv1beta3.ts deleted file mode 100644 index ed442b9..0000000 --- a/packages/core/src/models/FlowSchemaStatusv1beta3.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { FlowSchemaConditionv1beta3 } from './FlowSchemaConditionv1beta3.js'; - -/** - * FlowSchemaStatus represents the current state of a FlowSchema. - */ -export interface FlowSchemaStatusv1beta3 { - /** - * `conditions` is a list of the current states of FlowSchema. - */ - conditions?: Array; -} diff --git a/packages/core/src/models/HorizontalPodAutoscalerStatusv1.ts b/packages/core/src/models/HorizontalPodAutoscalerStatusv1.ts deleted file mode 100644 index ce7ccec..0000000 --- a/packages/core/src/models/HorizontalPodAutoscalerStatusv1.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * current status of a horizontal pod autoscaler - */ -export interface HorizontalPodAutoscalerStatusv1 { - /** - * currentCPUUtilizationPercentage is the current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU. - */ - currentCPUUtilizationPercentage?: number; - /** - * currentReplicas is the current number of replicas of pods managed by this autoscaler. - */ - currentReplicas: number; - /** - * desiredReplicas is the desired number of replicas of pods managed by this autoscaler. - */ - desiredReplicas: number; - /** - * lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. - */ - lastScaleTime?: Date; - /** - * observedGeneration is the most recent generation observed by this autoscaler. - */ - observedGeneration?: number; -} diff --git a/packages/core/src/models/HorizontalPodAutoscalerStatusv2.ts b/packages/core/src/models/HorizontalPodAutoscalerStatusv2.ts deleted file mode 100644 index 0f542da..0000000 --- a/packages/core/src/models/HorizontalPodAutoscalerStatusv2.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { HorizontalPodAutoscalerConditionv2 } from './HorizontalPodAutoscalerConditionv2.js'; -import { MetricStatusv2 } from './MetricStatusv2.js'; - -/** - * HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler. - */ -export interface HorizontalPodAutoscalerStatusv2 { - /** - * conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met. - */ - conditions?: Array; - /** - * currentMetrics is the last read state of the metrics used by this autoscaler. - */ - currentMetrics?: Array; - /** - * currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. - */ - currentReplicas?: number; - /** - * desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. - */ - desiredReplicas: number; - /** - * lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. - */ - lastScaleTime?: Date; - /** - * observedGeneration is the most recent generation observed by this autoscaler. - */ - observedGeneration?: number; -} diff --git a/packages/core/src/models/IngressLoadBalancerIngressv1.ts b/packages/core/src/models/IngressLoadBalancerIngressv1.ts deleted file mode 100644 index 6c1aac2..0000000 --- a/packages/core/src/models/IngressLoadBalancerIngressv1.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { IngressPortStatusv1 } from './IngressPortStatusv1.js'; - -/** - * IngressLoadBalancerIngress represents the status of a load-balancer ingress point. - */ -export interface IngressLoadBalancerIngressv1 { - /** - * hostname is set for load-balancer ingress points that are DNS based. - */ - hostname?: string; - /** - * ip is set for load-balancer ingress points that are IP based. - */ - ip?: string; - /** - * ports provides information about the ports exposed by this LoadBalancer. - */ - ports?: Array; -} diff --git a/packages/core/src/models/IngressLoadBalancerStatusv1.ts b/packages/core/src/models/IngressLoadBalancerStatusv1.ts deleted file mode 100644 index f4c23a1..0000000 --- a/packages/core/src/models/IngressLoadBalancerStatusv1.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { IngressLoadBalancerIngressv1 } from './IngressLoadBalancerIngressv1.js'; - -/** - * IngressLoadBalancerStatus represents the status of a load-balancer. - */ -export interface IngressLoadBalancerStatusv1 { - /** - * ingress is a list containing ingress points for the load-balancer. - */ - ingress?: Array; -} diff --git a/packages/core/src/models/IngressPortStatusv1.ts b/packages/core/src/models/IngressPortStatusv1.ts deleted file mode 100644 index bcef570..0000000 --- a/packages/core/src/models/IngressPortStatusv1.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * IngressPortStatus represents the error condition of a service port - */ -export interface IngressPortStatusv1 { - /** - * error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use CamelCase names - cloud provider specific error values must have names that comply with the format foo.example.com/CamelCase. - */ - error?: string; - /** - * port is the port number of the ingress port. - */ - port: number; - /** - * protocol is the protocol of the ingress port. The supported values are: \"TCP\", \"UDP\", \"SCTP\" - */ - protocol: string; -} diff --git a/packages/core/src/models/IngressStatusv1.ts b/packages/core/src/models/IngressStatusv1.ts deleted file mode 100644 index 1cd362c..0000000 --- a/packages/core/src/models/IngressStatusv1.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { IngressLoadBalancerStatusv1 } from './IngressLoadBalancerStatusv1.js'; - -/** - * IngressStatus describe the current state of the Ingress. - */ -export interface IngressStatusv1 { - /** - * loadBalancer contains the current status of the load-balancer. - */ - loadBalancer?: IngressLoadBalancerStatusv1; -} diff --git a/packages/core/src/models/JobStatusv1.ts b/packages/core/src/models/JobStatusv1.ts deleted file mode 100644 index 6c9aa9e..0000000 --- a/packages/core/src/models/JobStatusv1.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { JobConditionv1 } from './JobConditionv1.js'; -import { UncountedTerminatedPodsv1 } from './UncountedTerminatedPodsv1.js'; - -/** - * JobStatus represents the current state of a Job. - */ -export interface JobStatusv1 { - /** - * The number of pending and running pods which are not terminating (without a deletionTimestamp). The value is zero for finished jobs. - */ - active?: number; - /** - * completedIndexes holds the completed indexes when .spec.completionMode = \"Indexed\" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\". - */ - completedIndexes?: string; - /** - * Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. The completion time is set when the job finishes successfully, and only then. The value cannot be updated or removed. The value indicates the same or later point in time as the startTime field. - */ - completionTime?: Date; - /** - * The latest available observations of an object\'s current state. When a Job fails, one of the conditions will have type \"Failed\" and status true. When a Job is suspended, one of the conditions will have type \"Suspended\" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type \"Complete\" and status true. A job is considered finished when it is in a terminal condition, either \"Complete\" or \"Failed\". A Job cannot have both the \"Complete\" and \"Failed\" conditions. Additionally, it cannot be in the \"Complete\" and \"FailureTarget\" conditions. The \"Complete\", \"Failed\" and \"FailureTarget\" conditions cannot be disabled. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - */ - conditions?: Array; - /** - * The number of pods which reached phase Failed. The value increases monotonically. - */ - failed?: number; - /** - * FailedIndexes holds the failed indexes when spec.backoffLimitPerIndex is set. The indexes are represented in the text format analogous as for the `completedIndexes` field, ie. they are kept as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the failed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\". The set of failed indexes cannot overlap with the set of completed indexes. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default). - */ - failedIndexes?: string; - /** - * The number of active pods which have a Ready condition and are not terminating (without a deletionTimestamp). - */ - ready?: number; - /** - * Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC. Once set, the field can only be removed when the job is suspended. The field cannot be modified while the job is unsuspended or finished. - */ - startTime?: Date; - /** - * The number of pods which reached phase Succeeded. The value increases monotonically for a given spec. However, it may decrease in reaction to scale down of elastic indexed jobs. - */ - succeeded?: number; - /** - * The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp). This field is beta-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (enabled by default). - */ - terminating?: number; - /** - * uncountedTerminatedPods holds the UIDs of Pods that have terminated but the job controller hasn\'t yet accounted for in the status counters. The job controller creates pods with a finalizer. When a pod terminates (succeeded or failed), the controller does three steps to account for it in the job status: 1. Add the pod UID to the arrays in this field. 2. Remove the pod finalizer. 3. Remove the pod UID from the arrays while increasing the corresponding counter. Old jobs might not be tracked using this field, in which case the field remains null. The structure is empty for finished jobs. - */ - uncountedTerminatedPods?: UncountedTerminatedPodsv1; -} diff --git a/packages/core/src/models/LoadBalancerIngressv1.ts b/packages/core/src/models/LoadBalancerIngressv1.ts deleted file mode 100644 index fc26dc9..0000000 --- a/packages/core/src/models/LoadBalancerIngressv1.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { PortStatusv1 } from './PortStatusv1.js'; - -/** - * LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point. - */ -export interface LoadBalancerIngressv1 { - /** - * Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) - */ - hostname?: string; - /** - * IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) - */ - ip?: string; - /** - * IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified. Setting this to \"VIP\" indicates that traffic is delivered to the node with the destination set to the load-balancer\'s IP and port. Setting this to \"Proxy\" indicates that traffic is delivered to the node or pod with the destination set to the node\'s IP and node port or the pod\'s IP and port. Service implementations may use this information to adjust traffic routing. - */ - ipMode?: string; - /** - * Ports is a list of records of service ports If used, every port defined in the service should have an entry in it - */ - ports?: Array; -} diff --git a/packages/core/src/models/LoadBalancerStatusv1.ts b/packages/core/src/models/LoadBalancerStatusv1.ts deleted file mode 100644 index 33d5c43..0000000 --- a/packages/core/src/models/LoadBalancerStatusv1.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { LoadBalancerIngressv1 } from './LoadBalancerIngressv1.js'; - -/** - * LoadBalancerStatus represents the status of a load-balancer. - */ -export interface LoadBalancerStatusv1 { - /** - * Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. - */ - ingress?: Array; -} diff --git a/packages/core/src/models/MetricStatusv2.ts b/packages/core/src/models/MetricStatusv2.ts deleted file mode 100644 index 2bdc0cd..0000000 --- a/packages/core/src/models/MetricStatusv2.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { ContainerResourceMetricStatusv2 } from './ContainerResourceMetricStatusv2.js'; -import { ExternalMetricStatusv2 } from './ExternalMetricStatusv2.js'; -import { ObjectMetricStatusv2 } from './ObjectMetricStatusv2.js'; -import { PodsMetricStatusv2 } from './PodsMetricStatusv2.js'; -import { ResourceMetricStatusv2 } from './ResourceMetricStatusv2.js'; - -/** - * MetricStatus describes the last-read state of a single metric. - */ -export interface MetricStatusv2 { - /** - * container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. - */ - containerResource?: ContainerResourceMetricStatusv2; - /** - * external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). - */ - external?: ExternalMetricStatusv2; - /** - * object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). - */ - object?: ObjectMetricStatusv2; - /** - * pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. - */ - pods?: PodsMetricStatusv2; - /** - * resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. - */ - resource?: ResourceMetricStatusv2; - /** - * type is the type of metric source. It will be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled - */ - type: string; -} diff --git a/packages/core/src/models/MetricValueStatusv2.ts b/packages/core/src/models/MetricValueStatusv2.ts deleted file mode 100644 index 619feb7..0000000 --- a/packages/core/src/models/MetricValueStatusv2.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * MetricValueStatus holds the current value for a metric - */ -export interface MetricValueStatusv2 { - /** - * currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. - */ - averageUtilization?: number; - /** - * averageValue is the current value of the average of the metric across all relevant pods (as a quantity) - */ - averageValue?: number | string; - /** - * value is the current value of the metric (as a quantity). - */ - value?: number | string; -} diff --git a/packages/core/src/models/ModifyVolumeStatusv1.ts b/packages/core/src/models/ModifyVolumeStatusv1.ts deleted file mode 100644 index cf3dd62..0000000 --- a/packages/core/src/models/ModifyVolumeStatusv1.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * ModifyVolumeStatus represents the status object of ControllerModifyVolume operation - */ -export interface ModifyVolumeStatusv1 { - /** - * targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled - */ - targetVolumeAttributesClassName?: string; -} diff --git a/packages/core/src/models/NamespaceStatusv1.ts b/packages/core/src/models/NamespaceStatusv1.ts deleted file mode 100644 index 0e6de55..0000000 --- a/packages/core/src/models/NamespaceStatusv1.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { NamespaceConditionv1 } from './NamespaceConditionv1.js'; - -/** - * NamespaceStatus is information about the current status of a Namespace. - */ -export interface NamespaceStatusv1 { - /** - * Represents the latest available observations of a namespace\'s current state. - */ - conditions?: Array; - /** - * Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ - */ - phase?: string; -} diff --git a/packages/core/src/models/NodeConfigStatusv1.ts b/packages/core/src/models/NodeConfigStatusv1.ts deleted file mode 100644 index 3acb871..0000000 --- a/packages/core/src/models/NodeConfigStatusv1.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { NodeConfigSourcev1 } from './NodeConfigSourcev1.js'; - -/** - * NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource. - */ -export interface NodeConfigStatusv1 { - /** - * Active reports the checkpointed config the node is actively using. Active will represent either the current version of the Assigned config, or the current LastKnownGood config, depending on whether attempting to use the Assigned config results in an error. - */ - active?: NodeConfigSourcev1; - /** - * Assigned reports the checkpointed config the node will try to use. When Node.Spec.ConfigSource is updated, the node checkpoints the associated config payload to local disk, along with a record indicating intended config. The node refers to this record to choose its config checkpoint, and reports this record in Assigned. Assigned only updates in the status after the record has been checkpointed to disk. When the Kubelet is restarted, it tries to make the Assigned config the Active config by loading and validating the checkpointed payload identified by Assigned. - */ - assigned?: NodeConfigSourcev1; - /** - * Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions. - */ - error?: string; - /** - * LastKnownGood reports the checkpointed config the node will fall back to when it encounters an error attempting to use the Assigned config. The Assigned config becomes the LastKnownGood config when the node determines that the Assigned config is stable and correct. This is currently implemented as a 10-minute soak period starting when the local record of Assigned config is updated. If the Assigned config is Active at the end of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil, because the local default config is always assumed good. You should not make assumptions about the node\'s method of determining config stability and correctness, as this may change or become configurable in the future. - */ - lastKnownGood?: NodeConfigSourcev1; -} diff --git a/packages/core/src/models/NodeStatusv1.ts b/packages/core/src/models/NodeStatusv1.ts deleted file mode 100644 index bf0686e..0000000 --- a/packages/core/src/models/NodeStatusv1.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { AttachedVolumev1 } from './AttachedVolumev1.js'; -import { ContainerImagev1 } from './ContainerImagev1.js'; -import { NodeAddressv1 } from './NodeAddressv1.js'; -import { NodeConditionv1 } from './NodeConditionv1.js'; -import { NodeConfigStatusv1 } from './NodeConfigStatusv1.js'; -import { NodeDaemonEndpointsv1 } from './NodeDaemonEndpointsv1.js'; -import { NodeFeaturesv1 } from './NodeFeaturesv1.js'; -import { NodeRuntimeHandlerv1 } from './NodeRuntimeHandlerv1.js'; -import { NodeSystemInfov1 } from './NodeSystemInfov1.js'; - -/** - * NodeStatus is information about the current status of a node. - */ -export interface NodeStatusv1 { - /** - * List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node\'s address in its own status or consumers of the downward API (status.hostIP). - */ - addresses?: Array; - /** - * Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. - */ - allocatable?: { [key: string]: number | string }; - /** - * Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/reference/node/node-status/#capacity - */ - capacity?: { [key: string]: number | string }; - /** - * Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition - */ - conditions?: Array; - /** - * Status of the config assigned to the node via the dynamic Kubelet config feature. - */ - config?: NodeConfigStatusv1; - /** - * Endpoints of daemons running on the Node. - */ - daemonEndpoints?: NodeDaemonEndpointsv1; - /** - * Features describes the set of features implemented by the CRI implementation. - */ - features?: NodeFeaturesv1; - /** - * List of container images on this node - */ - images?: Array; - /** - * Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info - */ - nodeInfo?: NodeSystemInfov1; - /** - * NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated. - */ - phase?: string; - /** - * The available runtime handlers. - */ - runtimeHandlers?: Array; - /** - * List of volumes that are attached to the node. - */ - volumesAttached?: Array; - /** - * List of attachable volumes in use (mounted) by the node. - */ - volumesInUse?: Array; -} diff --git a/packages/core/src/models/ObjectMetricStatusv2.ts b/packages/core/src/models/ObjectMetricStatusv2.ts deleted file mode 100644 index 6c78f70..0000000 --- a/packages/core/src/models/ObjectMetricStatusv2.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { CrossVersionObjectReferencev2 } from './CrossVersionObjectReferencev2.js'; -import { MetricIdentifierv2 } from './MetricIdentifierv2.js'; -import { MetricValueStatusv2 } from './MetricValueStatusv2.js'; - -/** - * ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). - */ -export interface ObjectMetricStatusv2 { - /** - * current contains the current value for the given metric - */ - current: MetricValueStatusv2; - /** - * DescribedObject specifies the descriptions of a object,such as kind,name apiVersion - */ - describedObject: CrossVersionObjectReferencev2; - /** - * metric identifies the target metric by name and selector - */ - metric: MetricIdentifierv2; -} diff --git a/packages/core/src/models/PersistentVolumeClaimStatusv1.ts b/packages/core/src/models/PersistentVolumeClaimStatusv1.ts deleted file mode 100644 index a5abd43..0000000 --- a/packages/core/src/models/PersistentVolumeClaimStatusv1.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { ModifyVolumeStatusv1 } from './ModifyVolumeStatusv1.js'; -import { PersistentVolumeClaimConditionv1 } from './PersistentVolumeClaimConditionv1.js'; - -/** - * PersistentVolumeClaimStatus is the current status of a persistent volume claim. - */ -export interface PersistentVolumeClaimStatusv1 { - /** - * accessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - */ - accessModes?: Array; - /** - * allocatedResourceStatuses stores status of resource being resized for the given PVC. Key names follow standard Kubernetes label syntax. Valid values are either: * Un-prefixed keys: - storage - the capacity of the volume. * Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\" Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used. ClaimResourceStatus can be in any of following states: - ControllerResizeInProgress: State set when resize controller starts resizing the volume in control-plane. - ControllerResizeFailed: State set when resize has failed in resize controller with a terminal error. - NodeResizePending: State set when resize controller has finished resizing the volume but further resizing of volume is needed on the node. - NodeResizeInProgress: State set when kubelet starts resizing the volume. - NodeResizeFailed: State set when resizing has failed in kubelet with a terminal error. Transient errors don\'t set NodeResizeFailed. For example: if expanding a PVC for more capacity - this field can be one of the following states: - pvc.status.allocatedResourceStatus[\'storage\'] = \"ControllerResizeInProgress\" - pvc.status.allocatedResourceStatus[\'storage\'] = \"ControllerResizeFailed\" - pvc.status.allocatedResourceStatus[\'storage\'] = \"NodeResizePending\" - pvc.status.allocatedResourceStatus[\'storage\'] = \"NodeResizeInProgress\" - pvc.status.allocatedResourceStatus[\'storage\'] = \"NodeResizeFailed\" When this field is not set, it means that no resize operation is in progress for the given PVC. A controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature. - */ - allocatedResourceStatuses?: { [key: string]: string }; - /** - * allocatedResources tracks the resources allocated to a PVC including its capacity. Key names follow standard Kubernetes label syntax. Valid values are either: * Un-prefixed keys: - storage - the capacity of the volume. * Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\" Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used. Capacity reported here may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity. A controller that receives PVC update with previously unknown resourceName should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature. - */ - allocatedResources?: { [key: string]: number | string }; - /** - * capacity represents the actual resources of the underlying volume. - */ - capacity?: { [key: string]: number | string }; - /** - * conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to \'Resizing\'. - */ - conditions?: Array; - /** - * currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim This is a beta field and requires enabling VolumeAttributesClass feature (off by default). - */ - currentVolumeAttributesClassName?: string; - /** - * ModifyVolumeStatus represents the status object of ControllerModifyVolume operation. When this is unset, there is no ModifyVolume operation being attempted. This is a beta field and requires enabling VolumeAttributesClass feature (off by default). - */ - modifyVolumeStatus?: ModifyVolumeStatusv1; - /** - * phase represents the current phase of PersistentVolumeClaim. - */ - phase?: string; -} diff --git a/packages/core/src/models/PersistentVolumeStatusv1.ts b/packages/core/src/models/PersistentVolumeStatusv1.ts deleted file mode 100644 index 3735529..0000000 --- a/packages/core/src/models/PersistentVolumeStatusv1.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * PersistentVolumeStatus is the current status of a persistent volume. - */ -export interface PersistentVolumeStatusv1 { - /** - * lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions. - */ - lastPhaseTransitionTime?: Date; - /** - * message is a human-readable message indicating details about why the volume is in this state. - */ - message?: string; - /** - * phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase - */ - phase?: string; - /** - * reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. - */ - reason?: string; -} diff --git a/packages/core/src/models/PodDisruptionBudgetStatusv1.ts b/packages/core/src/models/PodDisruptionBudgetStatusv1.ts deleted file mode 100644 index 95e4d99..0000000 --- a/packages/core/src/models/PodDisruptionBudgetStatusv1.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { Conditionv1 } from './Conditionv1.js'; - -/** - * PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system. - */ -export interface PodDisruptionBudgetStatusv1 { - /** - * Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn\'t able to compute the number of allowed disruptions. Therefore no disruptions are allowed and the status of the condition will be False. - InsufficientPods: The number of pods are either at or below the number required by the PodDisruptionBudget. No disruptions are allowed and the status of the condition will be False. - SufficientPods: There are more pods than required by the PodDisruptionBudget. The condition will be True, and the number of allowed disruptions are provided by the disruptionsAllowed property. - */ - conditions?: Array; - /** - * current number of healthy pods - */ - currentHealthy: number; - /** - * minimum desired number of healthy pods - */ - desiredHealthy: number; - /** - * DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn\'t occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. - */ - disruptedPods?: { [key: string]: Date }; - /** - * Number of pod disruptions that are currently allowed. - */ - disruptionsAllowed: number; - /** - * total number of pods counted by this disruption budget - */ - expectedPods: number; - /** - * Most recent generation observed when updating this PDB status. DisruptionsAllowed and other status information is valid only if observedGeneration equals to PDB\'s object generation. - */ - observedGeneration?: number; -} diff --git a/packages/core/src/models/PodResourceClaimStatusv1.ts b/packages/core/src/models/PodResourceClaimStatusv1.ts deleted file mode 100644 index 1db22ba..0000000 --- a/packages/core/src/models/PodResourceClaimStatusv1.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim. - */ -export interface PodResourceClaimStatusv1 { - /** - * Name uniquely identifies this resource claim inside the pod. This must match the name of an entry in pod.spec.resourceClaims, which implies that the string must be a DNS_LABEL. - */ - name: string; - /** - * ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. If this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case. - */ - resourceClaimName?: string; -} diff --git a/packages/core/src/models/PodSchedulingContextStatusv1alpha3.ts b/packages/core/src/models/PodSchedulingContextStatusv1alpha3.ts deleted file mode 100644 index e04ef8f..0000000 --- a/packages/core/src/models/PodSchedulingContextStatusv1alpha3.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { ResourceClaimSchedulingStatusv1alpha3 } from './ResourceClaimSchedulingStatusv1alpha3.js'; - -/** - * PodSchedulingContextStatus describes where resources for the Pod can be allocated. - */ -export interface PodSchedulingContextStatusv1alpha3 { - /** - * ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses \"WaitForFirstConsumer\" allocation mode. - */ - resourceClaims?: Array; -} diff --git a/packages/core/src/models/PodStatusv1.ts b/packages/core/src/models/PodStatusv1.ts deleted file mode 100644 index 948ca46..0000000 --- a/packages/core/src/models/PodStatusv1.ts +++ /dev/null @@ -1,75 +0,0 @@ -import { ContainerStatusv1 } from './ContainerStatusv1.js'; -import { HostIPv1 } from './HostIPv1.js'; -import { PodConditionv1 } from './PodConditionv1.js'; -import { PodIPv1 } from './PodIPv1.js'; -import { PodResourceClaimStatusv1 } from './PodResourceClaimStatusv1.js'; - -/** - * PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane. - */ -export interface PodStatusv1 { - /** - * Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions - */ - conditions?: Array; - /** - * The list has one entry per container in the manifest. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status - */ - containerStatuses?: Array; - /** - * Status for any ephemeral containers that have run in this pod. - */ - ephemeralContainerStatuses?: Array; - /** - * hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will not be updated even if there is a node is assigned to pod - */ - hostIP?: string; - /** - * hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must match the hostIP field. This list is empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will not be updated even if there is a node is assigned to this pod. - */ - hostIPs?: Array; - /** - * The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status - */ - initContainerStatuses?: Array; - /** - * A human readable message indicating details about why the pod is in this condition. - */ - message?: string; - /** - * nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled. - */ - nominatedNodeName?: string; - /** - * The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod\'s status. There are five possible phase values: Pending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase - */ - phase?: string; - /** - * podIP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. - */ - podIP?: string; - /** - * podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet. - */ - podIPs?: Array; - /** - * The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes - */ - qosClass?: string; - /** - * A brief CamelCase message indicating details about why the pod is in this state. e.g. \'Evicted\' - */ - reason?: string; - /** - * Status of resources resize desired for pod\'s containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to \"Proposed\" - */ - resize?: string; - /** - * Status of resource claims. - */ - resourceClaimStatuses?: Array; - /** - * RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. - */ - startTime?: Date; -} diff --git a/packages/core/src/models/PodsMetricStatusv2.ts b/packages/core/src/models/PodsMetricStatusv2.ts deleted file mode 100644 index 3167c67..0000000 --- a/packages/core/src/models/PodsMetricStatusv2.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { MetricIdentifierv2 } from './MetricIdentifierv2.js'; -import { MetricValueStatusv2 } from './MetricValueStatusv2.js'; - -/** - * PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second). - */ -export interface PodsMetricStatusv2 { - /** - * current contains the current value for the given metric - */ - current: MetricValueStatusv2; - /** - * metric identifies the target metric by name and selector - */ - metric: MetricIdentifierv2; -} diff --git a/packages/core/src/models/PortStatusv1.ts b/packages/core/src/models/PortStatusv1.ts deleted file mode 100644 index d1c6559..0000000 --- a/packages/core/src/models/PortStatusv1.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * - */ -export interface PortStatusv1 { - /** - * Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use CamelCase names - cloud provider specific error values must have names that comply with the format foo.example.com/CamelCase. - */ - error?: string; - /** - * Port is the port number of the service port of which status is recorded here - */ - port: number; - /** - * Protocol is the protocol of the service port of which status is recorded here The supported values are: \"TCP\", \"UDP\", \"SCTP\" - */ - protocol: string; -} diff --git a/packages/core/src/models/PriorityLevelConfigurationStatusv1.ts b/packages/core/src/models/PriorityLevelConfigurationStatusv1.ts deleted file mode 100644 index f3f3ce0..0000000 --- a/packages/core/src/models/PriorityLevelConfigurationStatusv1.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { PriorityLevelConfigurationConditionv1 } from './PriorityLevelConfigurationConditionv1.js'; - -/** - * PriorityLevelConfigurationStatus represents the current state of a \"request-priority\". - */ -export interface PriorityLevelConfigurationStatusv1 { - /** - * `conditions` is the current state of \"request-priority\". - */ - conditions?: Array; -} diff --git a/packages/core/src/models/PriorityLevelConfigurationStatusv1beta3.ts b/packages/core/src/models/PriorityLevelConfigurationStatusv1beta3.ts deleted file mode 100644 index 7a1d0a8..0000000 --- a/packages/core/src/models/PriorityLevelConfigurationStatusv1beta3.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { PriorityLevelConfigurationConditionv1beta3 } from './PriorityLevelConfigurationConditionv1beta3.js'; - -/** - * PriorityLevelConfigurationStatus represents the current state of a \"request-priority\". - */ -export interface PriorityLevelConfigurationStatusv1beta3 { - /** - * `conditions` is the current state of \"request-priority\". - */ - conditions?: Array; -} diff --git a/packages/core/src/models/ReplicaSetStatusv1.ts b/packages/core/src/models/ReplicaSetStatusv1.ts deleted file mode 100644 index 5346904..0000000 --- a/packages/core/src/models/ReplicaSetStatusv1.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { ReplicaSetConditionv1 } from './ReplicaSetConditionv1.js'; - -/** - * ReplicaSetStatus represents the current status of a ReplicaSet. - */ -export interface ReplicaSetStatusv1 { - /** - * The number of available replicas (ready for at least minReadySeconds) for this replica set. - */ - availableReplicas?: number; - /** - * Represents the latest available observations of a replica set\'s current state. - */ - conditions?: Array; - /** - * The number of pods that have labels matching the labels of the pod template of the replicaset. - */ - fullyLabeledReplicas?: number; - /** - * ObservedGeneration reflects the generation of the most recently observed ReplicaSet. - */ - observedGeneration?: number; - /** - * readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition. - */ - readyReplicas?: number; - /** - * Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller - */ - replicas: number; -} diff --git a/packages/core/src/models/ReplicationControllerStatusv1.ts b/packages/core/src/models/ReplicationControllerStatusv1.ts deleted file mode 100644 index 8b9cbaf..0000000 --- a/packages/core/src/models/ReplicationControllerStatusv1.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { ReplicationControllerConditionv1 } from './ReplicationControllerConditionv1.js'; - -/** - * ReplicationControllerStatus represents the current status of a replication controller. - */ -export interface ReplicationControllerStatusv1 { - /** - * The number of available replicas (ready for at least minReadySeconds) for this replication controller. - */ - availableReplicas?: number; - /** - * Represents the latest available observations of a replication controller\'s current state. - */ - conditions?: Array; - /** - * The number of pods that have labels matching the labels of the pod template of the replication controller. - */ - fullyLabeledReplicas?: number; - /** - * ObservedGeneration reflects the generation of the most recently observed replication controller. - */ - observedGeneration?: number; - /** - * The number of ready replicas for this replication controller. - */ - readyReplicas?: number; - /** - * Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller - */ - replicas: number; -} diff --git a/packages/core/src/models/ResourceClaimSchedulingStatusv1alpha3.ts b/packages/core/src/models/ResourceClaimSchedulingStatusv1alpha3.ts deleted file mode 100644 index 8e013e7..0000000 --- a/packages/core/src/models/ResourceClaimSchedulingStatusv1alpha3.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with \"WaitForFirstConsumer\" allocation mode. - */ -export interface ResourceClaimSchedulingStatusv1alpha3 { - /** - * Name matches the pod.spec.resourceClaims[*].Name field. - */ - name: string; - /** - * UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for. The size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced. - */ - unsuitableNodes?: Array; -} diff --git a/packages/core/src/models/ResourceClaimStatusv1alpha3.ts b/packages/core/src/models/ResourceClaimStatusv1alpha3.ts deleted file mode 100644 index 759242a..0000000 --- a/packages/core/src/models/ResourceClaimStatusv1alpha3.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { AllocationResultv1alpha3 } from './AllocationResultv1alpha3.js'; -import { ResourceClaimConsumerReferencev1alpha3 } from './ResourceClaimConsumerReferencev1alpha3.js'; - -/** - * ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was. - */ -export interface ResourceClaimStatusv1alpha3 { - /** - * Allocation is set once the claim has been allocated successfully. - */ - allocation?: AllocationResultv1alpha3; - /** - * Indicates that a claim is to be deallocated. While this is set, no new consumers may be added to ReservedFor. This is only used if the claim needs to be deallocated by a DRA driver. That driver then must deallocate this claim and reset the field together with clearing the Allocation field. This is an alpha field and requires enabling the DRAControlPlaneController feature gate. - */ - deallocationRequested?: boolean; - /** - * ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. A claim that is in use or might be in use because it has been reserved must not get deallocated. In a cluster with multiple scheduler instances, two pods might get scheduled concurrently by different schedulers. When they reference the same ResourceClaim which already has reached its maximum number of consumers, only one pod can be scheduled. Both schedulers try to add their pod to the claim.status.reservedFor field, but only the update that reaches the API server first gets stored. The other one fails with an error and the scheduler which issued it knows that it must put the pod back into the queue, waiting for the ResourceClaim to become usable again. There can be at most 32 such reservations. This may get increased in the future, but not reduced. - */ - reservedFor?: Array; -} diff --git a/packages/core/src/models/ResourceMetricStatusv2.ts b/packages/core/src/models/ResourceMetricStatusv2.ts deleted file mode 100644 index 22b88d5..0000000 --- a/packages/core/src/models/ResourceMetricStatusv2.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { MetricValueStatusv2 } from './MetricValueStatusv2.js'; - -/** - * ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. - */ -export interface ResourceMetricStatusv2 { - /** - * current contains the current value for the given metric - */ - current: MetricValueStatusv2; - /** - * name is the name of the resource in question. - */ - name: string; -} diff --git a/packages/core/src/models/ResourceQuotaStatusv1.ts b/packages/core/src/models/ResourceQuotaStatusv1.ts deleted file mode 100644 index b552414..0000000 --- a/packages/core/src/models/ResourceQuotaStatusv1.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * ResourceQuotaStatus defines the enforced hard limits and observed use. - */ -export interface ResourceQuotaStatusv1 { - /** - * Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ - */ - hard?: { [key: string]: number | string }; - /** - * Used is the current observed total usage of the resource in the namespace. - */ - used?: { [key: string]: number | string }; -} diff --git a/packages/core/src/models/ResourceStatusv1.ts b/packages/core/src/models/ResourceStatusv1.ts deleted file mode 100644 index af84d43..0000000 --- a/packages/core/src/models/ResourceStatusv1.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { ResourceHealthv1 } from './ResourceHealthv1.js'; - -/** - * - */ -export interface ResourceStatusv1 { - /** - * Name of the resource. Must be unique within the pod and match one of the resources from the pod spec. - */ - name: string; - /** - * List of unique Resources health. Each element in the list contains an unique resource ID and resource health. At a minimum, ResourceID must uniquely identify the Resource allocated to the Pod on the Node for the lifetime of a Pod. See ResourceID type for it\'s definition. - */ - resources?: Array; -} diff --git a/packages/core/src/models/ScaleStatusv1.ts b/packages/core/src/models/ScaleStatusv1.ts deleted file mode 100644 index c543398..0000000 --- a/packages/core/src/models/ScaleStatusv1.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * ScaleStatus represents the current status of a scale subresource. - */ -export interface ScaleStatusv1 { - /** - * replicas is the actual number of observed instances of the scaled object. - */ - replicas: number; - /** - * selector is the label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - */ - selector?: string; -} diff --git a/packages/core/src/models/SelfSubjectReviewStatusv1.ts b/packages/core/src/models/SelfSubjectReviewStatusv1.ts deleted file mode 100644 index b315f56..0000000 --- a/packages/core/src/models/SelfSubjectReviewStatusv1.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { UserInfov1 } from './UserInfov1.js'; - -/** - * SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. - */ -export interface SelfSubjectReviewStatusv1 { - /** - * User attributes of the user making this request. - */ - userInfo?: UserInfov1; -} diff --git a/packages/core/src/models/SelfSubjectReviewStatusv1alpha1.ts b/packages/core/src/models/SelfSubjectReviewStatusv1alpha1.ts deleted file mode 100644 index 60f5058..0000000 --- a/packages/core/src/models/SelfSubjectReviewStatusv1alpha1.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { UserInfov1 } from './UserInfov1.js'; - -/** - * SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. - */ -export interface SelfSubjectReviewStatusv1alpha1 { - /** - * User attributes of the user making this request. - */ - userInfo?: UserInfov1; -} diff --git a/packages/core/src/models/SelfSubjectReviewStatusv1beta1.ts b/packages/core/src/models/SelfSubjectReviewStatusv1beta1.ts deleted file mode 100644 index c8281bc..0000000 --- a/packages/core/src/models/SelfSubjectReviewStatusv1beta1.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { UserInfov1 } from './UserInfov1.js'; - -/** - * SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. - */ -export interface SelfSubjectReviewStatusv1beta1 { - /** - * User attributes of the user making this request. - */ - userInfo?: UserInfov1; -} diff --git a/packages/core/src/models/ServiceCIDRStatusv1beta1.ts b/packages/core/src/models/ServiceCIDRStatusv1beta1.ts deleted file mode 100644 index 636c402..0000000 --- a/packages/core/src/models/ServiceCIDRStatusv1beta1.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Conditionv1 } from './Conditionv1.js'; - -/** - * ServiceCIDRStatus describes the current state of the ServiceCIDR. - */ -export interface ServiceCIDRStatusv1beta1 { - /** - * conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state - */ - conditions?: Array; -} diff --git a/packages/core/src/models/ServiceStatusv1.ts b/packages/core/src/models/ServiceStatusv1.ts deleted file mode 100644 index 0f67146..0000000 --- a/packages/core/src/models/ServiceStatusv1.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { Conditionv1 } from './Conditionv1.js'; -import { LoadBalancerStatusv1 } from './LoadBalancerStatusv1.js'; - -/** - * ServiceStatus represents the current status of a service. - */ -export interface ServiceStatusv1 { - /** - * Current service state - */ - conditions?: Array; - /** - * LoadBalancer contains the current status of the load-balancer, if one is present. - */ - loadBalancer?: LoadBalancerStatusv1; -} diff --git a/packages/core/src/models/StatefulSetStatusv1.ts b/packages/core/src/models/StatefulSetStatusv1.ts deleted file mode 100644 index 5f3b696..0000000 --- a/packages/core/src/models/StatefulSetStatusv1.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { StatefulSetConditionv1 } from './StatefulSetConditionv1.js'; - -/** - * StatefulSetStatus represents the current state of a StatefulSet. - */ -export interface StatefulSetStatusv1 { - /** - * Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset. - */ - availableReplicas?: number; - /** - * collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. - */ - collisionCount?: number; - /** - * Represents the latest available observations of a statefulset\'s current state. - */ - conditions?: Array; - /** - * currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. - */ - currentReplicas?: number; - /** - * currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). - */ - currentRevision?: string; - /** - * observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet\'s generation, which is updated on mutation by the API Server. - */ - observedGeneration?: number; - /** - * readyReplicas is the number of pods created for this StatefulSet with a Ready Condition. - */ - readyReplicas?: number; - /** - * replicas is the number of Pods created by the StatefulSet controller. - */ - replicas: number; - /** - * updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) - */ - updateRevision?: string; - /** - * updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. - */ - updatedReplicas?: number; -} diff --git a/packages/core/src/models/StorageVersionMigrationStatusv1alpha1.ts b/packages/core/src/models/StorageVersionMigrationStatusv1alpha1.ts deleted file mode 100644 index e6a2d21..0000000 --- a/packages/core/src/models/StorageVersionMigrationStatusv1alpha1.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { MigrationConditionv1alpha1 } from './MigrationConditionv1alpha1.js'; - -/** - * Status of the storage version migration. - */ -export interface StorageVersionMigrationStatusv1alpha1 { - /** - * The latest available observations of the migration\'s current state. - */ - conditions?: Array; - /** - * ResourceVersion to compare with the GC cache for performing the migration. This is the current resource version of given group, version and resource when kube-controller-manager first observes this StorageVersionMigration resource. - */ - resourceVersion?: string; -} diff --git a/packages/core/src/models/StorageVersionStatusv1alpha1.ts b/packages/core/src/models/StorageVersionStatusv1alpha1.ts deleted file mode 100644 index 15093a8..0000000 --- a/packages/core/src/models/StorageVersionStatusv1alpha1.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { ServerStorageVersionv1alpha1 } from './ServerStorageVersionv1alpha1.js'; -import { StorageVersionConditionv1alpha1 } from './StorageVersionConditionv1alpha1.js'; - -/** - * API server instances report the versions they can decode and the version they encode objects to when persisting objects in the backend. - */ -export interface StorageVersionStatusv1alpha1 { - /** - * If all API server instances agree on the same encoding storage version, then this field is set to that version. Otherwise this field is left empty. API servers should finish updating its storageVersionStatus entry before serving write operations, so that this field will be in sync with the reality. - */ - commonEncodingVersion?: string; - /** - * The latest available observations of the storageVersion\'s state. - */ - conditions?: Array; - /** - * The reported versions per API server instance. - */ - storageVersions?: Array; -} diff --git a/packages/core/src/models/SubjectAccessReviewStatusv1.ts b/packages/core/src/models/SubjectAccessReviewStatusv1.ts deleted file mode 100644 index d2afa6f..0000000 --- a/packages/core/src/models/SubjectAccessReviewStatusv1.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * SubjectAccessReviewStatus - */ -export interface SubjectAccessReviewStatusv1 { - /** - * Allowed is required. True if the action would be allowed, false otherwise. - */ - allowed: boolean; - /** - * Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true. - */ - denied?: boolean; - /** - * EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. - */ - evaluationError?: string; - /** - * Reason is optional. It indicates why a request was allowed or denied. - */ - reason?: string; -} diff --git a/packages/core/src/models/SubjectRulesReviewStatusv1.ts b/packages/core/src/models/SubjectRulesReviewStatusv1.ts deleted file mode 100644 index 81eeef8..0000000 --- a/packages/core/src/models/SubjectRulesReviewStatusv1.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { NonResourceRulev1 } from './NonResourceRulev1.js'; -import { ResourceRulev1 } from './ResourceRulev1.js'; - -/** - * SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it\'s safe to assume the subject has that permission, even if that list is incomplete. - */ -export interface SubjectRulesReviewStatusv1 { - /** - * EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn\'t support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. - */ - evaluationError?: string; - /** - * Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn\'t support rules evaluation. - */ - incomplete: boolean; - /** - * NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn\'t significant, may contain duplicates, and possibly be incomplete. - */ - nonResourceRules: Array; - /** - * ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn\'t significant, may contain duplicates, and possibly be incomplete. - */ - resourceRules: Array; -} diff --git a/packages/core/src/models/TokenRequestStatusv1.ts b/packages/core/src/models/TokenRequestStatusv1.ts deleted file mode 100644 index a4b089a..0000000 --- a/packages/core/src/models/TokenRequestStatusv1.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * TokenRequestStatus is the result of a token request. - */ -export interface TokenRequestStatusv1 { - /** - * ExpirationTimestamp is the time of expiration of the returned token. - */ - expirationTimestamp: Date; - /** - * Token is the opaque bearer token. - */ - token: string; -} diff --git a/packages/core/src/models/TokenReviewStatusv1.ts b/packages/core/src/models/TokenReviewStatusv1.ts deleted file mode 100644 index da5361f..0000000 --- a/packages/core/src/models/TokenReviewStatusv1.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { UserInfov1 } from './UserInfov1.js'; - -/** - * TokenReviewStatus is the result of the token authentication request. - */ -export interface TokenReviewStatusv1 { - /** - * Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token\'s audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server. - */ - audiences?: Array; - /** - * Authenticated indicates that the token was associated with a known user. - */ - authenticated?: boolean; - /** - * Error indicates that the token couldn\'t be checked - */ - error?: string; - /** - * User is the UserInfo associated with the provided token. - */ - user?: UserInfov1; -} diff --git a/packages/core/src/models/ValidatingAdmissionPolicyStatusv1.ts b/packages/core/src/models/ValidatingAdmissionPolicyStatusv1.ts deleted file mode 100644 index 58850f0..0000000 --- a/packages/core/src/models/ValidatingAdmissionPolicyStatusv1.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { Conditionv1 } from './Conditionv1.js'; -import { TypeCheckingv1 } from './TypeCheckingv1.js'; - -/** - * ValidatingAdmissionPolicyStatus represents the status of an admission validation policy. - */ -export interface ValidatingAdmissionPolicyStatusv1 { - /** - * The conditions represent the latest available observations of a policy\'s current state. - */ - conditions?: Array; - /** - * The generation observed by the controller. - */ - observedGeneration?: number; - /** - * The results of type checking for each expression. Presence of this field indicates the completion of the type checking. - */ - typeChecking?: TypeCheckingv1; -} diff --git a/packages/core/src/models/ValidatingAdmissionPolicyStatusv1alpha1.ts b/packages/core/src/models/ValidatingAdmissionPolicyStatusv1alpha1.ts deleted file mode 100644 index 9ab519b..0000000 --- a/packages/core/src/models/ValidatingAdmissionPolicyStatusv1alpha1.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { Conditionv1 } from './Conditionv1.js'; -import { TypeCheckingv1alpha1 } from './TypeCheckingv1alpha1.js'; - -/** - * ValidatingAdmissionPolicyStatus represents the status of a ValidatingAdmissionPolicy. - */ -export interface ValidatingAdmissionPolicyStatusv1alpha1 { - /** - * The conditions represent the latest available observations of a policy\'s current state. - */ - conditions?: Array; - /** - * The generation observed by the controller. - */ - observedGeneration?: number; - /** - * The results of type checking for each expression. Presence of this field indicates the completion of the type checking. - */ - typeChecking?: TypeCheckingv1alpha1; -} diff --git a/packages/core/src/models/ValidatingAdmissionPolicyStatusv1beta1.ts b/packages/core/src/models/ValidatingAdmissionPolicyStatusv1beta1.ts deleted file mode 100644 index b1a07ca..0000000 --- a/packages/core/src/models/ValidatingAdmissionPolicyStatusv1beta1.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { Conditionv1 } from './Conditionv1.js'; -import { TypeCheckingv1beta1 } from './TypeCheckingv1beta1.js'; - -/** - * ValidatingAdmissionPolicyStatus represents the status of an admission validation policy. - */ -export interface ValidatingAdmissionPolicyStatusv1beta1 { - /** - * The conditions represent the latest available observations of a policy\'s current state. - */ - conditions?: Array; - /** - * The generation observed by the controller. - */ - observedGeneration?: number; - /** - * The results of type checking for each expression. Presence of this field indicates the completion of the type checking. - */ - typeChecking?: TypeCheckingv1beta1; -} diff --git a/packages/core/src/models/VolumeAttachmentStatusv1.ts b/packages/core/src/models/VolumeAttachmentStatusv1.ts deleted file mode 100644 index 943dc01..0000000 --- a/packages/core/src/models/VolumeAttachmentStatusv1.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { VolumeErrorv1 } from './VolumeErrorv1.js'; - -/** - * VolumeAttachmentStatus is the status of a VolumeAttachment request. - */ -export interface VolumeAttachmentStatusv1 { - /** - * attachError represents the last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. - */ - attachError?: VolumeErrorv1; - /** - * attached indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. - */ - attached: boolean; - /** - * attachmentMetadata is populated with any information returned by the attach operation, upon successful attach, that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. - */ - attachmentMetadata?: { [key: string]: string }; - /** - * detachError represents the last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher. - */ - detachError?: VolumeErrorv1; -} diff --git a/packages/core/src/models/VolumeMountStatusv1.ts b/packages/core/src/models/VolumeMountStatusv1.ts deleted file mode 100644 index ce13aec..0000000 --- a/packages/core/src/models/VolumeMountStatusv1.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * VolumeMountStatus shows status of volume mounts. - */ -export interface VolumeMountStatusv1 { - /** - * MountPath corresponds to the original VolumeMount. - */ - mountPath: string; - /** - * Name corresponds to the name of the original VolumeMount. - */ - name: string; - /** - * ReadOnly corresponds to the original VolumeMount. - */ - readOnly?: boolean; - /** - * RecursiveReadOnly must be set to Disabled, Enabled, or unspecified (for non-readonly mounts). An IfPossible value in the original VolumeMount must be translated to Disabled or Enabled, depending on the mount result. - */ - recursiveReadOnly?: string; -}