siteprofile

package
v0.1.0-c02.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2026 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package siteprofile validates provider-neutral site inventory and renders a deterministic installation plan. It deliberately does not apply resources.

Index

Constants

View Source
const (
	APIVersion       = "cloudring.io/v1alpha1"
	Kind             = "ProviderSiteProfile"
	PlanSchema       = "cloudring.site-plan/v1alpha1"
	RequiredNonClaim = "preflight-and-plan-only"
)

Variables

View Source
var (
	ErrInvalidProfile  = errors.New("invalid provider site profile")
	ErrProfileTooLarge = errors.New("provider site profile exceeds size limit")
	ErrProfileBlocked  = errors.New("provider site profile is blocked")
)

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 Check

type Check struct {
	ID     string `json:"id"`
	Status string `json:"status"`
}

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 Identity

type Identity struct {
	OIDCProviderRef       string `json:"oidcProviderRef" yaml:"oidcProviderRef"`
	WorkloadIdentityRef   string `json:"workloadIdentityRef" yaml:"workloadIdentityRef"`
	RuntimeInputBrokerRef string `json:"runtimeInputBrokerRef" yaml:"runtimeInputBrokerRef"`
}

type Inventory

type Inventory struct {
	Nodes []Node `json:"nodes" yaml:"nodes"`
}

type Metadata

type Metadata struct {
	Name string `json:"name" yaml:"name"`
}

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 OCS

type OCS struct {
	Version               string `json:"version" yaml:"version"`
	ConformanceProfileRef string `json:"conformanceProfileRef" yaml:"conformanceProfileRef"`
}

type Observability

type Observability struct {
	MetricsRef string `json:"metricsRef" yaml:"metricsRef"`
	LogsRef    string `json:"logsRef" yaml:"logsRef"`
	TracesRef  string `json:"tracesRef" yaml:"tracesRef"`
	AlertsRef  string `json:"alertsRef" yaml:"alertsRef"`
}

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 Phase

type Phase struct {
	ID          string   `json:"id"`
	DependsOn   []string `json:"dependsOn"`
	InputRefs   []string `json:"inputRefs"`
	Mutation    bool     `json:"mutation"`
	RollbackRef string   `json:"rollbackRef,omitempty"`
}

type Plan

type Plan struct {
	SchemaVersion string  `json:"schemaVersion"`
	ProfileName   string  `json:"profileName"`
	ProfileDigest string  `json:"profileDigest"`
	Phases        []Phase `json:"phases"`
	NonClaim      string  `json:"nonClaim"`
}

func BuildPlan

func BuildPlan(profile Profile) (Plan, error)

type Profile

type Profile struct {
	APIVersion string   `json:"apiVersion" yaml:"apiVersion"`
	Kind       string   `json:"kind" yaml:"kind"`
	Metadata   Metadata `json:"metadata" yaml:"metadata"`
	Spec       Spec     `json:"spec" yaml:"spec"`
}

func Parse

func Parse(reader io.Reader) (Profile, error)

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 Report struct {
	Status        string   `json:"status"`
	ProfileName   string   `json:"profileName,omitempty"`
	ProfileDigest string   `json:"profileDigest,omitempty"`
	Checks        []Check  `json:"checks"`
	Blockers      []string `json:"blockers,omitempty"`
	NonClaim      string   `json:"nonClaim"`
}

func Validate

func Validate(profile Profile) 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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL