Documentation
¶
Index ¶
- func GetClusterVariableByName(name string, clusterVariables []clusterv1.ClusterVariable) *clusterv1.ClusterVariable
- func KubeProxyIsDisabled(cluster *clusterv1.Cluster) (bool, error)
- func KubeProxyMode(cluster *clusterv1.Cluster) (*carenv1.KubeProxyMode, error)
- func MarshalToClusterVariable[T any](name string, obj T) (*clusterv1.ClusterVariable, error)
- func RegistryAddon(cluster *clusterv1.Cluster) (*carenv1.RegistryAddon, error)
- func UnmarshalClusterVariable[T any](clusterVariable *clusterv1.ClusterVariable, obj *T) error
- func UpdateClusterVariable(variable *clusterv1.ClusterVariable, ...) []clusterv1.ClusterVariable
- type Addons
- type COSI
- type CSI
- type ClusterConfigSpec
- type ControlPlaneSpec
- type WorkerNodeConfigSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClusterVariableByName ¶ added in v0.9.0
func GetClusterVariableByName( name string, clusterVariables []clusterv1.ClusterVariable, ) *clusterv1.ClusterVariable
func KubeProxyIsDisabled ¶ added in v0.35.1
KubeProxyIsDisabled returns true if kube-proxy mode from the cluster's topology variables is disabled.
func KubeProxyMode ¶ added in v0.35.1
func KubeProxyMode(cluster *clusterv1.Cluster) (*carenv1.KubeProxyMode, error)
KubeProxyMode retrieves the kube-proxy mode from the cluster's topology variables. Returns nil if the kube-proxy mode is not defined.
func MarshalToClusterVariable ¶ added in v0.9.0
func MarshalToClusterVariable[T any](name string, obj T) (*clusterv1.ClusterVariable, error)
func RegistryAddon ¶ added in v0.31.0
func RegistryAddon(cluster *clusterv1.Cluster) (*carenv1.RegistryAddon, error)
RegistryAddon retrieves the RegistryAddon from the cluster's topology variables. Returns nil if the addon is not defined.
func UnmarshalClusterVariable ¶ added in v0.9.0
func UnmarshalClusterVariable[T any](clusterVariable *clusterv1.ClusterVariable, obj *T) error
func UpdateClusterVariable ¶ added in v0.31.0
func UpdateClusterVariable( variable *clusterv1.ClusterVariable, clusterVariables []clusterv1.ClusterVariable, ) []clusterv1.ClusterVariable
UpdateClusterVariable updates the variable in the list of cluster variables. If the variable does not exist, it appends it to the list.
Types ¶
type Addons ¶ added in v0.10.0
type Addons struct { carenv1.GenericAddons `json:",inline"` CSI *CSI `json:"csi,omitempty"` COSI *COSI `json:"cosi,omitempty"` }
type COSI ¶ added in v0.25.0
type COSI struct {
carenv1.GenericCOSI `json:",inline"`
}
type CSI ¶ added in v0.10.0
type CSI struct { carenv1.GenericCSI `json:",inline"` Providers map[string]carenv1.CSIProvider `json:"providers"` }
type ClusterConfigSpec ¶ added in v0.9.0
type ClusterConfigSpec struct { AWS *carenv1.AWSSpec `json:"aws,omitempty"` Docker *carenv1.DockerSpec `json:"docker,omitempty"` Nutanix *carenv1.NutanixSpec `json:"nutanix,omitempty"` EKS *carenv1.EKSSpec `json:"eks,omitempty"` carenv1.KubeadmClusterConfigSpec `json:",inline"` carenv1.GenericClusterConfigSpec `json:",inline"` KubeProxy *carenv1.KubeProxy `json:"kubeProxy,omitempty"` Addons *Addons `json:"addons,omitempty"` ControlPlane *ControlPlaneSpec `json:"controlPlane,omitempty"` ExtraAPIServerCertSANs []string `json:"extraAPIServerCertSANs,omitempty"` }
func UnmarshalClusterConfigVariable ¶ added in v0.9.0
func UnmarshalClusterConfigVariable( clusterVariables []clusterv1.ClusterVariable, ) (*ClusterConfigSpec, error)
type ControlPlaneSpec ¶ added in v0.24.0
type ControlPlaneSpec struct { AWS *carenv1.AWSControlPlaneNodeSpec `json:"aws,omitempty"` Docker *carenv1.DockerNodeSpec `json:"docker,omitempty"` Nutanix *carenv1.NutanixControlPlaneNodeSpec `json:"nutanix,omitempty"` carenv1.GenericControlPlaneSpec `json:",inline"` carenv1.KubeadmNodeSpec `json:",inline"` carenv1.GenericNodeSpec `json:",inline"` }
type WorkerNodeConfigSpec ¶ added in v0.9.0
type WorkerNodeConfigSpec struct { AWS *carenv1.AWSWorkerNodeSpec `json:"aws,omitempty"` Docker *carenv1.DockerNodeSpec `json:"docker,omitempty"` Nutanix *carenv1.NutanixWorkerNodeSpec `json:"nutanix,omitempty"` EKS *carenv1.AWSWorkerNodeSpec `json:"eks,omitempty"` carenv1.KubeadmNodeSpec `json:",inline"` carenv1.GenericNodeSpec `json:",inline"` }
func UnmarshalWorkerConfigVariable ¶ added in v0.9.0
func UnmarshalWorkerConfigVariable( clusterVariables []clusterv1.ClusterVariable, ) (*WorkerNodeConfigSpec, error)
Click to show internal directories.
Click to hide internal directories.