diff --git a/api/hypershift/v1beta1/hostedcluster_types.go b/api/hypershift/v1beta1/hostedcluster_types.go index 8d4db6c2bb34..c2d634988708 100644 --- a/api/hypershift/v1beta1/hostedcluster_types.go +++ b/api/hypershift/v1beta1/hostedcluster_types.go @@ -2205,6 +2205,16 @@ type AutoNodeStatus struct { // +kubebuilder:validation:Minimum=0 // +optional NodeClaimCount *int32 `json:"nodeClaimCount,omitempty"` + + // vcpus is the total number of virtual CPUs across all Karpenter-managed nodes + // that have registered and reported capacity. This is the sum of CPU capacity + // from each NodeClaim whose corresponding node exists (status.nodeName is set). + // This value is 0 when no Karpenter nodes are provisioned. + // Used by the metrics collector for billing aggregation. + // +kubebuilder:validation:Minimum=0 + // +kubebuilder:validation:Maximum=1000000 + // +optional + VCPUs *int32 `json:"vcpus,omitempty"` } // PlatformStatus contains platform-specific status diff --git a/api/hypershift/v1beta1/zz_generated.deepcopy.go b/api/hypershift/v1beta1/zz_generated.deepcopy.go index 0f69bb3bcdeb..d429305a30b3 100644 --- a/api/hypershift/v1beta1/zz_generated.deepcopy.go +++ b/api/hypershift/v1beta1/zz_generated.deepcopy.go @@ -584,6 +584,11 @@ func (in *AutoNodeStatus) DeepCopyInto(out *AutoNodeStatus) { *out = new(int32) **out = **in } + if in.VCPUs != nil { + in, out := &in.VCPUs, &out.VCPUs + *out = new(int32) + **out = **in + } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoNodeStatus. diff --git a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/AAA_ungated.yaml b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/AAA_ungated.yaml index 1abed4220a44..7838ef9d8f66 100644 --- a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/AAA_ungated.yaml +++ b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/AAA_ungated.yaml @@ -6523,6 +6523,17 @@ spec: format: int32 minimum: 0 type: integer + vcpus: + description: |- + vcpus is the total number of virtual CPUs across all Karpenter-managed nodes + that have registered and reported capacity. This is the sum of CPU capacity + from each NodeClaim whose corresponding node exists (status.nodeName is set). + This value is 0 when no Karpenter nodes are provisioned. + Used by the metrics collector for billing aggregation. + format: int32 + maximum: 1000000 + minimum: 0 + type: integer type: object conditions: description: |- diff --git a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/ClusterUpdateAcceptRisks.yaml b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/ClusterUpdateAcceptRisks.yaml index 7e2dae3eaec1..29186fae1769 100644 --- a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/ClusterUpdateAcceptRisks.yaml +++ b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/ClusterUpdateAcceptRisks.yaml @@ -6506,6 +6506,17 @@ spec: format: int32 minimum: 0 type: integer + vcpus: + description: |- + vcpus is the total number of virtual CPUs across all Karpenter-managed nodes + that have registered and reported capacity. This is the sum of CPU capacity + from each NodeClaim whose corresponding node exists (status.nodeName is set). + This value is 0 when no Karpenter nodes are provisioned. + Used by the metrics collector for billing aggregation. + format: int32 + maximum: 1000000 + minimum: 0 + type: integer type: object conditions: description: |- diff --git a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/ClusterVersionOperatorConfiguration.yaml b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/ClusterVersionOperatorConfiguration.yaml index 015ff6a7d6dd..75a647659faa 100644 --- a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/ClusterVersionOperatorConfiguration.yaml +++ b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/ClusterVersionOperatorConfiguration.yaml @@ -6526,6 +6526,17 @@ spec: format: int32 minimum: 0 type: integer + vcpus: + description: |- + vcpus is the total number of virtual CPUs across all Karpenter-managed nodes + that have registered and reported capacity. This is the sum of CPU capacity + from each NodeClaim whose corresponding node exists (status.nodeName is set). + This value is 0 when no Karpenter nodes are provisioned. + Used by the metrics collector for billing aggregation. + format: int32 + maximum: 1000000 + minimum: 0 + type: integer type: object conditions: description: |- diff --git a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/ExternalOIDC.yaml b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/ExternalOIDC.yaml index 04ba98af406d..9de23f8d67e4 100644 --- a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/ExternalOIDC.yaml +++ b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/ExternalOIDC.yaml @@ -6838,6 +6838,17 @@ spec: format: int32 minimum: 0 type: integer + vcpus: + description: |- + vcpus is the total number of virtual CPUs across all Karpenter-managed nodes + that have registered and reported capacity. This is the sum of CPU capacity + from each NodeClaim whose corresponding node exists (status.nodeName is set). + This value is 0 when no Karpenter nodes are provisioned. + Used by the metrics collector for billing aggregation. + format: int32 + maximum: 1000000 + minimum: 0 + type: integer type: object conditions: description: |- diff --git a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/ExternalOIDCWithUIDAndExtraClaimMappings.yaml b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/ExternalOIDCWithUIDAndExtraClaimMappings.yaml index 12466df76a99..c62d6ad473fe 100644 --- a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/ExternalOIDCWithUIDAndExtraClaimMappings.yaml +++ b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/ExternalOIDCWithUIDAndExtraClaimMappings.yaml @@ -6978,6 +6978,17 @@ spec: format: int32 minimum: 0 type: integer + vcpus: + description: |- + vcpus is the total number of virtual CPUs across all Karpenter-managed nodes + that have registered and reported capacity. This is the sum of CPU capacity + from each NodeClaim whose corresponding node exists (status.nodeName is set). + This value is 0 when no Karpenter nodes are provisioned. + Used by the metrics collector for billing aggregation. + format: int32 + maximum: 1000000 + minimum: 0 + type: integer type: object conditions: description: |- diff --git a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/ExternalOIDCWithUpstreamParity.yaml b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/ExternalOIDCWithUpstreamParity.yaml index a92de6768f77..3e972abdcf76 100644 --- a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/ExternalOIDCWithUpstreamParity.yaml +++ b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/ExternalOIDCWithUpstreamParity.yaml @@ -6969,6 +6969,17 @@ spec: format: int32 minimum: 0 type: integer + vcpus: + description: |- + vcpus is the total number of virtual CPUs across all Karpenter-managed nodes + that have registered and reported capacity. This is the sum of CPU capacity + from each NodeClaim whose corresponding node exists (status.nodeName is set). + This value is 0 when no Karpenter nodes are provisioned. + Used by the metrics collector for billing aggregation. + format: int32 + maximum: 1000000 + minimum: 0 + type: integer type: object conditions: description: |- diff --git a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/GCPPlatform.yaml b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/GCPPlatform.yaml index e1e309035f69..dae5c617ab62 100644 --- a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/GCPPlatform.yaml +++ b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/GCPPlatform.yaml @@ -6952,6 +6952,17 @@ spec: format: int32 minimum: 0 type: integer + vcpus: + description: |- + vcpus is the total number of virtual CPUs across all Karpenter-managed nodes + that have registered and reported capacity. This is the sum of CPU capacity + from each NodeClaim whose corresponding node exists (status.nodeName is set). + This value is 0 when no Karpenter nodes are provisioned. + Used by the metrics collector for billing aggregation. + format: int32 + maximum: 1000000 + minimum: 0 + type: integer type: object conditions: description: |- diff --git a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/HCPEtcdBackup.yaml b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/HCPEtcdBackup.yaml index a36992c0a928..d0327faa3dec 100644 --- a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/HCPEtcdBackup.yaml +++ b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/HCPEtcdBackup.yaml @@ -6571,6 +6571,17 @@ spec: format: int32 minimum: 0 type: integer + vcpus: + description: |- + vcpus is the total number of virtual CPUs across all Karpenter-managed nodes + that have registered and reported capacity. This is the sum of CPU capacity + from each NodeClaim whose corresponding node exists (status.nodeName is set). + This value is 0 when no Karpenter nodes are provisioned. + Used by the metrics collector for billing aggregation. + format: int32 + maximum: 1000000 + minimum: 0 + type: integer type: object conditions: description: |- diff --git a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/HyperShiftOnlyDynamicResourceAllocation.yaml b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/HyperShiftOnlyDynamicResourceAllocation.yaml index 1d9546e3d067..14c27c8efc19 100644 --- a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/HyperShiftOnlyDynamicResourceAllocation.yaml +++ b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/HyperShiftOnlyDynamicResourceAllocation.yaml @@ -6528,6 +6528,17 @@ spec: format: int32 minimum: 0 type: integer + vcpus: + description: |- + vcpus is the total number of virtual CPUs across all Karpenter-managed nodes + that have registered and reported capacity. This is the sum of CPU capacity + from each NodeClaim whose corresponding node exists (status.nodeName is set). + This value is 0 when no Karpenter nodes are provisioned. + Used by the metrics collector for billing aggregation. + format: int32 + maximum: 1000000 + minimum: 0 + type: integer type: object conditions: description: |- diff --git a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/ImageStreamImportMode.yaml b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/ImageStreamImportMode.yaml index 2bcf37c85023..5dccbaf9408d 100644 --- a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/ImageStreamImportMode.yaml +++ b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/ImageStreamImportMode.yaml @@ -6524,6 +6524,17 @@ spec: format: int32 minimum: 0 type: integer + vcpus: + description: |- + vcpus is the total number of virtual CPUs across all Karpenter-managed nodes + that have registered and reported capacity. This is the sum of CPU capacity + from each NodeClaim whose corresponding node exists (status.nodeName is set). + This value is 0 when no Karpenter nodes are provisioned. + Used by the metrics collector for billing aggregation. + format: int32 + maximum: 1000000 + minimum: 0 + type: integer type: object conditions: description: |- diff --git a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/KMSEncryptionProvider.yaml b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/KMSEncryptionProvider.yaml index e2bb25a53715..27d0b7170ef2 100644 --- a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/KMSEncryptionProvider.yaml +++ b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/KMSEncryptionProvider.yaml @@ -6582,6 +6582,17 @@ spec: format: int32 minimum: 0 type: integer + vcpus: + description: |- + vcpus is the total number of virtual CPUs across all Karpenter-managed nodes + that have registered and reported capacity. This is the sum of CPU capacity + from each NodeClaim whose corresponding node exists (status.nodeName is set). + This value is 0 when no Karpenter nodes are provisioned. + Used by the metrics collector for billing aggregation. + format: int32 + maximum: 1000000 + minimum: 0 + type: integer type: object conditions: description: |- diff --git a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/OpenStack.yaml b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/OpenStack.yaml index 362959a2001d..99173632616b 100644 --- a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/OpenStack.yaml +++ b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/OpenStack.yaml @@ -7057,6 +7057,17 @@ spec: format: int32 minimum: 0 type: integer + vcpus: + description: |- + vcpus is the total number of virtual CPUs across all Karpenter-managed nodes + that have registered and reported capacity. This is the sum of CPU capacity + from each NodeClaim whose corresponding node exists (status.nodeName is set). + This value is 0 when no Karpenter nodes are provisioned. + Used by the metrics collector for billing aggregation. + format: int32 + maximum: 1000000 + minimum: 0 + type: integer type: object conditions: description: |- diff --git a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/TLSAdherence.yaml b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/TLSAdherence.yaml index 2f0e7c60afdd..cb7aaf7b0b2d 100644 --- a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/TLSAdherence.yaml +++ b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/TLSAdherence.yaml @@ -6546,6 +6546,17 @@ spec: format: int32 minimum: 0 type: integer + vcpus: + description: |- + vcpus is the total number of virtual CPUs across all Karpenter-managed nodes + that have registered and reported capacity. This is the sum of CPU capacity + from each NodeClaim whose corresponding node exists (status.nodeName is set). + This value is 0 when no Karpenter nodes are provisioned. + Used by the metrics collector for billing aggregation. + format: int32 + maximum: 1000000 + minimum: 0 + type: integer type: object conditions: description: |- diff --git a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/AAA_ungated.yaml b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/AAA_ungated.yaml index f7bc1753b857..873dd1d3b534 100644 --- a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/AAA_ungated.yaml +++ b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/AAA_ungated.yaml @@ -6328,6 +6328,17 @@ spec: format: int32 minimum: 0 type: integer + vcpus: + description: |- + vcpus is the total number of virtual CPUs across all Karpenter-managed nodes + that have registered and reported capacity. This is the sum of CPU capacity + from each NodeClaim whose corresponding node exists (status.nodeName is set). + This value is 0 when no Karpenter nodes are provisioned. + Used by the metrics collector for billing aggregation. + format: int32 + maximum: 1000000 + minimum: 0 + type: integer type: object conditions: description: |- diff --git a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/ClusterUpdateAcceptRisks.yaml b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/ClusterUpdateAcceptRisks.yaml index e6ddd5c97dd1..81e5c722d2d1 100644 --- a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/ClusterUpdateAcceptRisks.yaml +++ b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/ClusterUpdateAcceptRisks.yaml @@ -6311,6 +6311,17 @@ spec: format: int32 minimum: 0 type: integer + vcpus: + description: |- + vcpus is the total number of virtual CPUs across all Karpenter-managed nodes + that have registered and reported capacity. This is the sum of CPU capacity + from each NodeClaim whose corresponding node exists (status.nodeName is set). + This value is 0 when no Karpenter nodes are provisioned. + Used by the metrics collector for billing aggregation. + format: int32 + maximum: 1000000 + minimum: 0 + type: integer type: object conditions: description: |- diff --git a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/ClusterVersionOperatorConfiguration.yaml b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/ClusterVersionOperatorConfiguration.yaml index 125ee0e3a972..33eacd58b502 100644 --- a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/ClusterVersionOperatorConfiguration.yaml +++ b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/ClusterVersionOperatorConfiguration.yaml @@ -6331,6 +6331,17 @@ spec: format: int32 minimum: 0 type: integer + vcpus: + description: |- + vcpus is the total number of virtual CPUs across all Karpenter-managed nodes + that have registered and reported capacity. This is the sum of CPU capacity + from each NodeClaim whose corresponding node exists (status.nodeName is set). + This value is 0 when no Karpenter nodes are provisioned. + Used by the metrics collector for billing aggregation. + format: int32 + maximum: 1000000 + minimum: 0 + type: integer type: object conditions: description: |- diff --git a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/ExternalOIDC.yaml b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/ExternalOIDC.yaml index 6f9dc3e1a883..44ad9d8ed2be 100644 --- a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/ExternalOIDC.yaml +++ b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/ExternalOIDC.yaml @@ -6643,6 +6643,17 @@ spec: format: int32 minimum: 0 type: integer + vcpus: + description: |- + vcpus is the total number of virtual CPUs across all Karpenter-managed nodes + that have registered and reported capacity. This is the sum of CPU capacity + from each NodeClaim whose corresponding node exists (status.nodeName is set). + This value is 0 when no Karpenter nodes are provisioned. + Used by the metrics collector for billing aggregation. + format: int32 + maximum: 1000000 + minimum: 0 + type: integer type: object conditions: description: |- diff --git a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/ExternalOIDCWithUIDAndExtraClaimMappings.yaml b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/ExternalOIDCWithUIDAndExtraClaimMappings.yaml index 0f42b7340d8e..968290ae2fa2 100644 --- a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/ExternalOIDCWithUIDAndExtraClaimMappings.yaml +++ b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/ExternalOIDCWithUIDAndExtraClaimMappings.yaml @@ -6783,6 +6783,17 @@ spec: format: int32 minimum: 0 type: integer + vcpus: + description: |- + vcpus is the total number of virtual CPUs across all Karpenter-managed nodes + that have registered and reported capacity. This is the sum of CPU capacity + from each NodeClaim whose corresponding node exists (status.nodeName is set). + This value is 0 when no Karpenter nodes are provisioned. + Used by the metrics collector for billing aggregation. + format: int32 + maximum: 1000000 + minimum: 0 + type: integer type: object conditions: description: |- diff --git a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/ExternalOIDCWithUpstreamParity.yaml b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/ExternalOIDCWithUpstreamParity.yaml index 1b11ade5f959..4b868e1a3ef2 100644 --- a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/ExternalOIDCWithUpstreamParity.yaml +++ b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/ExternalOIDCWithUpstreamParity.yaml @@ -6774,6 +6774,17 @@ spec: format: int32 minimum: 0 type: integer + vcpus: + description: |- + vcpus is the total number of virtual CPUs across all Karpenter-managed nodes + that have registered and reported capacity. This is the sum of CPU capacity + from each NodeClaim whose corresponding node exists (status.nodeName is set). + This value is 0 when no Karpenter nodes are provisioned. + Used by the metrics collector for billing aggregation. + format: int32 + maximum: 1000000 + minimum: 0 + type: integer type: object conditions: description: |- diff --git a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/GCPPlatform.yaml b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/GCPPlatform.yaml index 953a14ed8a31..53291008cc18 100644 --- a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/GCPPlatform.yaml +++ b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/GCPPlatform.yaml @@ -6757,6 +6757,17 @@ spec: format: int32 minimum: 0 type: integer + vcpus: + description: |- + vcpus is the total number of virtual CPUs across all Karpenter-managed nodes + that have registered and reported capacity. This is the sum of CPU capacity + from each NodeClaim whose corresponding node exists (status.nodeName is set). + This value is 0 when no Karpenter nodes are provisioned. + Used by the metrics collector for billing aggregation. + format: int32 + maximum: 1000000 + minimum: 0 + type: integer type: object conditions: description: |- diff --git a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/HCPEtcdBackup.yaml b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/HCPEtcdBackup.yaml index b71f564f0ca9..e4450913ffac 100644 --- a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/HCPEtcdBackup.yaml +++ b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/HCPEtcdBackup.yaml @@ -6376,6 +6376,17 @@ spec: format: int32 minimum: 0 type: integer + vcpus: + description: |- + vcpus is the total number of virtual CPUs across all Karpenter-managed nodes + that have registered and reported capacity. This is the sum of CPU capacity + from each NodeClaim whose corresponding node exists (status.nodeName is set). + This value is 0 when no Karpenter nodes are provisioned. + Used by the metrics collector for billing aggregation. + format: int32 + maximum: 1000000 + minimum: 0 + type: integer type: object conditions: description: |- diff --git a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/HyperShiftOnlyDynamicResourceAllocation.yaml b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/HyperShiftOnlyDynamicResourceAllocation.yaml index ee900daaec0e..6fe328d94dd0 100644 --- a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/HyperShiftOnlyDynamicResourceAllocation.yaml +++ b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/HyperShiftOnlyDynamicResourceAllocation.yaml @@ -6333,6 +6333,17 @@ spec: format: int32 minimum: 0 type: integer + vcpus: + description: |- + vcpus is the total number of virtual CPUs across all Karpenter-managed nodes + that have registered and reported capacity. This is the sum of CPU capacity + from each NodeClaim whose corresponding node exists (status.nodeName is set). + This value is 0 when no Karpenter nodes are provisioned. + Used by the metrics collector for billing aggregation. + format: int32 + maximum: 1000000 + minimum: 0 + type: integer type: object conditions: description: |- diff --git a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/ImageStreamImportMode.yaml b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/ImageStreamImportMode.yaml index f2a648db71f2..8760da617218 100644 --- a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/ImageStreamImportMode.yaml +++ b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/ImageStreamImportMode.yaml @@ -6329,6 +6329,17 @@ spec: format: int32 minimum: 0 type: integer + vcpus: + description: |- + vcpus is the total number of virtual CPUs across all Karpenter-managed nodes + that have registered and reported capacity. This is the sum of CPU capacity + from each NodeClaim whose corresponding node exists (status.nodeName is set). + This value is 0 when no Karpenter nodes are provisioned. + Used by the metrics collector for billing aggregation. + format: int32 + maximum: 1000000 + minimum: 0 + type: integer type: object conditions: description: |- diff --git a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/KMSEncryptionProvider.yaml b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/KMSEncryptionProvider.yaml index 0f7161e22eb9..e5d2caea6507 100644 --- a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/KMSEncryptionProvider.yaml +++ b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/KMSEncryptionProvider.yaml @@ -6387,6 +6387,17 @@ spec: format: int32 minimum: 0 type: integer + vcpus: + description: |- + vcpus is the total number of virtual CPUs across all Karpenter-managed nodes + that have registered and reported capacity. This is the sum of CPU capacity + from each NodeClaim whose corresponding node exists (status.nodeName is set). + This value is 0 when no Karpenter nodes are provisioned. + Used by the metrics collector for billing aggregation. + format: int32 + maximum: 1000000 + minimum: 0 + type: integer type: object conditions: description: |- diff --git a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/OpenStack.yaml b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/OpenStack.yaml index ceb36a1478e4..22f92db2537f 100644 --- a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/OpenStack.yaml +++ b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/OpenStack.yaml @@ -6862,6 +6862,17 @@ spec: format: int32 minimum: 0 type: integer + vcpus: + description: |- + vcpus is the total number of virtual CPUs across all Karpenter-managed nodes + that have registered and reported capacity. This is the sum of CPU capacity + from each NodeClaim whose corresponding node exists (status.nodeName is set). + This value is 0 when no Karpenter nodes are provisioned. + Used by the metrics collector for billing aggregation. + format: int32 + maximum: 1000000 + minimum: 0 + type: integer type: object conditions: description: |- diff --git a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/TLSAdherence.yaml b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/TLSAdherence.yaml index 808ec45afbb7..30962b187798 100644 --- a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/TLSAdherence.yaml +++ b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/TLSAdherence.yaml @@ -6351,6 +6351,17 @@ spec: format: int32 minimum: 0 type: integer + vcpus: + description: |- + vcpus is the total number of virtual CPUs across all Karpenter-managed nodes + that have registered and reported capacity. This is the sum of CPU capacity + from each NodeClaim whose corresponding node exists (status.nodeName is set). + This value is 0 when no Karpenter nodes are provisioned. + Used by the metrics collector for billing aggregation. + format: int32 + maximum: 1000000 + minimum: 0 + type: integer type: object conditions: description: |- diff --git a/client/applyconfiguration/hypershift/v1beta1/autonodestatus.go b/client/applyconfiguration/hypershift/v1beta1/autonodestatus.go index 16f8bd7878b4..84e43dad5547 100644 --- a/client/applyconfiguration/hypershift/v1beta1/autonodestatus.go +++ b/client/applyconfiguration/hypershift/v1beta1/autonodestatus.go @@ -22,6 +22,7 @@ package v1beta1 type AutoNodeStatusApplyConfiguration struct { NodeCount *int32 `json:"nodeCount,omitempty"` NodeClaimCount *int32 `json:"nodeClaimCount,omitempty"` + VCPUs *int32 `json:"vcpus,omitempty"` } // AutoNodeStatusApplyConfiguration constructs a declarative configuration of the AutoNodeStatus type for use with @@ -45,3 +46,11 @@ func (b *AutoNodeStatusApplyConfiguration) WithNodeClaimCount(value int32) *Auto b.NodeClaimCount = &value return b } + +// WithVCPUs sets the VCPUs field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the VCPUs field is set to the value of the last call. +func (b *AutoNodeStatusApplyConfiguration) WithVCPUs(value int32) *AutoNodeStatusApplyConfiguration { + b.VCPUs = &value + return b +} diff --git a/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedclusters-Hypershift-CustomNoUpgrade.crd.yaml b/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedclusters-Hypershift-CustomNoUpgrade.crd.yaml index 66b68c64dd75..6de80f8f0a78 100644 --- a/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedclusters-Hypershift-CustomNoUpgrade.crd.yaml +++ b/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedclusters-Hypershift-CustomNoUpgrade.crd.yaml @@ -8344,6 +8344,17 @@ spec: format: int32 minimum: 0 type: integer + vcpus: + description: |- + vcpus is the total number of virtual CPUs across all Karpenter-managed nodes + that have registered and reported capacity. This is the sum of CPU capacity + from each NodeClaim whose corresponding node exists (status.nodeName is set). + This value is 0 when no Karpenter nodes are provisioned. + Used by the metrics collector for billing aggregation. + format: int32 + maximum: 1000000 + minimum: 0 + type: integer type: object conditions: description: |- diff --git a/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedclusters-Hypershift-Default.crd.yaml b/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedclusters-Hypershift-Default.crd.yaml index 932383bd7374..8226337d326d 100644 --- a/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedclusters-Hypershift-Default.crd.yaml +++ b/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedclusters-Hypershift-Default.crd.yaml @@ -7015,6 +7015,17 @@ spec: format: int32 minimum: 0 type: integer + vcpus: + description: |- + vcpus is the total number of virtual CPUs across all Karpenter-managed nodes + that have registered and reported capacity. This is the sum of CPU capacity + from each NodeClaim whose corresponding node exists (status.nodeName is set). + This value is 0 when no Karpenter nodes are provisioned. + Used by the metrics collector for billing aggregation. + format: int32 + maximum: 1000000 + minimum: 0 + type: integer type: object conditions: description: |- diff --git a/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedclusters-Hypershift-TechPreviewNoUpgrade.crd.yaml b/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedclusters-Hypershift-TechPreviewNoUpgrade.crd.yaml index bbff8d81bedc..919e3b55bbfd 100644 --- a/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedclusters-Hypershift-TechPreviewNoUpgrade.crd.yaml +++ b/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedclusters-Hypershift-TechPreviewNoUpgrade.crd.yaml @@ -8215,6 +8215,17 @@ spec: format: int32 minimum: 0 type: integer + vcpus: + description: |- + vcpus is the total number of virtual CPUs across all Karpenter-managed nodes + that have registered and reported capacity. This is the sum of CPU capacity + from each NodeClaim whose corresponding node exists (status.nodeName is set). + This value is 0 when no Karpenter nodes are provisioned. + Used by the metrics collector for billing aggregation. + format: int32 + maximum: 1000000 + minimum: 0 + type: integer type: object conditions: description: |- diff --git a/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedcontrolplanes-Hypershift-CustomNoUpgrade.crd.yaml b/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedcontrolplanes-Hypershift-CustomNoUpgrade.crd.yaml index 92fafedc7ec8..b3be64d7b3b7 100644 --- a/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedcontrolplanes-Hypershift-CustomNoUpgrade.crd.yaml +++ b/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedcontrolplanes-Hypershift-CustomNoUpgrade.crd.yaml @@ -8149,6 +8149,17 @@ spec: format: int32 minimum: 0 type: integer + vcpus: + description: |- + vcpus is the total number of virtual CPUs across all Karpenter-managed nodes + that have registered and reported capacity. This is the sum of CPU capacity + from each NodeClaim whose corresponding node exists (status.nodeName is set). + This value is 0 when no Karpenter nodes are provisioned. + Used by the metrics collector for billing aggregation. + format: int32 + maximum: 1000000 + minimum: 0 + type: integer type: object conditions: description: |- diff --git a/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedcontrolplanes-Hypershift-Default.crd.yaml b/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedcontrolplanes-Hypershift-Default.crd.yaml index d0000d26f183..6f530195fc0d 100644 --- a/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedcontrolplanes-Hypershift-Default.crd.yaml +++ b/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedcontrolplanes-Hypershift-Default.crd.yaml @@ -6820,6 +6820,17 @@ spec: format: int32 minimum: 0 type: integer + vcpus: + description: |- + vcpus is the total number of virtual CPUs across all Karpenter-managed nodes + that have registered and reported capacity. This is the sum of CPU capacity + from each NodeClaim whose corresponding node exists (status.nodeName is set). + This value is 0 when no Karpenter nodes are provisioned. + Used by the metrics collector for billing aggregation. + format: int32 + maximum: 1000000 + minimum: 0 + type: integer type: object conditions: description: |- diff --git a/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedcontrolplanes-Hypershift-TechPreviewNoUpgrade.crd.yaml b/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedcontrolplanes-Hypershift-TechPreviewNoUpgrade.crd.yaml index 6a697cb8f723..26ee13c96054 100644 --- a/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedcontrolplanes-Hypershift-TechPreviewNoUpgrade.crd.yaml +++ b/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedcontrolplanes-Hypershift-TechPreviewNoUpgrade.crd.yaml @@ -8020,6 +8020,17 @@ spec: format: int32 minimum: 0 type: integer + vcpus: + description: |- + vcpus is the total number of virtual CPUs across all Karpenter-managed nodes + that have registered and reported capacity. This is the sum of CPU capacity + from each NodeClaim whose corresponding node exists (status.nodeName is set). + This value is 0 when no Karpenter nodes are provisioned. + Used by the metrics collector for billing aggregation. + format: int32 + maximum: 1000000 + minimum: 0 + type: integer type: object conditions: description: |- diff --git a/docs/content/reference/aggregated-docs.md b/docs/content/reference/aggregated-docs.md index 428abe478d12..9ef5da727200 100644 --- a/docs/content/reference/aggregated-docs.md +++ b/docs/content/reference/aggregated-docs.md @@ -34919,6 +34919,22 @@ int32 This represents what Karpenter intends to provision, whether or not the node object exists yet.
+vcpus
+
+int32
+
+vcpus is the total number of virtual CPUs across all Karpenter-managed nodes +that have registered and reported capacity. This is the sum of CPU capacity +from each NodeClaim whose corresponding node exists (status.nodeName is set). +This value is 0 when no Karpenter nodes are provisioned. +Used by the metrics collector for billing aggregation.
+vcpus
+
+int32
+
+vcpus is the total number of virtual CPUs across all Karpenter-managed nodes +that have registered and reported capacity. This is the sum of CPU capacity +from each NodeClaim whose corresponding node exists (status.nodeName is set). +This value is 0 when no Karpenter nodes are provisioned. +Used by the metrics collector for billing aggregation.
+