Files

1945 lines
94 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
// Package api provides primitives to interact with the openapi HTTP API.
//
// Code generated by github.com/deepmap/oapi-codegen/v2 version v2.2.0 DO NOT EDIT.
package api
import (
"time"
openapi_types "github.com/oapi-codegen/runtime/types"
)
const (
BearerAuthScopes = "bearerAuth.Scopes"
)
// Defines values for CertificateRenewalStatusState.
const (
CertificateRenewalStatusStateAccepted CertificateRenewalStatusState = "accepted"
CertificateRenewalStatusStateFailed CertificateRenewalStatusState = "failed"
CertificateRenewalStatusStateSucceeded CertificateRenewalStatusState = "succeeded"
)
// Defines values for CertificateRenewalStatusOutcome.
const (
CertificateRenewalStatusOutcomeRenewed CertificateRenewalStatusOutcome = "renewed"
CertificateRenewalStatusOutcomeUnchanged CertificateRenewalStatusOutcome = "unchanged"
)
// Defines values for ConditionStatus.
const (
ConditionStatusFalse ConditionStatus = "False"
ConditionStatusTrue ConditionStatus = "True"
ConditionStatusUnknown ConditionStatus = "Unknown"
)
// Defines values for CreateClusterRequestCniPlugin.
const (
CreateClusterRequestCniPluginCalico CreateClusterRequestCniPlugin = "calico"
CreateClusterRequestCniPluginNone CreateClusterRequestCniPlugin = "none"
CreateClusterRequestCniPluginOvnKubernetes CreateClusterRequestCniPlugin = "ovn-kubernetes"
)
// Defines values for DiskSelectionStrategy.
const (
DiskSelectionStrategyLargest DiskSelectionStrategy = "largest"
DiskSelectionStrategySmallest DiskSelectionStrategy = "smallest"
)
// Defines values for DiskSelectionStrategyCreate.
const (
DiskSelectionStrategyCreateLargest DiskSelectionStrategyCreate = "largest"
DiskSelectionStrategyCreateSmallest DiskSelectionStrategyCreate = "smallest"
)
// Defines values for EtcdKeyRotationStatusFailureReason.
const (
EtcdKeyRotationStatusFailureReasonCanceled EtcdKeyRotationStatusFailureReason = "canceled"
EtcdKeyRotationStatusFailureReasonOperationFailed EtcdKeyRotationStatusFailureReason = "operation_failed"
)
// Defines values for EtcdKeyRotationStatusPhase.
const (
EtcdKeyRotationStatusPhaseAddSecondary EtcdKeyRotationStatusPhase = "add_secondary"
EtcdKeyRotationStatusPhaseFinalize EtcdKeyRotationStatusPhase = "finalize"
EtcdKeyRotationStatusPhasePrepare EtcdKeyRotationStatusPhase = "prepare"
EtcdKeyRotationStatusPhasePromotePrimary EtcdKeyRotationStatusPhase = "promote_primary"
EtcdKeyRotationStatusPhaseRemoveOldKeys EtcdKeyRotationStatusPhase = "remove_old_keys"
EtcdKeyRotationStatusPhaseRewrite EtcdKeyRotationStatusPhase = "rewrite"
)
// Defines values for EtcdKeyRotationStatusState.
const (
EtcdKeyRotationStatusStateFailed EtcdKeyRotationStatusState = "failed"
EtcdKeyRotationStatusStateRunning EtcdKeyRotationStatusState = "running"
EtcdKeyRotationStatusStateSucceeded EtcdKeyRotationStatusState = "succeeded"
)
// Defines values for LaunchLayerClusterProviderVpcType.
const (
LaunchLayerClusterProviderVpcTypeBAREMETAL LaunchLayerClusterProviderVpcType = "BARE_METAL"
LaunchLayerClusterProviderVpcTypeVIRTUALIZED LaunchLayerClusterProviderVpcType = "VIRTUALIZED"
)
// Defines values for LaunchLayerControlPlaneProviderFulfillmentStrategy.
const (
LaunchLayerControlPlaneProviderFulfillmentStrategyALLORNOTHING LaunchLayerControlPlaneProviderFulfillmentStrategy = "ALL_OR_NOTHING"
LaunchLayerControlPlaneProviderFulfillmentStrategyBESTEFFORT LaunchLayerControlPlaneProviderFulfillmentStrategy = "BEST_EFFORT"
LaunchLayerControlPlaneProviderFulfillmentStrategyWAITFORRESOURCE LaunchLayerControlPlaneProviderFulfillmentStrategy = "WAIT_FOR_RESOURCE"
)
// Defines values for LaunchLayerNodePoolProviderFulfillmentStrategy.
const (
LaunchLayerNodePoolProviderFulfillmentStrategyALLORNOTHING LaunchLayerNodePoolProviderFulfillmentStrategy = "ALL_OR_NOTHING"
LaunchLayerNodePoolProviderFulfillmentStrategyBESTEFFORT LaunchLayerNodePoolProviderFulfillmentStrategy = "BEST_EFFORT"
LaunchLayerNodePoolProviderFulfillmentStrategyWAITFORRESOURCE LaunchLayerNodePoolProviderFulfillmentStrategy = "WAIT_FOR_RESOURCE"
)
// Defines values for LaunchLayerNodeSetProviderFulfillmentStrategy.
const (
LaunchLayerNodeSetProviderFulfillmentStrategyALLORNOTHING LaunchLayerNodeSetProviderFulfillmentStrategy = "ALL_OR_NOTHING"
LaunchLayerNodeSetProviderFulfillmentStrategyBESTEFFORT LaunchLayerNodeSetProviderFulfillmentStrategy = "BEST_EFFORT"
LaunchLayerNodeSetProviderFulfillmentStrategyWAITFORRESOURCE LaunchLayerNodeSetProviderFulfillmentStrategy = "WAIT_FOR_RESOURCE"
)
// Defines values for LaunchLayerSecurityGroupNetworkType.
const (
LaunchLayerSecurityGroupNetworkTypePrimary LaunchLayerSecurityGroupNetworkType = "primary"
LaunchLayerSecurityGroupNetworkTypeSecondary LaunchLayerSecurityGroupNetworkType = "secondary"
)
// Defines values for LaunchLayerSecurityGroupType.
const (
LaunchLayerSecurityGroupTypeBAREMETAL LaunchLayerSecurityGroupType = "BARE_METAL"
LaunchLayerSecurityGroupTypeVIRTUALIZED LaunchLayerSecurityGroupType = "VIRTUALIZED"
)
// Defines values for NodeAgentUpgradeStatusPhase.
const (
NodeAgentUpgradeStatusPhasePending NodeAgentUpgradeStatusPhase = "Pending"
NodeAgentUpgradeStatusPhaseRunning NodeAgentUpgradeStatusPhase = "Running"
)
// Defines values for NodeTaintEffect.
const (
NodeTaintEffectNoExecute NodeTaintEffect = "NoExecute"
NodeTaintEffectNoSchedule NodeTaintEffect = "NoSchedule"
NodeTaintEffectPreferNoSchedule NodeTaintEffect = "PreferNoSchedule"
)
// Defines values for SelfAdoptClusterRequestCniPlugin.
const (
SelfAdoptClusterRequestCniPluginCalico SelfAdoptClusterRequestCniPlugin = "calico"
SelfAdoptClusterRequestCniPluginOvnKubernetes SelfAdoptClusterRequestCniPlugin = "ovn-kubernetes"
)
// Defines values for UpdateInProgressType.
const (
UpdateInProgressTypeCertificateRenewal UpdateInProgressType = "certificate_renewal"
UpdateInProgressTypeCpNodesRecycling UpdateInProgressType = "cp_nodes_recycling"
UpdateInProgressTypeEtcdEncryption UpdateInProgressType = "etcd_encryption"
UpdateInProgressTypeEtcdKeyRotation UpdateInProgressType = "etcd_key_rotation"
UpdateInProgressTypeK8SUpgrade UpdateInProgressType = "k8s_upgrade"
UpdateInProgressTypeOidcEnable UpdateInProgressType = "oidc_enable"
UpdateInProgressTypeSpireServerUpdate UpdateInProgressType = "spire_server_update"
)
// CertificateRenewalStatus The recorded lifecycle state and outcome of a certificate-renewal cycle.
type CertificateRenewalStatus struct {
// CycleID The Temporal workflow ID that owns this certificate-renewal cycle.
CycleID string `json:"cycleID"`
// State The lifecycle state of the most recent certificate-renewal cycle.
State CertificateRenewalStatusState `json:"state"`
// Outcome Whether a successful cycle renewed certificates or found no certificates due.
Outcome *CertificateRenewalStatusOutcome `json:"outcome,omitempty"`
// Forced Whether the workflow was explicitly forced by an operator.
Forced bool `json:"forced"`
// ScheduledFor The scheduled due time associated with this cycle, when applicable.
ScheduledFor *time.Time `json:"scheduledFor,omitempty"`
// StartedAt When the workflow accepted the cycle and acquired the cluster mutation lock. Refused cycles record startedAt without holding the lock.
StartedAt time.Time `json:"startedAt"`
// CompletedAt When the cycle succeeded or failed.
CompletedAt *time.Time `json:"completedAt,omitempty"`
// FailedNodeID The control-plane node being processed when the cycle failed, when applicable.
FailedNodeID *openapi_types.UUID `json:"failedNodeID,omitempty"`
// Phase The workflow phase that failed, when applicable.
Phase *string `json:"phase,omitempty"`
// Message A bounded operator-facing failure summary.
Message *string `json:"message,omitempty"`
}
// CertificateRenewalStatusState The lifecycle state of the most recent certificate-renewal cycle.
type CertificateRenewalStatusState string
// CertificateRenewalStatusOutcome Whether a successful cycle renewed certificates or found no certificates due.
type CertificateRenewalStatusOutcome string
// CloudInitFile A file written by cloud-init on CAPI-backed nodes.
type CloudInitFile struct {
// Content File contents written by cloud-init.
Content string `json:"content"`
// Owner File ownership, for example `root:root`.
Owner *string `json:"owner,omitempty"`
// Path Full path on disk where the file should be written.
Path string `json:"path"`
// Permissions File permissions, for example `0644`.
Permissions *string `json:"permissions,omitempty"`
}
// Cluster A Kubernetes cluster. Holds the Kubernetes version, network, CNI, etcd
// encryption, control-plane configuration and conditions.
type Cluster struct {
// ID Cluster ID.
ID openapi_types.UUID `json:"id"`
// Name Cluster name.
Name string `json:"name"`
// ControlPlaneKubernetesVersion Desired control-plane Kubernetes version. The running version is in ControlPlaneStatus.
ControlPlaneKubernetesVersion string `json:"controlPlaneKubernetesVersion"`
// CniPlugin CNI plugin.
CniPlugin string `json:"cniPlugin"`
// CniVersion CNI version.
CniVersion string `json:"cniVersion"`
// EtcdEncrypted Whether etcd is encrypted at rest.
EtcdEncrypted bool `json:"etcdEncrypted"`
// ControlPlaneVIP API server VIP, if configured.
ControlPlaneVIP *string `json:"controlPlaneVIP,omitempty"`
// EnableCPNodeRecycling When true, control-plane upgrades and configuration changes replace nodes
// automatically. When false, nodes needing replacement are reported as pending and
// wait for an operator.
EnableCPNodeRecycling *bool `json:"enableCPNodeRecycling,omitempty"`
// TeleportEnabled Whether Teleport SSH enrollment is enabled for nodes in this cluster.
TeleportEnabled *bool `json:"teleportEnabled,omitempty"`
// CreatedAt Creation time.
CreatedAt time.Time `json:"createdAt"`
// NextCertRenewalDue The next scheduled certificate-renewal time. A value in the past is
// overdue unless a certificate-renewal operation is currently accepted.
// Unset until the controller first sees the cluster, which schedules
// the first check one renewal interval later.
NextCertRenewalDue *time.Time `json:"nextCertRenewalDue,omitempty"`
// Conditions Lifecycle conditions.
Conditions ClusterConditions `json:"conditions"`
// ControlPlaneConfig Current control-plane configuration.
ControlPlaneConfig *ControlPlaneConfig `json:"controlPlaneConfig,omitempty"`
// Infra Infra provider fields.
Infra *InfraClusterProvider `json:"infra,omitempty"`
// LaunchLayer LaunchLayer identifiers.
LaunchLayer *LaunchLayerClusterProvider `json:"launchLayer,omitempty"`
// Network Pod and service network.
Network ClusterNetwork `json:"network"`
// Nico NICo identifiers.
Nico *NicoClusterProvider `json:"nico,omitempty"`
// NodeAgentUpgrade The active agent upgrade and latest retry error.
NodeAgentUpgrade *NodeAgentUpgradeStatus `json:"nodeAgentUpgrade,omitempty"`
}
// ClusterConditions Lifecycle conditions of a cluster. Each is a Condition.
type ClusterConditions struct {
// CertificateRenewal The accepted, succeeded, or failed state of the most recent certificate-renewal cycle.
CertificateRenewal *CertificateRenewalStatus `json:"certificateRenewal,omitempty"`
// ControlPlaneUpgrading The control plane is being upgraded.
ControlPlaneUpgrading *Condition `json:"controlPlaneUpgrading,omitempty"`
// CpNodesRecycling Control-plane nodes are being replaced.
CpNodesRecycling *Condition `json:"cpNodesRecycling,omitempty"`
// Deleting The cluster is being deleted.
Deleting Condition `json:"deleting"`
// EtcdKeyRotation The most recent etcd data-encryption-key rotation, including retained ownership after failure.
EtcdKeyRotation *EtcdKeyRotationStatus `json:"etcdKeyRotation,omitempty"`
// Provisioned The cluster is provisioned.
Provisioned Condition `json:"provisioned"`
// Provisioning The cluster is provisioning.
Provisioning Condition `json:"provisioning"`
// UpdateFailed The most recent cluster update failed.
UpdateFailed *Condition `json:"updateFailed,omitempty"`
// UpdateInProgress The mutually exclusive cluster operation in progress, if any. Absent when none.
UpdateInProgress *UpdateInProgress `json:"updateInProgress,omitempty"`
}
// ClusterControlPlane Read-only view of a cluster's control plane: its persisted configuration
// plus an aggregate runtime status.
type ClusterControlPlane struct {
// Config The persisted control-plane configuration.
Config ControlPlaneConfig `json:"config"`
// Status Aggregate runtime status.
Status ControlPlaneStatus `json:"status"`
}
// ClusterNetwork Pod and service network in effect. Both fields are always present.
type ClusterNetwork struct {
// PodCIDR Comma-separated IPv4 pod CIDRs in effect.
PodCIDR string `json:"podCIDR"`
// ServiceCIDR IPv4 service CIDR in effect.
ServiceCIDR string `json:"serviceCIDR"`
}
// ClusterNetworkCreateConfig Pod and service network. Immutable after creation. Defaults apply when omitted.
// Custom values require `cniPlugin` to be set to `ovn-kubernetes` explicitly; with
// `cniPlugin` omitted or set to another plugin, only the defaults are accepted.
type ClusterNetworkCreateConfig struct {
// PodCIDR Comma-separated IPv4 pod CIDRs. Each must be private, with a prefix length from
// /12 to /23, and must not overlap the others or the service CIDR. Must have room
// for a /24 per desired node plus surge. Default 192.168.0.0/16.
PodCIDR string `json:"podCIDR,omitempty"`
// ServiceCIDR IPv4 service CIDR, private, /12 to /24. Default 10.96.0.0/12.
ServiceCIDR string `json:"serviceCIDR,omitempty"`
}
// ClusterSpireServerStatus Requested SPIRE server and live per-node SPIRE agent status.
type ClusterSpireServerStatus struct {
// Requested The server last requested. Absent if none was requested.
Requested *SpireServer `json:"requested,omitempty"`
// Nodes Every node of the cluster.
Nodes []NodeSpireAgentStatus `json:"nodes"`
}
// Condition A status, when it last changed, and a message.
type Condition struct {
// Status Condition status.
Status ConditionStatus `json:"status"`
// LastTransitionTime When the status last changed.
LastTransitionTime time.Time `json:"lastTransitionTime"`
// Message Human-readable detail. May be empty.
Message string `json:"message"`
}
// ConditionStatus Condition status.
type ConditionStatus string
// ConfigProfile A config profile available to the management plane.
type ConfigProfile struct {
// Name The name of the config profile
Name string `json:"name"`
}
// ControlPlaneComponentConfig Arguments for one control-plane component.
type ControlPlaneComponentConfig struct {
// ExtraArgs Flags for this component, as a map from flag name without the leading "--" to its value. A flag NVKE sets on the component is rejected. feature-gates is merged with the gates NVKE sets, and a gate that contradicts NVKE's is rejected, as are AllAlpha and AllBeta. Flags and gates are not checked against the Kubernetes version. A caller can set any flag NVKE doesn't set, including authentication and authorization flags.
ExtraArgs map[string]string `json:"extraArgs,omitempty"`
}
// ControlPlaneConfig The control-plane configuration in effect, including the desired node-agent version.
type ControlPlaneConfig struct {
// APIServer Arguments for one control-plane component.
APIServer *ControlPlaneComponentConfig `json:"apiServer,omitempty"`
// AutoScaleDownDisabled When true, automatic control-plane scale-down is disabled, so decreasing desiredCount leaves the surplus nodes in place. When scale-down is enabled it never reduces the control plane below the fault-tolerant floor of three nodes.
AutoScaleDownDisabled *bool `json:"autoScaleDownDisabled,omitempty"`
// ConfigurationID ID of the current configuration snapshot.
ConfigurationID openapi_types.UUID `json:"configurationId,omitempty"`
// ControllerManager Arguments for one control-plane component.
ControllerManager *ControlPlaneComponentConfig `json:"controllerManager,omitempty"`
// DesiredCount The desired number of cluster-level control plane nodes. Creating a cluster with or increasing this count above 1 requires controlPlaneVIP on the cluster unless the development-only allowControlPlaneWithoutVIP setting is enabled.
DesiredCount int `json:"desiredCount,omitempty"`
// Infra Infra provider control plane fields.
Infra *InfraControlPlaneProvider `json:"infra,omitempty"`
// LaunchLayer LaunchLayer settings for control-plane nodes.
LaunchLayer *LaunchLayerControlPlaneProvider `json:"launchLayer,omitempty"`
// MachineAnnotations Annotations applied to control-plane CAPI Machines at creation, including scale-out and replacement Machines. Fixed at cluster creation and not reconciled after provisioning. Keys under nke.nvidia.com, nke.io, nvke.nvidia.com, kubernetes.io, k8s.io, cluster.x-k8s.io and their subdomains require an explicit deployment allowlist entry for this metadata type.
MachineAnnotations map[string]string `json:"machineAnnotations,omitempty"`
// MachineLabels Labels applied to control-plane CAPI Machines at creation, including scale-out and replacement Machines. Fixed at cluster creation and not reconciled after provisioning. Keys under nke.nvidia.com, nke.io, nvke.nvidia.com, kubernetes.io, k8s.io, cluster.x-k8s.io and their subdomains require an explicit deployment allowlist entry for this metadata type.
MachineLabels map[string]string `json:"machineLabels,omitempty"`
// MaxSurge Extra control-plane nodes allowed during a rollout (0 or 1).
MaxSurge *int `json:"maxSurge,omitempty"`
// Nico NICo settings for control-plane nodes.
Nico *NicoControlPlaneProvider `json:"nico,omitempty"`
// NodeAgentConfig Desired control-plane node-agent configuration.
NodeAgentConfig *NodeAgentConfig `json:"nodeAgentConfig,omitempty"`
// NodeLabels Labels applied to control-plane nodes, as a map of keys to values. Set at creation.
NodeLabels map[string]string `json:"nodeLabels,omitempty"`
// NodeRebalanceDisabled When true, steady-state control-plane instance-type rebalancing is disabled. When unset (the default) the controller surges a more-preferred replacement for a node on a less-preferred instance type and sheds the old node through the control-plane delete path, independent of autoScaleDownDisabled. Existing clusters are opted out at migration time.
NodeRebalanceDisabled *bool `json:"nodeRebalanceDisabled,omitempty"`
// ProvisioningMonitorDisabled When true, nodes stuck in provisioning past the timeout are not replaced automatically.
ProvisioningMonitorDisabled *bool `json:"provisioningMonitorDisabled,omitempty"`
// Scheduler Arguments for one control-plane component.
Scheduler *ControlPlaneComponentConfig `json:"scheduler,omitempty"`
// SystemReservedMemory Memory reserved for system daemons. Nodes reserve 16Gi when omitted.
SystemReservedMemory string `json:"systemReservedMemory,omitempty"`
// TeleportEnabled Whether Teleport SSH enrollment is enabled for control plane nodes.
TeleportEnabled *bool `json:"teleportEnabled,omitempty"`
}
// ControlPlaneConfigChange One control-plane configuration snapshot and what changed in it.
type ControlPlaneConfigChange struct {
// ChangeReason Why the snapshot was created, when recorded.
ChangeReason string `json:"changeReason,omitempty"`
// ChangedFields Fields that changed relative to the previous snapshot. Empty for the first entry.
ChangedFields []ControlPlaneConfigField `json:"changedFields"`
// ConfigurationID The configuration snapshot.
ConfigurationID openapi_types.UUID `json:"configurationID"`
// CreatedAt When the change took effect.
CreatedAt time.Time `json:"createdAt"`
// CreatedBy Who created the snapshot, when recorded.
CreatedBy string `json:"createdBy,omitempty"`
// IsCurrent Whether this is the cluster's current desired configuration.
IsCurrent bool `json:"isCurrent"`
}
// ControlPlaneConfigField One field that changed between two snapshots. Values are JSON-encoded.
type ControlPlaneConfigField struct {
// Field The field that changed.
Field string `json:"field"`
// From JSON-encoded previous value. Omitted for the first entry.
From *string `json:"from,omitempty"`
// To JSON-encoded new value.
To string `json:"to"`
}
// ControlPlaneConfigHistory Ordered snapshots of control-plane configuration changes.
type ControlPlaneConfigHistory struct {
// Changes Oldest first. A node's pinnedConfigurationID and the cluster's desired
// configurationId both refer to entries here.
Changes []ControlPlaneConfigChange `json:"changes"`
}
// ControlPlaneRolloutChange One rollout-relevant field whose pinned value differs from the desired value, as plain strings.
type ControlPlaneRolloutChange struct {
// Field The rollout-relevant field that changed (e.g. kubernetesVersion, release).
Field string `json:"field"`
// From The value the node is currently pinned to.
From string `json:"from"`
// To The cluster's desired value.
To string `json:"to"`
}
// ControlPlaneRolloutStatus Control-plane nodes only. Drift is computed on the release and
// the Kubernetes version. Resolve pinnedConfigurationID and desiredConfigurationID
// with GET /clusters/{clusterID}/control-plane/configHistory.
type ControlPlaneRolloutStatus struct {
// Pending The node differs from the desired configuration.
Pending bool `json:"pending"`
// Actionable The node can be replaced now.
Actionable bool `json:"actionable"`
// Changes Each with field, from, to as plain strings. Drift is computed on the release and the Kubernetes version.
Changes []ControlPlaneRolloutChange `json:"changes,omitempty"`
// PinnedConfigurationID Configuration the node was built from.
PinnedConfigurationID openapi_types.UUID `json:"pinnedConfigurationID,omitempty"`
// DesiredConfigurationID Configuration the node should move to.
DesiredConfigurationID openapi_types.UUID `json:"desiredConfigurationID,omitempty"`
}
// ControlPlaneRolloutSummary Rollout progress of the control plane. The three node counts are mutually
// exclusive and sum to managedNodeCount.
type ControlPlaneRolloutSummary struct {
// ManagedNodeCount Control-plane nodes under management.
ManagedNodeCount int `json:"managedNodeCount"`
// UpToDateNodeCount Nodes on the desired configuration.
UpToDateNodeCount int `json:"upToDateNodeCount"`
// PendingNodeCount Nodes waiting to be replaced.
PendingNodeCount int `json:"pendingNodeCount"`
// InProgressNodeCount Nodes being replaced. The three counts sum to managedNodeCount.
InProgressNodeCount int `json:"inProgressNodeCount"`
// InProgress A rollout is running.
InProgress bool `json:"inProgress"`
// RecyclingEnabled When false, pending nodes are detected but wait for an operator.
RecyclingEnabled bool `json:"recyclingEnabled"`
}
// ControlPlaneStatus Aggregate runtime status of a cluster's control plane.
type ControlPlaneStatus struct {
// NodeCount Total control-plane nodes, including surge nodes.
NodeCount int `json:"nodeCount"`
// ReadyNodeCount Control-plane nodes reporting Kubernetes Ready.
ReadyNodeCount int `json:"readyNodeCount"`
// KubernetesVersion Current running control-plane Kubernetes version.
KubernetesVersion string `json:"kubernetesVersion"`
// DeletingNodeCount Control-plane nodes being torn down. Deletes are serialized, so this is at most 1.
DeletingNodeCount int `json:"deletingNodeCount"`
// ControlPlaneUpgrading The control plane is being upgraded.
ControlPlaneUpgrading Condition `json:"controlPlaneUpgrading"`
// CpNodesRecycling Control-plane nodes are being replaced.
CpNodesRecycling Condition `json:"cpNodesRecycling"`
// DeleteRequestedNodeCount Control-plane nodes with an accepted delete that has not started.
DeleteRequestedNodeCount int `json:"deleteRequestedNodeCount"`
// Rollout Rollout progress.
Rollout *ControlPlaneRolloutSummary `json:"rollout,omitempty"`
}
// CreateClusterControlPlaneConfig Writable cluster-level control plane configuration supplied at cluster creation.
// Required when you create a cluster.
// `nico` carries the NICo settings for the control-plane nodes; it is required
// for a NICo cluster. `launchLayer` is required for a LaunchLayer cluster.
type CreateClusterControlPlaneConfig struct {
// APIServer Arguments for one control-plane component.
APIServer *ControlPlaneComponentConfig `json:"apiServer,omitempty"`
// AutoScaleDownDisabled When true, automatic control-plane scale-down is disabled, so decreasing desiredCount leaves the surplus nodes in place. When scale-down is enabled it never reduces the control plane below the fault-tolerant floor of three nodes.
AutoScaleDownDisabled *bool `json:"autoScaleDownDisabled,omitempty"`
// ControllerManager Arguments for one control-plane component.
ControllerManager *ControlPlaneComponentConfig `json:"controllerManager,omitempty"`
// DesiredCount The desired number of cluster-level control plane nodes. Must be at least 1. Values above 1 require controlPlaneVIP on the cluster unless the development-only allowControlPlaneWithoutVIP setting is enabled.
DesiredCount int `json:"desiredCount"`
// Infra Infra provider fields for cluster-level control plane configuration. Mutually exclusive with `nico`.
Infra *InfraControlPlaneProvider `json:"infra,omitempty"`
// LaunchLayer LaunchLayer settings for the control-plane nodes. Same shape as
// LaunchLayerNodePoolProvider — control-plane nodes are still
// LaunchLayer machines. Fixed at creation.
LaunchLayer *LaunchLayerControlPlaneProvider `json:"launchLayer,omitempty"`
// MachineAnnotations Annotations applied to control-plane CAPI Machines at creation, including scale-out and replacement Machines. Fixed at cluster creation and not reconciled after provisioning. Keys under nke.nvidia.com, nke.io, nvke.nvidia.com, kubernetes.io, k8s.io, cluster.x-k8s.io and their subdomains require an explicit deployment allowlist entry for this metadata type.
MachineAnnotations map[string]string `json:"machineAnnotations,omitempty"`
// MachineLabels Labels applied to control-plane CAPI Machines at creation, including scale-out and replacement Machines. Fixed at cluster creation and not reconciled after provisioning. Keys under nke.nvidia.com, nke.io, nvke.nvidia.com, kubernetes.io, k8s.io, cluster.x-k8s.io and their subdomains require an explicit deployment allowlist entry for this metadata type.
MachineLabels map[string]string `json:"machineLabels,omitempty"`
// MaxSurge Extra control-plane nodes allowed during a rollout (0 or 1).
MaxSurge *int `json:"maxSurge,omitempty"`
// Nico NICo settings for control-plane nodes at creation. release is required,
// and exactly one of subnetIDs and vpcPrefixIDs is required.
Nico *NicoControlPlaneProviderCreate `json:"nico,omitempty"`
// NodeAgentConfig Desired control-plane node-agent configuration.
NodeAgentConfig *NodeAgentConfig `json:"nodeAgentConfig,omitempty"`
// NodeLabels Labels applied to control-plane nodes at creation, as a map of keys to values. Keys under nvke.nvidia.com, nke.nvidia.com (legacy), nke.io (legacy), kubernetes.io, k8s.io and their subdomains are reserved, unless the deployment allows specific Kubernetes keys.
NodeLabels map[string]string `json:"nodeLabels,omitempty"`
// NodeRebalanceDisabled When true, steady-state control-plane instance-type rebalancing is disabled. When unset (the default) the controller surges a more-preferred replacement for a node on a less-preferred instance type and sheds the old node through the control-plane delete path, independent of autoScaleDownDisabled. Existing clusters are opted out at migration time.
NodeRebalanceDisabled *bool `json:"nodeRebalanceDisabled,omitempty"`
// ProvisioningMonitorDisabled When true, nodes stuck in provisioning past the timeout are not replaced automatically.
ProvisioningMonitorDisabled *bool `json:"provisioningMonitorDisabled,omitempty"`
// Scheduler Arguments for one control-plane component.
Scheduler *ControlPlaneComponentConfig `json:"scheduler,omitempty"`
// SystemReservedMemory Memory reserved for system daemons. Nodes reserve 16Gi when omitted.
SystemReservedMemory string `json:"systemReservedMemory,omitempty"`
// TeleportEnabled Whether Teleport SSH enrollment is enabled for control plane nodes. When omitted, the server-side default for the site is applied.
TeleportEnabled *bool `json:"teleportEnabled,omitempty"`
}
// CreateClusterRequest A cluster and, optionally, its initial node pools. The provider payload is
// fixed at creation.
type CreateClusterRequest struct {
// Name Cluster name. Lowercase DNS label, unique per management plane. Node names are derived from it.
Name string `json:"name"`
// ControlPlaneKubernetesVersion Kubernetes version for the cluster, as X.Y.Z with no leading "v".
ControlPlaneKubernetesVersion string `json:"controlPlaneKubernetesVersion"`
// CniPlugin CNI plugin. Defaults to ovn-kubernetes when omitted. calico is a disabled-by-default
// legacy override. Custom `network` CIDRs require ovn-kubernetes to be set explicitly.
// none installs no CNI and no kube-proxy: the cluster's nodes stay NotReady until you
// install your own CNI. It accepts neither `cniVersion` nor custom `network` CIDRs.
CniPlugin CreateClusterRequestCniPlugin `json:"cniPlugin,omitempty"`
// CniVersion CNI version, as X.Y.Z. Defaults to 3.30.1 for legacy calico or 2.4.2 for ovn-kubernetes. Not allowed when cniPlugin is none.
CniVersion *string `json:"cniVersion,omitempty"`
// EtcdEncrypted Encrypt etcd at rest. Can be turned on later with `enableEtcdEncryption`; cannot be turned off.
EtcdEncrypted bool `json:"etcdEncrypted"`
// ControlPlaneVIP Virtual IP for the API server through kube-vip. Omit to skip kube-vip and
// use the first control-plane node's IP as the API server endpoint. Must not
// fall inside the pod or service CIDR. An explicit empty string is rejected.
// By default, a cluster without a VIP must have exactly one desired
// control-plane node. Scale-up above one node, upgrades and node replacement
// require a VIP unless the controller deployment enables the development-only
// allowControlPlaneWithoutVIP setting. That override keeps the initializing
// node's IP as the endpoint; replacing that node can break API access.
// Quorum, health and deletion protections still apply.
ControlPlaneVIP string `json:"controlPlaneVIP,omitempty"`
// TeleportEnabled Enable Teleport SSH enrollment for nodes in this cluster. When omitted, the server-side default for the site is applied.
TeleportEnabled *bool `json:"teleportEnabled,omitempty"`
// NodePools Initial worker node pools.
NodePools *[]NodePoolCreateConfig `json:"nodePools,omitempty"`
// ControlPlaneConfig Writable cluster-level control plane configuration supplied at cluster creation.
// Required when you create a cluster.
// `nico` carries the NICo settings for the control-plane nodes; it is required
// for a NICo cluster. `launchLayer` is required for a LaunchLayer cluster.
ControlPlaneConfig *CreateClusterControlPlaneConfig `json:"controlPlaneConfig,omitempty"`
// EnableCPNodeRecycling When true, control-plane upgrades and configuration changes replace nodes
// automatically. When false, the default, nodes needing replacement are reported as
// pending and wait for an operator.
EnableCPNodeRecycling *bool `json:"enableCPNodeRecycling,omitempty"`
// Infra CAPI infrastructure fields for a cluster: the caller supplies the CAPI manifests
// directly. Not to be used merely because a cluster is provisioned through CAPI —
// `nico` clusters may be too. Mutually exclusive with `nico`.
Infra *InfraClusterProvider `json:"infra,omitempty"`
// LaunchLayer LaunchLayer identifiers for the cluster. Exactly one of vpcID or orgID
// must be set, and siteID is required. All fields are fixed at creation.
LaunchLayer *LaunchLayerClusterProvider `json:"launchLayer,omitempty"`
// Network Pod and service network. Immutable after creation. Defaults apply when omitted.
// Custom values require `cniPlugin` to be set to `ovn-kubernetes` explicitly; with
// `cniPlugin` omitted or set to another plugin, only the defaults are accepted.
Network *ClusterNetworkCreateConfig `json:"network,omitempty"`
// Nico NICo identifiers for the cluster. Fixed at creation.
Nico *NicoClusterProvider `json:"nico,omitempty"`
}
// CreateClusterRequestCniPlugin CNI plugin. Defaults to ovn-kubernetes when omitted. calico is a disabled-by-default
// legacy override. Custom `network` CIDRs require ovn-kubernetes to be set explicitly.
// none installs no CNI and no kube-proxy: the cluster's nodes stay NotReady until you
// install your own CNI. It accepts neither `cniVersion` nor custom `network` CIDRs.
type CreateClusterRequestCniPlugin string
// CreateNodePoolRequest defines model for CreateNodePoolRequest.
type CreateNodePoolRequest struct {
// ClusterID Parent cluster.
ClusterID openapi_types.UUID `json:"clusterID"`
// Name Unique within the cluster. Immutable.
Name string `json:"name"`
// SystemReservedMemory Memory reserved for system daemons. Nodes reserve 16Gi when omitted.
SystemReservedMemory string `json:"systemReservedMemory,omitempty"`
// KubeReservedMemory Memory reserved for Kubernetes components. Default 2Gi.
KubeReservedMemory string `json:"kubeReservedMemory,omitempty"`
// ControlPlane Whether the nodes in this pool should be added as Kubernetes control plane nodes
ControlPlane bool `json:"controlPlane,omitempty"`
// NodeLabels Labels applied to the pool's nodes at creation, as a map of keys to values. Keys under nvke.nvidia.com, nke.nvidia.com (legacy), nke.io (legacy), kubernetes.io, k8s.io and their subdomains are reserved, unless the deployment allows specific Kubernetes keys.
NodeLabels map[string]string `json:"nodeLabels,omitempty"`
// NodeTaints Taints applied to the pool's nodes at creation. Not allowed on control-plane pools. Keys under nvke.nvidia.com, nke.nvidia.com (legacy), nke.io (legacy), kubernetes.io, k8s.io and their subdomains are reserved. Each key and effect pair may appear only once.
NodeTaints []NodeTaint `json:"nodeTaints,omitempty"`
// DesiredNodeCount The desired number of nodes in the pool. For control-plane pools, aggregate capacity above 1 requires controlPlaneVIP on the cluster unless the development-only allowControlPlaneWithoutVIP setting is enabled.
DesiredNodeCount int `json:"desiredNodeCount"`
// Description Free-text description.
Description *string `json:"description,omitempty"`
// AutoProvisionDisabled Disables automatic provisioning for the pool.
AutoProvisionDisabled *bool `json:"autoProvisionDisabled,omitempty"`
// AutoModeDisabled Disables auto-mode (automatic node recycling).
AutoModeDisabled *bool `json:"autoModeDisabled,omitempty"`
// ProvisioningMonitorDisabled When true, nodes stuck in provisioning past the timeout are not recycled automatically.
ProvisioningMonitorDisabled *bool `json:"provisioningMonitorDisabled,omitempty"`
// Infra Infra provider fields for a node pool. Mutually exclusive with `nico`.
Infra *InfraNodePoolProvider `json:"infra,omitempty"`
// LaunchLayer LaunchLayer settings for a node pool. instanceType is required, and
// at most one of hostOSProfile and vmProfile may be set.
LaunchLayer *LaunchLayerNodePoolProvider `json:"launchLayer,omitempty"`
// MachineAnnotations Annotations set on CAPI Machines only when they are created, including Machines created during scale-out or replacement. Fixed at node-pool creation. Not reconciled after provisioning. Keys under nke.nvidia.com, nke.io, nvke.nvidia.com, kubernetes.io, k8s.io, cluster.x-k8s.io and their subdomains require an explicit deployment allowlist entry for this metadata type.
MachineAnnotations map[string]string `json:"machineAnnotations,omitempty"`
// MachineLabels Labels set on CAPI Machines only when they are created, including Machines created during scale-out or replacement. Fixed at node-pool creation. Not reconciled after provisioning. Keys under nke.nvidia.com, nke.io, nvke.nvidia.com, kubernetes.io, k8s.io, cluster.x-k8s.io and their subdomains require an explicit deployment allowlist entry for this metadata type.
MachineLabels map[string]string `json:"machineLabels,omitempty"`
// Nico NICo settings for a node pool. instanceTypeID and release are required,
// and exactly one of subnetIDs and vpcPrefixIDs is required.
Nico *NicoNodePoolProvider `json:"nico,omitempty"`
// NodeNamePrefix Prefix for generated node names: `<cluster name>-<nodeNamePrefix>-<suffix>`.
// The controller assigns suffix as a 4-digit decimal number (0000–9999).
// Generated names must fit within 63 characters (Kubernetes Node name limit).
// Maximum prefix length depends on cluster name length.
NodeNamePrefix NodeNamePrefix `json:"nodeNamePrefix"`
// RecycleBudget Maximum number of nodes recycled at once.
RecycleBudget *int `json:"recycleBudget,omitempty"`
// TeleportEnabled Whether Teleport SSH enrollment is enabled for nodes in this pool. When omitted, the server-side default for the site is applied based on pool role.
TeleportEnabled *bool `json:"teleportEnabled,omitempty"`
}
// DeleteNodeRequest Optional body of a node delete.
type DeleteNodeRequest struct {
// ForceUnreachable Treat the node as unreachable: graceful drain and shutdown are attempted, and
// failures are tolerated. Failures removing a control-plane node's etcd member are
// not tolerated.
ForceUnreachable bool `json:"forceUnreachable,omitempty"`
// MachineHealthIssue Flags the underlying machine for repair.
MachineHealthIssue *MachineHealthIssue `json:"machineHealthIssue,omitempty"`
}
// DiskSelectionStrategy Which disk the OS is installed on. Default smallest.
type DiskSelectionStrategy string
// DiskSelectionStrategyCreate Which disk the OS is installed on. Default smallest.
type DiskSelectionStrategyCreate string
// EtcdKeyRotationStatus Durable status and retained ownership of an etcd data-encryption-key rotation.
type EtcdKeyRotationStatus struct {
// CompletedAt When the terminal success or failure was recorded.
CompletedAt *time.Time `json:"completedAt,omitempty"`
// FailureReason A bounded reason without keys, arbitrary error strings, or secret identifiers.
FailureReason *EtcdKeyRotationStatusFailureReason `json:"failureReason,omitempty"`
// LastProgressAt When a phase was entered or a terminal state was recorded. Polling does not advance it.
LastProgressAt time.Time `json:"lastProgressAt"`
// Phase The last entered phase, which a failure retains. A `prepare` failure releases the mutation lock, so start a new rotation workflow after fixing it; a failure in a later phase keeps the lock for recovery of the owning workflow.
Phase EtcdKeyRotationStatusPhase `json:"phase"`
// StartedAt When rotation ownership was accepted by the controller.
StartedAt time.Time `json:"startedAt"`
// State Whether the owned rotation is running, succeeded, or failed.
State EtcdKeyRotationStatusState `json:"state"`
// WorkflowID The Temporal workflow ID owning rotation and recovery. Never use as a metric label.
WorkflowID string `json:"workflowID"`
}
// EtcdKeyRotationStatusFailureReason A bounded reason without keys, arbitrary error strings, or secret identifiers.
type EtcdKeyRotationStatusFailureReason string
// EtcdKeyRotationStatusPhase The last entered phase, which a failure retains. A `prepare` failure releases the mutation lock, so start a new rotation workflow after fixing it; a failure in a later phase keeps the lock for recovery of the owning workflow.
type EtcdKeyRotationStatusPhase string
// EtcdKeyRotationStatusState Whether the owned rotation is running, succeeded, or failed.
type EtcdKeyRotationStatusState string
// GenericError Error response body.
type GenericError struct {
// Message What went wrong.
Message string `json:"message"`
}
// InfraClusterProvider CAPI infrastructure fields for a cluster: the caller supplies the CAPI manifests
// directly. Not to be used merely because a cluster is provisioned through CAPI —
// `nico` clusters may be too. Mutually exclusive with `nico`.
type InfraClusterProvider struct {
// Cluster Arbitrary JSON manifest for the CAPI infrastructure provider Cluster resource
Cluster map[string]interface{} `json:"cluster,omitempty"`
}
// InfraControlPlaneProvider Infra provider fields for cluster-level control plane configuration. Mutually exclusive with `nico`.
type InfraControlPlaneProvider struct {
// BootstrapFiles Cloud-init write_files entries for CAPI-backed control plane nodes
BootstrapFiles []CloudInitFile `json:"bootstrapFiles,omitempty"`
// MachineTemplate Arbitrary JSON manifest for the CAPI infrastructure provider MachineTemplate resource used for control plane nodes
MachineTemplate map[string]interface{} `json:"machineTemplate,omitempty"`
// PreKubeadmCommands Cloud-init runcmd entries for CAPI-backed control plane nodes
PreKubeadmCommands []string `json:"preKubeadmCommands,omitempty"`
}
// InfraControlPlaneProviderUpdate The mutable infra provider control plane fields. Every field carries three states: omitted
// leaves the stored value alone, a value replaces it, and an empty value clears it.
// Mutually exclusive with `nico`: a request carrying both is rejected with 400.
type InfraControlPlaneProviderUpdate struct {
// BootstrapFiles Cloud-init write_files entries for CAPI-backed control plane nodes
BootstrapFiles []CloudInitFile `json:"bootstrapFiles,omitempty"`
// MachineTemplate Arbitrary JSON manifest for the CAPI infrastructure provider MachineTemplate resource used for control plane nodes
MachineTemplate map[string]interface{} `json:"machineTemplate,omitempty"`
// PreKubeadmCommands Cloud-init runcmd entries for CAPI-backed control plane nodes
PreKubeadmCommands []string `json:"preKubeadmCommands,omitempty"`
}
// InfraNodePoolProvider Infra provider fields for a node pool. Mutually exclusive with `nico`.
type InfraNodePoolProvider struct {
// BootstrapFiles Cloud-init write_files entries for CAPI-backed nodes
BootstrapFiles []CloudInitFile `json:"bootstrapFiles,omitempty"`
// MachineTemplate Arbitrary JSON manifest for the CAPI infrastructure provider MachineTemplate resource
MachineTemplate map[string]interface{} `json:"machineTemplate,omitempty"`
// PreKubeadmCommands Cloud-init runcmd entries for CAPI-backed nodes
PreKubeadmCommands []string `json:"preKubeadmCommands,omitempty"`
}
// InfraNodePoolProviderUpdate The mutable infra provider node pool fields. Every field carries three states: omitted
// leaves the stored value alone, a value replaces it, and an empty value clears it.
// Mutually exclusive with `nico`: a request carrying both is rejected with 400.
type InfraNodePoolProviderUpdate struct {
// BootstrapFiles Cloud-init write_files entries for CAPI-backed nodes
BootstrapFiles []CloudInitFile `json:"bootstrapFiles,omitempty"`
// MachineTemplate Arbitrary JSON manifest for the CAPI infra provider MachineTemplate resource
MachineTemplate map[string]interface{} `json:"machineTemplate,omitempty"`
// PreKubeadmCommands Cloud-init runcmd entries for CAPI-backed nodes
PreKubeadmCommands []string `json:"preKubeadmCommands,omitempty"`
}
// InfraNodeSetProvider Infra provider fields for a node set (read-only snapshot).
type InfraNodeSetProvider struct {
// BootstrapFiles Cloud-init write_files entries for CAPI-backed nodes
BootstrapFiles []CloudInitFile `json:"bootstrapFiles,omitempty"`
// MachineTemplate Arbitrary JSON manifest for the CAPI infrastructure provider MachineTemplate resource
MachineTemplate map[string]interface{} `json:"machineTemplate,omitempty"`
// PreKubeadmCommands Cloud-init runcmd entries for CAPI-backed nodes
PreKubeadmCommands []string `json:"preKubeadmCommands,omitempty"`
}
// LaunchLayerClusterOwner The LaunchLayer identity requests are attributed to.
type LaunchLayerClusterOwner struct {
// UserID LaunchLayer user ID.
UserID string `json:"userID,omitempty"`
// Username LaunchLayer username.
Username string `json:"username,omitempty"`
}
// LaunchLayerClusterProvider LaunchLayer identifiers for the cluster. Exactly one of vpcID or orgID
// must be set, and siteID is required. All fields are fixed at creation.
type LaunchLayerClusterProvider struct {
// CloudProviderEnabled Set true where a cloud controller manager runs, so CAPLL leaves the
// Node's provider ID to it. NVKE runs no CCM, so true is rejected.
CloudProviderEnabled bool `json:"cloudProviderEnabled,omitempty"`
// OrgID Organization in which CAPLL creates a VPC when vpcID is omitted.
OrgID string `json:"orgID,omitempty"`
// Owner The LaunchLayer identity requests are attributed to.
Owner *LaunchLayerClusterOwner `json:"owner,omitempty"`
// SecurityGroups Security groups CAPLL creates with the cluster and deletes with it.
SecurityGroups *[]LaunchLayerSecurityGroup `json:"securityGroups,omitempty"`
// SiteID Names the LaunchLayer datahall this cluster's machines come from.
SiteID string `json:"siteID"`
// VpcID An existing LaunchLayer VPC that CAPLL observes but never deletes.
VpcID string `json:"vpcID,omitempty"`
// VpcType Network type for a managed or existing VPC. When omitted, CAPLL
// treats the VPC as VIRTUALIZED. A VIRTUALIZED security group needs a
// VIRTUALIZED VPC.
VpcType *LaunchLayerClusterProviderVpcType `json:"vpcType,omitempty"`
}
// LaunchLayerClusterProviderVpcType Network type for a managed or existing VPC. When omitted, CAPLL
// treats the VPC as VIRTUALIZED. A VIRTUALIZED security group needs a
// VIRTUALIZED VPC.
type LaunchLayerClusterProviderVpcType string
// LaunchLayerControlPlaneProvider LaunchLayer settings for the control-plane nodes. Same shape as
// LaunchLayerNodePoolProvider — control-plane nodes are still
// LaunchLayer machines. Fixed at creation.
type LaunchLayerControlPlaneProvider struct {
// FulfillmentStrategy Controls how the Compute Allocation Operator places the request.
FulfillmentStrategy *LaunchLayerControlPlaneProviderFulfillmentStrategy `json:"fulfillmentStrategy,omitempty"`
// HostOSProfile Bare-metal profile, as "<name>" or "<name>:<version>". Mutually exclusive with vmProfile.
HostOSProfile string `json:"hostOSProfile,omitempty"`
// InstanceType Requests capacity of a given shape, for example "vm200".
InstanceType string `json:"instanceType"`
// SecurityGroupRefs Names of the owning cluster's managed security groups to attach, per
// network interface. Mutually exclusive with securityGroups (existing
// group IDs) per interface.
SecurityGroupRefs *LaunchLayerSecurityGroupRefs `json:"securityGroupRefs,omitempty"`
// SecurityGroups Existing LaunchLayer security group IDs to attach, per network interface.
// Mutually exclusive with securityGroupRefs on the same interface. These
// groups remain externally managed and are not deleted with the cluster.
SecurityGroups *LaunchLayerSecurityGroups `json:"securityGroups,omitempty"`
// VMProfile Virtual profile, as "<name>" or "<name>:<version>". Mutually exclusive with hostOSProfile.
VMProfile string `json:"vmProfile,omitempty"`
}
// LaunchLayerControlPlaneProviderFulfillmentStrategy Controls how the Compute Allocation Operator places the request.
type LaunchLayerControlPlaneProviderFulfillmentStrategy string
// LaunchLayerControlPlaneProviderUpdate All LaunchLayer control-plane fields are fixed at creation: a request
// carrying one is rejected with 400. A body echoed from GET must have
// them stripped.
type LaunchLayerControlPlaneProviderUpdate = map[string]interface{}
// LaunchLayerNodePoolProvider LaunchLayer settings for a node pool. instanceType is required, and
// at most one of hostOSProfile and vmProfile may be set.
type LaunchLayerNodePoolProvider struct {
// FulfillmentStrategy Controls how the Compute Allocation Operator places the request.
FulfillmentStrategy *LaunchLayerNodePoolProviderFulfillmentStrategy `json:"fulfillmentStrategy,omitempty"`
// HostOSProfile Bare-metal profile, as "<name>" or "<name>:<version>". Mutually exclusive with vmProfile.
HostOSProfile string `json:"hostOSProfile,omitempty"`
// InstanceType Requests capacity of a given shape, for example "vm200".
InstanceType string `json:"instanceType"`
// SecurityGroupRefs Names of the owning cluster's managed security groups to attach, per
// network interface. Mutually exclusive with securityGroups (existing
// group IDs) per interface.
SecurityGroupRefs *LaunchLayerSecurityGroupRefs `json:"securityGroupRefs,omitempty"`
// SecurityGroups Existing LaunchLayer security group IDs to attach, per network interface.
// Mutually exclusive with securityGroupRefs on the same interface. These
// groups remain externally managed and are not deleted with the cluster.
SecurityGroups *LaunchLayerSecurityGroups `json:"securityGroups,omitempty"`
// VMProfile Virtual profile, as "<name>" or "<name>:<version>". Mutually exclusive with hostOSProfile.
VMProfile string `json:"vmProfile,omitempty"`
}
// LaunchLayerNodePoolProviderFulfillmentStrategy Controls how the Compute Allocation Operator places the request.
type LaunchLayerNodePoolProviderFulfillmentStrategy string
// LaunchLayerNodePoolProviderUpdate All LaunchLayer node-pool fields (instanceType, hostOSProfile, vmProfile,
// fulfillmentStrategy, securityGroupRefs, securityGroups) are fixed at creation: a request
// carrying one is rejected with 400. A body echoed from GET must have them
// stripped.
type LaunchLayerNodePoolProviderUpdate = map[string]interface{}
// LaunchLayerNodeProvider LaunchLayer identifiers of the instance behind a node, reported by
// CAPLL on LaunchLayerMachine.status. Omitted when none of its fields
// are set — a node not yet provisioned has none of them.
type LaunchLayerNodeProvider struct {
// InstanceID LaunchLayer Compute instance ID.
InstanceID string `json:"instanceID,omitempty"`
// MachineID Physical machine the instance landed on. Empty for a virtual instance.
MachineID string `json:"machineID,omitempty"`
// RackID Rack the instance landed in. Populated for both virtual and physical instances.
RackID string `json:"rackID,omitempty"`
}
// LaunchLayerNodeSetProvider LaunchLayer settings in a node set (read-only snapshot).
type LaunchLayerNodeSetProvider struct {
// FulfillmentStrategy Controls how the Compute Allocation Operator places the request.
FulfillmentStrategy *LaunchLayerNodeSetProviderFulfillmentStrategy `json:"fulfillmentStrategy,omitempty"`
// HostOSProfile Bare-metal profile, as "<name>" or "<name>:<version>". Mutually exclusive with vmProfile.
HostOSProfile string `json:"hostOSProfile,omitempty"`
// InstanceType Requests capacity of a given shape, for example "vm200".
InstanceType string `json:"instanceType,omitempty"`
// SecurityGroupRefs Names of the owning cluster's managed security groups to attach, per
// network interface. Mutually exclusive with securityGroups (existing
// group IDs) per interface.
SecurityGroupRefs *LaunchLayerSecurityGroupRefs `json:"securityGroupRefs,omitempty"`
// SecurityGroups Existing LaunchLayer security group IDs to attach, per network interface.
// Mutually exclusive with securityGroupRefs on the same interface. These
// groups remain externally managed and are not deleted with the cluster.
SecurityGroups *LaunchLayerSecurityGroups `json:"securityGroups,omitempty"`
// VMProfile Virtual profile, as "<name>" or "<name>:<version>". Mutually exclusive with hostOSProfile.
VMProfile string `json:"vmProfile,omitempty"`
}
// LaunchLayerNodeSetProviderFulfillmentStrategy Controls how the Compute Allocation Operator places the request.
type LaunchLayerNodeSetProviderFulfillmentStrategy string
// LaunchLayerSecurityGroup A security group LaunchLayer creates with the cluster and deletes with it.
type LaunchLayerSecurityGroup struct {
// Name Security group name, referenced by node pools via securityGroupRefs.
// A DNS label of at most 24 characters, unique within the cluster.
Name string `json:"name"`
// NetworkType Required for a VIRTUALIZED group and rejected for a BARE_METAL group.
NetworkType *LaunchLayerSecurityGroupNetworkType `json:"networkType,omitempty"`
// Type Immutable. A virtual VPC can contain both kinds of groups.
Type LaunchLayerSecurityGroupType `json:"type"`
}
// LaunchLayerSecurityGroupNetworkType Required for a VIRTUALIZED group and rejected for a BARE_METAL group.
type LaunchLayerSecurityGroupNetworkType string
// LaunchLayerSecurityGroupType Immutable. A virtual VPC can contain both kinds of groups.
type LaunchLayerSecurityGroupType string
// LaunchLayerSecurityGroupRefs Names of the owning cluster's managed security groups to attach, per
// network interface. Mutually exclusive with securityGroups (existing
// group IDs) per interface.
type LaunchLayerSecurityGroupRefs struct {
// GpuNetworkInterface Managed security group names to attach to the GPU network interface.
GpuNetworkInterface []string `json:"gpuNetworkInterface,omitempty"`
// PrimaryNetworkInterface Managed security group names to attach to the primary network interface.
PrimaryNetworkInterface []string `json:"primaryNetworkInterface,omitempty"`
}
// LaunchLayerSecurityGroups Existing LaunchLayer security group IDs to attach, per network interface.
// Mutually exclusive with securityGroupRefs on the same interface. These
// groups remain externally managed and are not deleted with the cluster.
type LaunchLayerSecurityGroups struct {
// GpuNetworkInterface Existing security group IDs to attach to the GPU network interface.
GpuNetworkInterface []string `json:"gpuNetworkInterface,omitempty"`
// PrimaryNetworkInterface Existing security group IDs to attach to the primary network interface.
PrimaryNetworkInterface []string `json:"primaryNetworkInterface,omitempty"`
}
// ListClustersResponse A list of clusters.
type ListClustersResponse struct {
// Clusters Clusters.
Clusters []Cluster `json:"clusters"`
}
// ListConfigProfilesResponse A list of config profiles.
type ListConfigProfilesResponse struct {
// ConfigProfiles The list of config profiles
ConfigProfiles []ConfigProfile `json:"configProfiles"`
}
// ListNodePoolsResponse A list of node pools.
type ListNodePoolsResponse struct {
// NodePools Node pools.
NodePools []NodePool `json:"nodePools"`
}
// ListNodeSetsResponse A list of node sets.
type ListNodeSetsResponse struct {
// NodeSets Node sets.
NodeSets []NodeSet `json:"nodeSets"`
}
// ListNodesResponse A list of nodes.
type ListNodesResponse struct {
// Nodes Nodes.
Nodes []Node `json:"nodes"`
}
// ListReleasesResponse A list of releases.
type ListReleasesResponse struct {
// Releases The list of releases
Releases []Release `json:"releases"`
}
// MachineHealthIssue Flags the underlying machine for repair.
type MachineHealthIssue struct {
// Category Issue category: one of Hardware, Network, Performance or Other.
Category string `json:"category"`
// Summary Short summary, 2 to 256 characters.
Summary string `json:"summary"`
// Details Additional detail, 2 to 256 characters.
Details string `json:"details,omitempty"`
}
// NicoClusterProvider NICo identifiers for the cluster. Fixed at creation.
type NicoClusterProvider struct {
// OrgID Organization that owns the cluster.
OrgID string `json:"orgID,omitempty"`
// SiteID NICo site ID.
SiteID openapi_types.UUID `json:"siteID,omitempty"`
// VpcID NICo VPC ID.
VpcID openapi_types.UUID `json:"vpcID,omitempty"`
}
// NicoControlPlaneProvider NICo settings for the control-plane nodes, as reported on read. Requests use
// NicoControlPlaneProviderCreate and NicoControlPlaneProviderUpdate, which omit
// the fields that direction cannot set.
type NicoControlPlaneProvider struct {
// ConfigProfile Deprecated: Config profile name for the control-plane nodes.
ConfigProfile string `json:"configProfile,omitempty"`
// DiskSelectionStrategy Always smallest for control-plane nodes. Not configurable through the API.
DiskSelectionStrategy *DiskSelectionStrategyCreate `json:"diskSelectionStrategy,omitempty"`
// InstanceTypePreference Ordered list of acceptable NICo instance types; index 0 is the highest priority.
InstanceTypePreference []openapi_types.UUID `json:"instanceTypePreference,omitempty"`
// Release Name of a release the Operator has supplied to the management plane.
Release string `json:"release,omitempty"`
// SSHKeyGroupIDs SSH key groups for node access. Can be updated.
SSHKeyGroupIDs []openapi_types.UUID `json:"sshKeyGroupIDs,omitempty"`
// SubnetIDs Subnets, for sites without native networking.
SubnetIDs []openapi_types.UUID `json:"subnetIDs,omitempty"`
// VpcPrefixIDs VPC prefixes, for sites with native networking.
VpcPrefixIDs []openapi_types.UUID `json:"vpcPrefixIDs,omitempty"`
}
// NicoControlPlaneProviderCreate NICo settings for control-plane nodes at creation. release is required,
// and exactly one of subnetIDs and vpcPrefixIDs is required.
type NicoControlPlaneProviderCreate struct {
// ConfigProfile Deprecated: Config profile name for the control-plane nodes. Optional; when omitted, no config profile hooks run on the nodes.
ConfigProfile string `json:"configProfile,omitempty"`
// InstanceTypePreference Ordered list of acceptable NICo instance types; index 0 is the highest priority.
InstanceTypePreference []openapi_types.UUID `json:"instanceTypePreference,omitempty"`
// Release Name of a release the Operator has supplied to the management plane.
Release string `json:"release,omitempty"`
// SSHKeyGroupIDs SSH key groups for node access. Can be updated.
SSHKeyGroupIDs []openapi_types.UUID `json:"sshKeyGroupIDs,omitempty"`
// SubnetIDs Subnets, for sites without native networking.
SubnetIDs []openapi_types.UUID `json:"subnetIDs,omitempty"`
// VpcPrefixIDs VPC prefixes, for sites with native networking.
VpcPrefixIDs []openapi_types.UUID `json:"vpcPrefixIDs,omitempty"`
}
// NicoControlPlaneProviderUpdate Each field has three states: omitted leaves the stored value, a value replaces
// it, and an empty value clears it. Clearing a required field is rejected.
type NicoControlPlaneProviderUpdate struct {
// ConfigProfile Deprecated: Config profile name for the control-plane nodes.
ConfigProfile *string `json:"configProfile,omitempty"`
// InstanceTypePreference Ordered list of acceptable NICo instance types; index 0 is the highest priority.
InstanceTypePreference []openapi_types.UUID `json:"instanceTypePreference,omitempty"`
// Release Name of a release. Changing it starts a control-plane rollout.
Release *string `json:"release,omitempty"`
// SSHKeyGroupIDs SSH key groups for node access. Can be updated.
SSHKeyGroupIDs []openapi_types.UUID `json:"sshKeyGroupIDs,omitempty"`
// SubnetIDs Subnets, for sites without native networking.
SubnetIDs []openapi_types.UUID `json:"subnetIDs,omitempty"`
// VpcPrefixIDs VPC prefixes, for sites with native networking.
VpcPrefixIDs []openapi_types.UUID `json:"vpcPrefixIDs,omitempty"`
}
// NicoNodePoolProvider NICo settings for a node pool. instanceTypeID and release are required,
// and exactly one of subnetIDs and vpcPrefixIDs is required.
type NicoNodePoolProvider struct {
// ConfigProfile Deprecated: Config profile name for the pool's nodes. Optional; when omitted, no config profile hooks run on the nodes.
ConfigProfile string `json:"configProfile,omitempty"`
// DiskSelectionStrategy Which disk the OS is installed on. Default smallest.
DiskSelectionStrategy DiskSelectionStrategyCreate `json:"diskSelectionStrategy,omitempty"`
// InfinibandPartitionID InfiniBand partition. Fixed at creation.
InfinibandPartitionID *openapi_types.UUID `json:"infinibandPartitionID,omitempty"`
// InstanceTypeID NICo instance type. Fixed at creation.
InstanceTypeID openapi_types.UUID `json:"instanceTypeID,omitempty"`
// NvLinkLogicalPartitionID NVLink logical partition. An update can set or replace it, which creates a new NodeSet.
NvLinkLogicalPartitionID *openapi_types.UUID `json:"nvLinkLogicalPartitionID,omitempty"`
// Release Name of a release the Operator has supplied to the management plane.
Release string `json:"release,omitempty"`
// SSHKeyGroupIDs SSH key groups for node access. Fixed at creation.
SSHKeyGroupIDs *[]openapi_types.UUID `json:"sshKeyGroupIDs,omitempty"`
// SubnetIDs Subnets, for sites without native networking.
SubnetIDs []openapi_types.UUID `json:"subnetIDs,omitempty"`
// VpcPrefixIDs VPC prefixes, for sites with native networking.
VpcPrefixIDs []openapi_types.UUID `json:"vpcPrefixIDs,omitempty"`
}
// NicoNodePoolProviderUpdate Fields fixed at creation (instanceTypeID, infinibandPartitionID, sshKeyGroupIDs) cannot be
// sent: a request carrying one is rejected with 400. A body echoed from GET must
// have them stripped.
type NicoNodePoolProviderUpdate struct {
// ConfigProfile Deprecated: Config profile name for the pool's nodes. An empty string clears it; a pool
// may have no config profile.
ConfigProfile *string `json:"configProfile,omitempty"`
// DiskSelectionStrategy Which disk the OS is installed on. Default smallest.
DiskSelectionStrategy *DiskSelectionStrategy `json:"diskSelectionStrategy,omitempty"`
// NvLinkLogicalPartitionID Sets or replaces the NVLink logical partition. Like other node configuration,
// a change creates a new NodeSet: nodes created after it attach to the new
// partition, and existing nodes keep theirs until they are replaced. It cannot
// be cleared.
NvLinkLogicalPartitionID *openapi_types.UUID `json:"nvLinkLogicalPartitionID,omitempty"`
// Release Name of a release. Changing it rolls the pool's nodes to the new release. An
// empty string is rejected: a pool always has a release.
Release *string `json:"release,omitempty"`
// SubnetIDs Replaces the list; [] clears it. Subnets, for sites without native networking.
SubnetIDs []openapi_types.UUID `json:"subnetIDs,omitempty"`
// VpcPrefixIDs Replaces the list; [] clears it. VPC prefixes, for sites with native networking.
VpcPrefixIDs []openapi_types.UUID `json:"vpcPrefixIDs,omitempty"`
}
// NicoNodeProvider NICo identifiers of the machine behind a node. Omitted when none of its fields are set.
type NicoNodeProvider struct {
// InstanceID NICo instance ID.
InstanceID string `json:"instanceID,omitempty"`
// InstanceTypeID NICo instance type the node was provisioned with.
InstanceTypeID openapi_types.UUID `json:"instanceTypeID,omitempty"`
// MachineID NICo machine ID.
MachineID string `json:"machineID,omitempty"`
}
// NicoNodeSetProvider NICo settings in a node set (read-only snapshot).
type NicoNodeSetProvider struct {
// ConfigProfile Deprecated: Config profile name for the pool's nodes. Optional; when omitted, no config profile hooks run on the nodes.
ConfigProfile string `json:"configProfile,omitempty"`
// DiskSelectionStrategy Which disk the OS is installed on. Default smallest.
DiskSelectionStrategy DiskSelectionStrategyCreate `json:"diskSelectionStrategy,omitempty"`
// NvLinkLogicalPartitionID NVLink logical partition that nodes in this node set attach to.
NvLinkLogicalPartitionID *openapi_types.UUID `json:"nvLinkLogicalPartitionID,omitempty"`
// Release Name of a release the Operator has supplied to the management plane.
Release string `json:"release,omitempty"`
// SubnetIDs Subnets, for sites without native networking.
SubnetIDs []openapi_types.UUID `json:"subnetIDs,omitempty"`
// VpcPrefixIDs VPC prefixes, for sites with native networking.
VpcPrefixIDs []openapi_types.UUID `json:"vpcPrefixIDs,omitempty"`
}
// Node A single machine in a cluster, with lifecycle and health conditions.
type Node struct {
// ID Node ID.
ID openapi_types.UUID `json:"id"`
// NodePoolID Owning node pool. The nil UUID for control-plane nodes.
NodePoolID openapi_types.UUID `json:"nodePoolID"`
// NodeSetID Owning NodeSet. The nil UUID for control-plane nodes.
NodeSetID openapi_types.UUID `json:"nodeSetID"`
// Name Node name.
Name string `json:"name"`
// IP Node IP address.
IP string `json:"ip,omitempty"`
// ControlPlane Whether the node is a control-plane node.
ControlPlane bool `json:"controlPlane"`
// Conditions Lifecycle and health conditions.
Conditions NodeConditions `json:"conditions"`
// ControlPlaneRollout Control-plane nodes only.
ControlPlaneRollout *ControlPlaneRolloutStatus `json:"controlPlaneRollout,omitempty"`
// LaunchLayer LaunchLayer instanceID, machineID and rackID. Omitted when none are set.
LaunchLayer *LaunchLayerNodeProvider `json:"launchLayer,omitempty"`
// Nico NICo instanceID, machineID and instanceTypeID. Omitted when none are set.
Nico *NicoNodeProvider `json:"nico,omitempty"`
}
// NodeAgentConfig Desired control-plane node-agent configuration.
type NodeAgentConfig struct {
// Version Exact agent release version. An empty value disables agent convergence.
Version *string `json:"version,omitempty"`
}
// NodeAgentUpgradeStatus The active agent upgrade and latest retry error.
type NodeAgentUpgradeStatus struct {
// ErrorMessage Latest failure message while retries continue.
ErrorMessage string `json:"errorMessage"`
// Method Installation method from the controller configuration.
Method string `json:"method"`
// NodeID ID of the selected control-plane node.
NodeID openapi_types.UUID `json:"nodeId"`
// Phase Pending before installation starts. Running includes retries.
Phase NodeAgentUpgradeStatusPhase `json:"phase"`
// TargetVersion Exact version accepted for this upgrade.
TargetVersion string `json:"targetVersion"`
}
// NodeAgentUpgradeStatusPhase Pending before installation starts. Running includes retries.
type NodeAgentUpgradeStatusPhase string
// NodeConditions Each is a Condition. A node normally moves through pending, provisioningClaimed,
// provisioning, readyToJoin, joined and provisioned; deletion moves through
// deleteRequested (control-plane nodes) and deleting.
type NodeConditions struct {
// Adopted Control-plane nodes of an adopted cluster only. True for a node that ran before NVKE adopted the cluster. Its operator manages it outside NVKE, which never upgrades, replaces or deletes it.
Adopted *Condition `json:"adopted,omitempty"`
// ControlPlanePreferredReplacement Control-plane nodes only. True while the node is a control-plane rebalance surge — a more-preferred replacement brought up to shed a less-preferred member.
ControlPlanePreferredReplacement *Condition `json:"controlPlanePreferredReplacement,omitempty"`
// ControlPlaneRolloutRequired Control-plane nodes only. True when the node differs from the desired configuration.
ControlPlaneRolloutRequired *Condition `json:"controlPlaneRolloutRequired,omitempty"`
// DeleteRequested A delete has been accepted but teardown has not started. Control-plane deletes
// are recorded here first and started one at a time; `deleting` then reports the
// teardown. At most one of deleting and deleteRequested is True.
DeleteRequested Condition `json:"deleteRequested"`
// Deleting The node is being deleted.
Deleting Condition `json:"deleting"`
// Joined The node has joined the cluster.
Joined Condition `json:"joined"`
// KubernetesReady The kubelet reports Ready.
KubernetesReady Condition `json:"kubernetesReady"`
// KubernetesUnschedulable Reflects the Kubernetes node's unschedulable (cordoned) state.
KubernetesUnschedulable Condition `json:"kubernetesUnschedulable"`
// MarkedForRecycling The node is marked for replacement.
MarkedForRecycling Condition `json:"markedForRecycling"`
// MarkedForRepair The node is marked for repair.
MarkedForRepair Condition `json:"markedForRepair"`
// NodeAgentReady The NVKE node agent is healthy.
NodeAgentReady Condition `json:"nodeAgentReady"`
// Pending The node is waiting to be provisioned.
Pending Condition `json:"pending"`
// Provisioned The node is provisioned.
Provisioned Condition `json:"provisioned"`
// Provisioning The node is provisioning.
Provisioning Condition `json:"provisioning"`
// ProvisioningClaimed A provisioning operation has claimed the node.
ProvisioningClaimed Condition `json:"provisioningClaimed"`
// ReadyToJoin The node is ready to join the cluster.
ReadyToJoin Condition `json:"readyToJoin"`
// Rebooting The node is rebooting.
Rebooting Condition `json:"rebooting"`
// TeleportRegistered The condition indicating whether the node is registered with Teleport for SSH. True when confirmed registered; includes lastTransitionTime and message.
TeleportRegistered *Condition `json:"teleportRegistered,omitempty"`
}
// NodeNamePrefix Prefix for generated node names: `<cluster name>-<nodeNamePrefix>-<suffix>`.
// The controller assigns suffix as a 4-digit decimal number (0000–9999).
// Generated names must fit within 63 characters (Kubernetes Node name limit).
// Maximum prefix length depends on cluster name length.
type NodeNamePrefix = string
// NodePool A group of worker nodes sharing an instance type, release and Kubernetes version.
type NodePool struct {
// ID Node pool ID.
ID openapi_types.UUID `json:"id"`
// ClusterID Parent cluster.
ClusterID openapi_types.UUID `json:"clusterID"`
// Name Node pool name. Unique within the cluster. Immutable.
Name string `json:"name"`
// KubernetesVersion Desired Kubernetes version for the pool's nodes. Inherits the cluster's version on create.
KubernetesVersion string `json:"kubernetesVersion"`
// SystemReservedMemory Memory reserved for system daemons. Nodes reserve 16Gi when omitted.
SystemReservedMemory *string `json:"systemReservedMemory,omitempty"`
// KubeReservedMemory Memory reserved for Kubernetes components. Empty when the 2Gi default applies.
KubeReservedMemory *string `json:"kubeReservedMemory,omitempty"`
// ControlPlane Whether the nodes in this pool are control plane nodes
ControlPlane bool `json:"controlPlane"`
// NodeLabels Labels applied to the pool's nodes, as a map of keys to values. Set at creation.
NodeLabels map[string]string `json:"nodeLabels"`
// NodeTaints Taints applied to the pool's nodes. Set at creation.
NodeTaints []NodeTaint `json:"nodeTaints"`
// Description Free-text description.
Description *string `json:"description,omitempty"`
// DesiredNodeCount Number of nodes.
DesiredNodeCount int `json:"desiredNodeCount"`
// AutoProvisionDisabled Disables automatic provisioning for the pool.
AutoProvisionDisabled bool `json:"autoProvisionDisabled"`
// CurrentNodeSetID The active NodeSet.
CurrentNodeSetID *openapi_types.UUID `json:"currentNodeSetID"`
// AutoModeDisabled Disables auto-mode (automatic node recycling).
AutoModeDisabled bool `json:"autoModeDisabled"`
// ProvisioningMonitorDisabled When true, nodes stuck in provisioning past the timeout are not recycled automatically.
ProvisioningMonitorDisabled bool `json:"provisioningMonitorDisabled"`
// RecycleBudget Maximum number of nodes recycled at once.
RecycleBudget int `json:"recycleBudget"`
// MaxSurge Nodes allowed above desiredNodeCount during a rollout. 0 means sequential: each
// node is torn down before its replacement is provisioned.
MaxSurge *int `json:"maxSurge,omitempty"`
// TeleportEnabled Whether Teleport SSH enrollment is enabled for nodes in this pool.
TeleportEnabled *bool `json:"teleportEnabled,omitempty"`
// Conditions Lifecycle conditions: provisioning, provisioned, deleting.
Conditions NodePoolConditions `json:"conditions"`
// Infra Infra provider node pool fields.
Infra *InfraNodePoolProvider `json:"infra,omitempty"`
// LaunchLayer LaunchLayer settings for the pool.
LaunchLayer *LaunchLayerNodePoolProvider `json:"launchLayer,omitempty"`
// MachineAnnotations Annotations set on CAPI Machines only when they are created, including Machines created during scale-out or replacement. Fixed at node-pool creation. Not reconciled after provisioning. Keys under nke.nvidia.com, nke.io, nvke.nvidia.com, kubernetes.io, k8s.io, cluster.x-k8s.io and their subdomains require an explicit deployment allowlist entry for this metadata type.
MachineAnnotations map[string]string `json:"machineAnnotations,omitempty"`
// MachineLabels Labels set on CAPI Machines only when they are created, including Machines created during scale-out or replacement. Fixed at node-pool creation. Not reconciled after provisioning. Keys under nke.nvidia.com, nke.io, nvke.nvidia.com, kubernetes.io, k8s.io, cluster.x-k8s.io and their subdomains require an explicit deployment allowlist entry for this metadata type.
MachineLabels map[string]string `json:"machineLabels,omitempty"`
// Nico NICo settings for the pool.
Nico *NicoNodePoolProvider `json:"nico,omitempty"`
// NodeNamePrefix Node names are `<cluster>-<prefix>-<NNNN>` (four-digit suffix), at most 63 characters in total.
NodeNamePrefix NodeNamePrefix `json:"nodeNamePrefix"`
// ObservedNodeCount Observed number of nodes in the pool, including pending and deleting nodes. May exceed desiredNodeCount during a rollout or after a scale-down request. Omitted when not observed.
ObservedNodeCount *int `json:"observedNodeCount,omitempty"`
// ReadyNodeCount Number of nodes in the pool whose observed Kubernetes Ready condition is True. Does not additionally require provisioning completion or schedulability. Omitted when not observed.
ReadyNodeCount *int `json:"readyNodeCount,omitempty"`
// UpdatedNodeCount Number of nodes in the pool matching the requested configuration, including Kubernetes version, image and initialization settings. Includes pending, provisioning and deleting nodes when their configuration matches; does not require readiness or verify running software. Omitted when not observed.
UpdatedNodeCount *int `json:"updatedNodeCount,omitempty"`
}
// NodePoolConditions Lifecycle conditions of a node pool. Each is a Condition.
type NodePoolConditions struct {
// Deleting The node pool is being deleted.
Deleting Condition `json:"deleting"`
// Provisioned The node pool is provisioned.
Provisioned Condition `json:"provisioned"`
// Provisioning The node pool is provisioning.
Provisioning Condition `json:"provisioning"`
}
// NodePoolCreateConfig A node pool and its provider settings. The provider follows the cluster's
// and is fixed at creation.
type NodePoolCreateConfig struct {
// Name Unique within the cluster. Immutable.
Name string `json:"name"`
// SystemReservedMemory Memory reserved for system daemons. Nodes reserve 16Gi when omitted.
SystemReservedMemory string `json:"systemReservedMemory,omitempty"`
// KubeReservedMemory Memory reserved for Kubernetes components. Default 2Gi.
KubeReservedMemory string `json:"kubeReservedMemory,omitempty"`
// ControlPlane Whether the nodes in this pool should be added as Kubernetes control plane nodes
ControlPlane bool `json:"controlPlane,omitempty"`
// NodeLabels Labels applied to the pool's nodes at creation, as a map of keys to values. Keys under nvke.nvidia.com, nke.nvidia.com (legacy), nke.io (legacy), kubernetes.io, k8s.io and their subdomains are reserved, unless the deployment allows specific Kubernetes keys.
NodeLabels map[string]string `json:"nodeLabels,omitempty"`
// NodeTaints Taints applied to the pool's nodes at creation. Not allowed on control-plane pools. Keys under nvke.nvidia.com, nke.nvidia.com (legacy), nke.io (legacy), kubernetes.io, k8s.io and their subdomains are reserved. Each key and effect pair may appear only once.
NodeTaints []NodeTaint `json:"nodeTaints,omitempty"`
// DesiredNodeCount The desired number of nodes in the pool. For control-plane pools, aggregate capacity above 1 requires controlPlaneVIP on the cluster unless the development-only allowControlPlaneWithoutVIP setting is enabled.
DesiredNodeCount int `json:"desiredNodeCount"`
// Description Free-text description.
Description *string `json:"description,omitempty"`
// AutoProvisionDisabled Disables automatic provisioning for the pool.
AutoProvisionDisabled *bool `json:"autoProvisionDisabled,omitempty"`
// AutoModeDisabled Disables auto-mode (automatic node recycling).
AutoModeDisabled *bool `json:"autoModeDisabled,omitempty"`
// Infra Infra provider fields for a node pool. Mutually exclusive with `nico`.
Infra *InfraNodePoolProvider `json:"infra,omitempty"`
// LaunchLayer LaunchLayer settings for a node pool. instanceType is required, and
// at most one of hostOSProfile and vmProfile may be set.
LaunchLayer *LaunchLayerNodePoolProvider `json:"launchLayer,omitempty"`
// MachineAnnotations Annotations set on CAPI Machines only when they are created, including Machines created during scale-out or replacement. Fixed at node-pool creation. Not reconciled after provisioning. Keys under nke.nvidia.com, nke.io, nvke.nvidia.com, kubernetes.io, k8s.io, cluster.x-k8s.io and their subdomains require an explicit deployment allowlist entry for this metadata type.
MachineAnnotations map[string]string `json:"machineAnnotations,omitempty"`
// MachineLabels Labels set on CAPI Machines only when they are created, including Machines created during scale-out or replacement. Fixed at node-pool creation. Not reconciled after provisioning. Keys under nke.nvidia.com, nke.io, nvke.nvidia.com, kubernetes.io, k8s.io, cluster.x-k8s.io and their subdomains require an explicit deployment allowlist entry for this metadata type.
MachineLabels map[string]string `json:"machineLabels,omitempty"`
// Nico NICo settings for a node pool. instanceTypeID and release are required,
// and exactly one of subnetIDs and vpcPrefixIDs is required.
Nico *NicoNodePoolProvider `json:"nico,omitempty"`
// NodeNamePrefix Prefix for generated node names: `<cluster name>-<nodeNamePrefix>-<suffix>`.
// The controller assigns suffix as a 4-digit decimal number (0000–9999).
// Generated names must fit within 63 characters (Kubernetes Node name limit).
// Maximum prefix length depends on cluster name length.
NodeNamePrefix NodeNamePrefix `json:"nodeNamePrefix"`
// ProvisioningMonitorDisabled When true, nodes stuck in provisioning past the timeout are not recycled automatically.
ProvisioningMonitorDisabled *bool `json:"provisioningMonitorDisabled,omitempty"`
// RecycleBudget Maximum number of nodes recycled at once.
RecycleBudget *int `json:"recycleBudget,omitempty"`
// TeleportEnabled Whether Teleport SSH enrollment is enabled for nodes in this pool. When omitted, the server-side default for the site is applied based on pool role.
TeleportEnabled *bool `json:"teleportEnabled,omitempty"`
}
// NodeSet Read-only, immutable snapshot of a node pool's configuration at a point in time.
type NodeSet struct {
// DesiredCount Number of nodes in the snapshot.
DesiredCount int `json:"desiredCount"`
// ID NodeSet ID.
ID openapi_types.UUID `json:"id"`
// Infra Infra provider node set fields.
Infra *InfraNodeSetProvider `json:"infra,omitempty"`
// KubeReservedMemory Memory reserved for Kubernetes components. Empty when the 2Gi default applies.
KubeReservedMemory *string `json:"kubeReservedMemory,omitempty"`
// KubernetesVersion Kubernetes version in the snapshot.
KubernetesVersion string `json:"kubernetesVersion"`
// LaunchLayer LaunchLayer settings in the snapshot.
LaunchLayer *LaunchLayerNodeSetProvider `json:"launchLayer,omitempty"`
// Nico NICo settings in the snapshot.
Nico *NicoNodeSetProvider `json:"nico,omitempty"`
// NodePoolID Owning node pool.
NodePoolID openapi_types.UUID `json:"nodePoolID"`
// SystemReservedMemory Memory reserved for system daemons. Nodes reserve 16Gi when omitted.
SystemReservedMemory string `json:"systemReservedMemory"`
// TeleportEnabled Whether Teleport SSH enrollment is enabled for nodes in this node set.
TeleportEnabled *bool `json:"teleportEnabled,omitempty"`
}
// NodeSpireAgentStatus One node's SPIRE agent, as reported live by its node agent.
type NodeSpireAgentStatus struct {
// NodeID Node ID.
NodeID openapi_types.UUID `json:"nodeID"`
// Name Node name.
Name string `json:"name"`
// Reachable The node agent answered. When false, only `message` is set.
Reachable bool `json:"reachable"`
// ServerAddress SPIRE server address in the node's agent config.
ServerAddress *string `json:"serverAddress,omitempty"`
// ServerPort SPIRE server port in the node's agent config.
ServerPort *int `json:"serverPort,omitempty"`
// HasValidSVID The running SPIRE agent uses the config above and serves an
// unexpired X.509 SVID, so it holds a certificate from that server.
HasValidSVID bool `json:"hasValidSVID"`
// SvidExpiresAt Expiry of that SVID.
SvidExpiresAt *time.Time `json:"svidExpiresAt,omitempty"`
// Message Why the node is unreachable or has no valid SVID.
Message *string `json:"message,omitempty"`
}
// NodeTaint A Kubernetes taint applied to nodes in a pool.
type NodeTaint struct {
// Effect Kubernetes taint effect.
Effect NodeTaintEffect `json:"effect"`
// Key Taint key.
Key string `json:"key"`
// Value Taint value. Empty is valid.
Value string `json:"value,omitempty"`
}
// NodeTaintEffect Kubernetes taint effect.
type NodeTaintEffect string
// Release A release available to the management plane.
type Release struct {
// Name The name of the release
Name string `json:"name"`
}
// SelfAdoptClusterRequest What NVKE does not read from the cluster it adopts. The control-plane
// nodes, the Kubernetes version and the pod and service CIDRs come from the
// cluster. In `nico`, `siteID` and `vpcID` are required: NVKE creates worker
// machines in that NICo site and VPC, and workers there must reach the
// cluster's API server. `orgID` is optional. NVKE only records it, returns
// it and labels its cluster metrics with it.
type SelfAdoptClusterRequest struct {
// CniPlugin The CNI the cluster runs. Defaults to ovn-kubernetes. Workers install its
// packages, and on ovn-kubernetes NVKE configures Open vSwitch and the OVN
// zone label on them.
CniPlugin SelfAdoptClusterRequestCniPlugin `json:"cniPlugin,omitempty"`
// CniVersion The version of the CNI the cluster runs, as X.Y.Z. Defaults as for `createCluster`.
CniVersion *string `json:"cniVersion,omitempty"`
// EtcdEncrypted Whether the cluster encrypts Secrets in etcd.
EtcdEncrypted bool `json:"etcdEncrypted"`
// Name Cluster name. Lowercase DNS label, unique per management plane. Worker node names are derived from it.
Name string `json:"name"`
// Nico NICo identifiers for the cluster. Fixed at creation.
Nico NicoClusterProvider `json:"nico"`
}
// SelfAdoptClusterRequestCniPlugin The CNI the cluster runs. Defaults to ovn-kubernetes. Workers install its
// packages, and on ovn-kubernetes NVKE configures Open vSwitch and the OVN
// zone label on them.
type SelfAdoptClusterRequestCniPlugin string
// SpireServer A SPIRE server address the cluster's SPIRE agents dial.
type SpireServer struct {
// Address Host name or IP address of the SPIRE server.
Address string `json:"address"`
// Port SPIRE server port.
Port int `json:"port"`
}
// UpdateClusterControlPlaneConfig Changes to `release` or the Kubernetes version start a control-plane
// rollout. All fields are optional. A provider payload that does not match the
// cluster's provider is rejected with 400.
// Rollout-triggering changes require controlPlaneVIP unless the development-only
// allowControlPlaneWithoutVIP setting is enabled. maxSurge alone does not
// trigger a rollout and remains mutable without a VIP.
type UpdateClusterControlPlaneConfig struct {
// AutoScaleDownDisabled When true, automatic control-plane scale-down is disabled, so decreasing desiredCount leaves the surplus nodes in place. When scale-down is enabled it never reduces the control plane below the fault-tolerant floor of three nodes.
AutoScaleDownDisabled *bool `json:"autoScaleDownDisabled,omitempty"`
// DesiredCount The desired number of cluster-level control plane nodes. Must be at least 1.
// Increasing the count above 1 requires controlPlaneVIP on the cluster unless the development-only allowControlPlaneWithoutVIP setting is enabled.
DesiredCount *int `json:"desiredCount,omitempty"`
// Infra The mutable infra provider control plane fields. Every field carries three states: omitted
// leaves the stored value alone, a value replaces it, and an empty value clears it.
// Mutually exclusive with `nico`: a request carrying both is rejected with 400.
Infra *InfraControlPlaneProviderUpdate `json:"infra,omitempty"`
// LaunchLayer All LaunchLayer control-plane fields are fixed at creation: a request
// carrying one is rejected with 400. A body echoed from GET must have
// them stripped.
LaunchLayer *LaunchLayerControlPlaneProviderUpdate `json:"launchLayer,omitempty"`
// MaxSurge Extra control-plane nodes allowed during a rollout (0 or 1).
MaxSurge *int `json:"maxSurge,omitempty"`
// Nico Each field has three states: omitted leaves the stored value, a value replaces
// it, and an empty value clears it. Clearing a required field is rejected.
Nico *NicoControlPlaneProviderUpdate `json:"nico,omitempty"`
// NodeAgentConfig Desired control-plane node-agent configuration.
NodeAgentConfig *NodeAgentConfig `json:"nodeAgentConfig,omitempty"`
// NodeRebalanceDisabled When true, steady-state control-plane instance-type rebalancing is disabled. When unset (the default) the controller surges a more-preferred replacement for a node on a less-preferred instance type and sheds the old node through the control-plane delete path, independent of autoScaleDownDisabled. Existing clusters are opted out at migration time.
NodeRebalanceDisabled *bool `json:"nodeRebalanceDisabled,omitempty"`
// ProvisioningMonitorDisabled When true, nodes stuck in provisioning past the timeout are not replaced automatically.
ProvisioningMonitorDisabled *bool `json:"provisioningMonitorDisabled,omitempty"`
// SystemReservedMemory Memory reserved for system daemons.
SystemReservedMemory *string `json:"systemReservedMemory,omitempty"`
// TeleportEnabled Enable or disable Teleport SSH enrollment for control plane nodes.
TeleportEnabled *bool `json:"teleportEnabled,omitempty"`
}
// UpdateClusterRequest Changes to a cluster. All fields are optional; unknown fields are rejected.
type UpdateClusterRequest struct {
// ControlPlaneConfig Changes to `release` or the Kubernetes version start a control-plane
// rollout. All fields are optional. A provider payload that does not match the
// cluster's provider is rejected with 400.
// Rollout-triggering changes require controlPlaneVIP unless the development-only
// allowControlPlaneWithoutVIP setting is enabled. maxSurge alone does not
// trigger a rollout and remains mutable without a VIP.
ControlPlaneConfig *UpdateClusterControlPlaneConfig `json:"controlPlaneConfig,omitempty"`
// ControlPlaneKubernetesVersion Target control-plane version, as X.Y.Z with no leading "v". Must be newer than
// the current version by at most one minor version and keep every worker pool
// within 3 minor versions.
// The cluster must have controlPlaneVIP configured unless the development-only
// allowControlPlaneWithoutVIP setting is enabled.
ControlPlaneKubernetesVersion *string `json:"controlPlaneKubernetesVersion,omitempty"`
// EnableCPNodeRecycling Turn automatic control-plane node replacement on or off.
EnableCPNodeRecycling *bool `json:"enableCPNodeRecycling,omitempty"`
// EnableEtcdEncryption `true` starts one-way etcd encryption on a provisioned cluster. `false` is
// rejected. `true` on an already-encrypted cluster does nothing. Other updates
// return 409 while it runs.
EnableEtcdEncryption *bool `json:"enableEtcdEncryption,omitempty"`
// EnableOidc `true` starts one-way OIDC authentication enablement. `false` is rejected.
// Cannot be combined with a control-plane upgrade or etcd enablement. Other
// updates return 409 while it runs.
EnableOidc *bool `json:"enableOidc,omitempty"`
// Network The cluster network cannot be changed after creation; any network value in an
// update is rejected.
Network *ClusterNetworkCreateConfig `json:"network,omitempty"`
// TeleportEnabled Enable or disable Teleport SSH enrollment for nodes in this cluster.
TeleportEnabled *bool `json:"teleportEnabled,omitempty"`
}
// UpdateInProgress The mutually exclusive cluster operation in progress. Absent when none.
// `etcd_key_rotation` is reported while an etcd data-encryption-key rotation
// holds the lock, and also after a rotation that failed after `prepare`,
// which keeps the lock until its owning workflow is recovered (see
// `conditions.etcdKeyRotation`). A `prepare` failure releases the lock.
// Exhaustive client switches over `type` must handle it.
type UpdateInProgress struct {
// Type Operation in progress. `certificate_renewal` is reported while a
// scheduled or forced certificate-renewal cycle holds the lock, and
// also after a failed cycle whose lock is retained until an operator
// clears it. Clients that switch exhaustively over this value must
// handle it.
Type UpdateInProgressType `json:"type"`
// Message Detail.
Message *string `json:"message,omitempty"`
// StartedAt Start time.
StartedAt time.Time `json:"startedAt"`
}
// UpdateInProgressType Operation in progress. `certificate_renewal` is reported while a
// scheduled or forced certificate-renewal cycle holds the lock, and
// also after a failed cycle whose lock is retained until an operator
// clears it. Clients that switch exhaustively over this value must
// handle it.
type UpdateInProgressType string
// UpdateNodePoolRequest All fields are optional. A provider payload that does not match the node pool's
// cluster is rejected with 400.
// Updating a control-plane pool in a way that creates a replacement node set
// requires controlPlaneVIP unless the development-only allowControlPlaneWithoutVIP
// setting is enabled. maxSurge alone does not create a replacement
// and remains mutable without a VIP.
type UpdateNodePoolRequest struct {
// AutoModeDisabled Disables auto-mode (automatic node recycling).
AutoModeDisabled *bool `json:"autoModeDisabled,omitempty"`
// AutoProvisionDisabled Disables automatic provisioning for the pool.
AutoProvisionDisabled *bool `json:"autoProvisionDisabled,omitempty"`
// Description Free-text description.
Description *string `json:"description,omitempty"`
// DesiredNodeCount The desired number of nodes in the pool. Increasing aggregate control-plane capacity above 1 requires controlPlaneVIP on the cluster unless the development-only allowControlPlaneWithoutVIP setting is enabled.
DesiredNodeCount *int `json:"desiredNodeCount,omitempty"`
// Infra The mutable infra provider node pool fields. Every field carries three states: omitted
// leaves the stored value alone, a value replaces it, and an empty value clears it.
// Mutually exclusive with `nico`: a request carrying both is rejected with 400.
Infra *InfraNodePoolProviderUpdate `json:"infra,omitempty"`
// KubeReservedMemory Memory reserved for Kubernetes components. An empty string restores the 2Gi default.
KubeReservedMemory *string `json:"kubeReservedMemory,omitempty"`
// KubernetesVersion Desired Kubernetes version for the pool's nodes, as X.Y.Z with no leading "v".
// Must not be a newer minor or major version than the cluster's control plane,
// and cannot change while the control plane upgrades. An older version is
// accepted, to roll the pool back.
KubernetesVersion *string `json:"kubernetesVersion,omitempty"`
// LaunchLayer All LaunchLayer node-pool fields (instanceType, hostOSProfile, vmProfile,
// fulfillmentStrategy, securityGroupRefs, securityGroups) are fixed at creation: a request
// carrying one is rejected with 400. A body echoed from GET must have them
// stripped.
LaunchLayer *LaunchLayerNodePoolProviderUpdate `json:"launchLayer,omitempty"`
// MaxSurge Nodes allowed above desiredNodeCount during a rollout. 0 means sequential: each
// node is torn down before its replacement is provisioned.
MaxSurge *int `json:"maxSurge,omitempty"`
// Nico Fields fixed at creation (instanceTypeID, infinibandPartitionID, sshKeyGroupIDs) cannot be
// sent: a request carrying one is rejected with 400. A body echoed from GET must
// have them stripped.
Nico *NicoNodePoolProviderUpdate `json:"nico,omitempty"`
// ProvisioningMonitorDisabled When true, nodes stuck in provisioning past the timeout are not recycled automatically.
ProvisioningMonitorDisabled *bool `json:"provisioningMonitorDisabled,omitempty"`
// RecycleBudget Maximum number of nodes recycled at once.
RecycleBudget *int `json:"recycleBudget,omitempty"`
// SystemReservedMemory Memory reserved for system daemons. Nodes reserve 16Gi when omitted.
SystemReservedMemory *string `json:"systemReservedMemory,omitempty"`
// TeleportEnabled Enable or disable Teleport SSH enrollment for nodes in this pool.
TeleportEnabled *bool `json:"teleportEnabled,omitempty"`
}
// Forbidden Error response body.
type Forbidden = GenericError
// Unauthorized Error response body.
type Unauthorized = GenericError
// ListClustersParams defines parameters for ListClusters.
type ListClustersParams struct {
// Name Filter clusters by name (exact match)
Name *string `form:"name,omitempty" json:"name,omitempty"`
}
// ListNodePoolsParams defines parameters for ListNodePools.
type ListNodePoolsParams struct {
// ClusterID Filter by cluster ID
ClusterID *openapi_types.UUID `form:"clusterID,omitempty" json:"clusterID,omitempty"`
// ClusterName Filter by cluster name (exact match)
ClusterName *string `form:"clusterName,omitempty" json:"clusterName,omitempty"`
// Name Filter by node pool name (exact match)
Name *string `form:"name,omitempty" json:"name,omitempty"`
}
// ListNodeSetsParams defines parameters for ListNodeSets.
type ListNodeSetsParams struct {
// NodePoolID Filter by node pool ID
NodePoolID *openapi_types.UUID `form:"nodePoolID,omitempty" json:"nodePoolID,omitempty"`
}
// ListNodesParams defines parameters for ListNodes.
type ListNodesParams struct {
// ClusterID Filter by cluster ID
ClusterID *openapi_types.UUID `form:"clusterID,omitempty" json:"clusterID,omitempty"`
// NodePoolID Filter by node pool ID
NodePoolID *openapi_types.UUID `form:"nodePoolID,omitempty" json:"nodePoolID,omitempty"`
// ClusterName Filter by cluster name (exact match)
ClusterName *string `form:"clusterName,omitempty" json:"clusterName,omitempty"`
// Name Filter by node name (exact match)
Name *string `form:"name,omitempty" json:"name,omitempty"`
// ControlPlane `true` returns only control-plane nodes; `false` only workers
ControlPlane *bool `form:"controlPlane,omitempty" json:"controlPlane,omitempty"`
}
// CreateClusterJSONRequestBody defines body for CreateCluster for application/json ContentType.
type CreateClusterJSONRequestBody = CreateClusterRequest
// SelfAdoptClusterJSONRequestBody defines body for SelfAdoptCluster for application/json ContentType.
type SelfAdoptClusterJSONRequestBody = SelfAdoptClusterRequest
// UpdateClusterJSONRequestBody defines body for UpdateCluster for application/json ContentType.
type UpdateClusterJSONRequestBody = UpdateClusterRequest
// UpdateClusterSpireServerJSONRequestBody defines body for UpdateClusterSpireServer for application/json ContentType.
type UpdateClusterSpireServerJSONRequestBody = SpireServer
// CreateNodePoolJSONRequestBody defines body for CreateNodePool for application/json ContentType.
type CreateNodePoolJSONRequestBody = CreateNodePoolRequest
// UpdateNodePoolJSONRequestBody defines body for UpdateNodePool for application/json ContentType.
type UpdateNodePoolJSONRequestBody = UpdateNodePoolRequest
// DeleteNodeJSONRequestBody defines body for DeleteNode for application/json ContentType.
type DeleteNodeJSONRequestBody = DeleteNodeRequest