Documentation
¶
Overview ¶
Package siteprofile validates provider-neutral site inventory and renders a deterministic installation plan. It deliberately does not apply resources.
Index ¶
- Constants
- Variables
- type Availability
- type Check
- type ControlPlaneAPIHA
- type HostRuntimeBaseline
- type Identity
- type Inventory
- type Metadata
- type Network
- type Node
- type OCS
- type Observability
- type Operations
- type Phase
- type Plan
- type Profile
- type PublicIngressHA
- type Report
- type ServingCertificateLifecycle
- type Spec
- type Storage
Constants ¶
const ( APIVersion = "cloudring.io/v1alpha1" Kind = "ProviderSiteProfile" PlanSchema = "cloudring.site-plan/v1alpha1" RequiredNonClaim = "preflight-and-plan-only" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Availability ¶
type Availability struct {
MinimumControlPlaneNodes int `json:"minimumControlPlaneNodes" yaml:"minimumControlPlaneNodes"`
MinimumWorkerNodes int `json:"minimumWorkerNodes" yaml:"minimumWorkerNodes"`
MinimumGatewayNodes int `json:"minimumGatewayNodes" yaml:"minimumGatewayNodes"`
MinimumFailureDomains int `json:"minimumFailureDomains" yaml:"minimumFailureDomains"`
}
type ControlPlaneAPIHA ¶
type ControlPlaneAPIHA struct {
Mode string `json:"mode" yaml:"mode"`
EndpointRef string `json:"endpointRef" yaml:"endpointRef"`
IPv4AddressRef string `json:"ipv4AddressRef" yaml:"ipv4AddressRef"`
IPv6AddressRef string `json:"ipv6AddressRef" yaml:"ipv6AddressRef"`
ServingCertificateSANRefs []string `json:"servingCertificateSANRefs" yaml:"servingCertificateSANRefs"`
CNIBootstrapEndpointRef string `json:"cniBootstrapEndpointRef" yaml:"cniBootstrapEndpointRef"`
ControlPlaneTransportDeviceRef string `json:"controlPlaneTransportDeviceRef" yaml:"controlPlaneTransportDeviceRef"`
CNIDeviceRefs []string `json:"cniDeviceRefs" yaml:"cniDeviceRefs"`
HealthCheckRef string `json:"healthCheckRef" yaml:"healthCheckRef"`
FailoverPolicyRef string `json:"failoverPolicyRef" yaml:"failoverPolicyRef"`
ServingCertificateLifecycle ServingCertificateLifecycle `json:"servingCertificateLifecycle" yaml:"servingCertificateLifecycle"`
}
ControlPlaneAPIHA binds both the kubeadm endpoint and every component which needs the API before Kubernetes Service routing exists to the same health-checked endpoint. A node management or provisioning address is not a control-plane HA endpoint.
type HostRuntimeBaseline ¶
type HostRuntimeBaseline struct {
InotifyMaxUserInstances int `json:"inotifyMaxUserInstances" yaml:"inotifyMaxUserInstances"`
PersistenceRef string `json:"persistenceRef" yaml:"persistenceRef"`
VerificationRef string `json:"verificationRef" yaml:"verificationRef"`
}
HostRuntimeBaseline declares the minimum portable host capacity needed by the container and virtualization runtimes. Downstream installers own the operating-system-specific persistence and verification implementations.
type Network ¶
type Network struct {
DualStack bool `json:"dualStack" yaml:"dualStack"`
ManagementPlaneRef string `json:"managementPlaneRef" yaml:"managementPlaneRef"`
ProvisioningPlaneRef string `json:"provisioningPlaneRef" yaml:"provisioningPlaneRef"`
TenantPlaneRef string `json:"tenantPlaneRef" yaml:"tenantPlaneRef"`
PublicIngressRef string `json:"publicIngressRef" yaml:"publicIngressRef"`
ControlPlaneAPIHA ControlPlaneAPIHA `json:"controlPlaneAPIHA" yaml:"controlPlaneAPIHA"`
PublicIngressHA PublicIngressHA `json:"publicIngressHA" yaml:"publicIngressHA"`
}
type Node ¶
type Node struct {
ID string `json:"id" yaml:"id"`
FailureDomain string `json:"failureDomain" yaml:"failureDomain"`
Roles []string `json:"roles" yaml:"roles"`
ProviderResourceRef string `json:"providerResourceRef" yaml:"providerResourceRef"`
ManagementAddressRef string `json:"managementAddressRef" yaml:"managementAddressRef"`
ProvisioningAddressRef string `json:"provisioningAddressRef" yaml:"provisioningAddressRef"`
}
type Observability ¶
type Operations ¶
type Operations struct {
GitOpsSourceRef string `json:"gitOpsSourceRef" yaml:"gitOpsSourceRef"`
BootstrapPlanRef string `json:"bootstrapPlanRef" yaml:"bootstrapPlanRef"`
UpgradePlanRef string `json:"upgradePlanRef" yaml:"upgradePlanRef"`
RollbackPlanRef string `json:"rollbackPlanRef" yaml:"rollbackPlanRef"`
}
type Plan ¶
type Profile ¶
type PublicIngressHA ¶
type PublicIngressHA struct {
Mode string `json:"mode" yaml:"mode"`
IPv4AddressRef string `json:"ipv4AddressRef" yaml:"ipv4AddressRef"`
IPv6AddressRef string `json:"ipv6AddressRef" yaml:"ipv6AddressRef"`
HealthCheckRef string `json:"healthCheckRef" yaml:"healthCheckRef"`
FailoverPolicyRef string `json:"failoverPolicyRef" yaml:"failoverPolicyRef"`
}
PublicIngressHA describes stable dual-stack service addresses and the provider-owned mechanisms that keep them healthy during a failure-domain loss. DNS round robin over node addresses is deliberately not a valid mode.
type Report ¶
type ServingCertificateLifecycle ¶
type ServingCertificateLifecycle struct {
RolloutStrategy string `json:"rolloutStrategy" yaml:"rolloutStrategy"`
ReconfigurationPlanRef string `json:"reconfigurationPlanRef" yaml:"reconfigurationPlanRef"`
RollbackPlanRef string `json:"rollbackPlanRef" yaml:"rollbackPlanRef"`
OneServerLossAcceptanceRef string `json:"oneServerLossAcceptanceRef" yaml:"oneServerLossAcceptanceRef"`
}
ServingCertificateLifecycle binds a fail-closed rolling reconfiguration to its rollback and the failure exercise which proves the shared endpoint.
type Spec ¶
type Spec struct {
ProviderAdapterRef string `json:"providerAdapterRef" yaml:"providerAdapterRef"`
SiteClass string `json:"siteClass" yaml:"siteClass"`
RegionRef string `json:"regionRef" yaml:"regionRef"`
Availability Availability `json:"availability" yaml:"availability"`
Inventory Inventory `json:"inventory" yaml:"inventory"`
Network Network `json:"network" yaml:"network"`
HostRuntimeBaseline HostRuntimeBaseline `json:"hostRuntimeBaseline" yaml:"hostRuntimeBaseline"`
Storage Storage `json:"storage" yaml:"storage"`
Identity Identity `json:"identity" yaml:"identity"`
Operations Operations `json:"operations" yaml:"operations"`
Observability Observability `json:"observability" yaml:"observability"`
OCS OCS `json:"ocs" yaml:"ocs"`
NonClaim string `json:"nonClaim" yaml:"nonClaim"`
}
type Storage ¶
type Storage struct {
DefaultClassRef string `json:"defaultClassRef" yaml:"defaultClassRef"`
SnapshotClassRef string `json:"snapshotClassRef" yaml:"snapshotClassRef"`
BackupLocationRef string `json:"backupLocationRef" yaml:"backupLocationRef"`
ImmutableRetentionPolicyRef string `json:"immutableRetentionPolicyRef" yaml:"immutableRetentionPolicyRef"`
OffCellBackup bool `json:"offCellBackup" yaml:"offCellBackup"`
}