api

package
v0.19.8 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HardwareVendorDell        = "dell"
	HardwareVendorHP          = "hp"
	HardwareVendorSuperMicro  = "supermicro"
	HardwareVendorUnspecified = "unspecified"
	HardwareLabelTypeKeyName  = "type"
	ControlPlane              = "control-plane"
	Worker                    = "worker"
	ExternalEtcd              = "etcd"
)

Variables

This section is empty.

Functions

func AddAWSIamRole added in v0.6.1

func AddAWSIamRole(arn, username string, groups []string) *v1alpha1.MapRoles

func AddAWSIamUser added in v0.6.1

func AddAWSIamUser(arn, username string, groups []string) *v1alpha1.MapUsers

func CleanupPathsFromYaml added in v0.7.0

func CleanupPathsFromYaml(yamlContent []byte, paths []string) ([]byte, error)

func CleanupPathsInObject added in v0.14.0

func CleanupPathsInObject[T any, PT interface {
	*T
	client.Object
}](obj PT, paths []string,
) error

CleanupPathsInObject unsets or nullifies the provided paths in a give kubernetes Object.

func ControlPlaneTaint added in v0.16.0

func ControlPlaneTaint() corev1.Taint

ControlPlaneTaint has been added from 1.24 onwards.

func FillCloudStackMachineConfig added in v0.9.0

func FillCloudStackMachineConfig(m *anywherev1.CloudStackMachineConfig, fillers ...CloudStackMachineConfigFiller)

func FillSnowMachineConfig added in v0.11.0

func FillSnowMachineConfig(m *anywherev1.SnowMachineConfig, fillers ...SnowMachineConfigFiller)

func FillVSphereMachineConfig added in v0.7.1

func FillVSphereMachineConfig(m *anywherev1.VSphereMachineConfig, fillers ...VSphereMachineConfigFiller)

func FillWorkerNodeGroup added in v0.7.1

func FillWorkerNodeGroup(w *anywherev1.WorkerNodeGroupConfiguration, fillers ...WorkerNodeGroupFiller)

func HardwareSliceToMap added in v0.8.0

func HardwareSliceToMap(slice []*Hardware) map[string]*Hardware

converts a hardware slice to a map. The first instance of the slice is used in case slice contains duplicates.

func MasterTaint added in v0.16.0

func MasterTaint() corev1.Taint

MasterTaint will be deprecated from kubernetes version 1.25 onwards.

func NewAWSIamConfig added in v0.6.1

func NewAWSIamConfig(name string, opts ...AWSIamConfigOpt) *v1alpha1.AWSIamConfig

func NewFluxConfig added in v0.9.0

func NewFluxConfig(name string, opts ...FluxConfigOpt) *v1alpha1.FluxConfig

func NewGitOpsConfig

func NewGitOpsConfig(name string, opts ...GitOpsConfigOpt) *v1alpha1.GitOpsConfig

func NewHardwareMapFromFile added in v0.8.0

func NewHardwareMapFromFile(file string) (map[string]*Hardware, error)

func SplitHardware added in v0.9.2

func SplitHardware(slice []*Hardware, chunkSize int) [][]*Hardware

func UpdateClusterConfig added in v0.14.0

func UpdateClusterConfig(config *cluster.Config, fillers ...ClusterConfigFiller)

UpdateClusterConfig updates the given cluster.Config by applying the fillers.

func ValidateControlPlaneNoTaints added in v0.16.0

func ValidateControlPlaneNoTaints(controlPlane v1alpha1.ControlPlaneConfiguration, node corev1.Node) (err error)

ValidateControlPlaneNoTaints will validate that a controlPlane has no taints, for example in the case of a single node cluster.

func ValidateControlPlaneTaints added in v0.16.0

func ValidateControlPlaneTaints(controlPlane v1alpha1.ControlPlaneConfiguration, node corev1.Node) (err error)

ValidateControlPlaneTaints will validate that a controlPlane node has the expected taints.

func ValidateWorkerNodeTaints added in v0.16.0

func ValidateWorkerNodeTaints(w v1alpha1.WorkerNodeGroupConfiguration, node corev1.Node) (err error)

ValidateWorkerNodeTaints will validate that a worker node has the expected taints in the worker node group configuration.

func WriteHardwareMapToCSV added in v0.8.0

func WriteHardwareMapToCSV(hardware map[string]*Hardware, csvFile string) error

func WriteHardwareSliceToCSV added in v0.8.0

func WriteHardwareSliceToCSV(hardware []*Hardware, csvFile string) error

Types

type AWSIamConfigOpt added in v0.6.1

type AWSIamConfigOpt func(c *v1alpha1.AWSIamConfig)

func WithAWSIamAWSRegion added in v0.6.1

func WithAWSIamAWSRegion(awsRegion string) AWSIamConfigOpt

func WithAWSIamBackendMode added in v0.6.1

func WithAWSIamBackendMode(backendMode string) AWSIamConfigOpt

func WithAWSIamMapRoles added in v0.6.1

func WithAWSIamMapRoles(mapRoles *v1alpha1.MapRoles) AWSIamConfigOpt

func WithAWSIamMapUsers added in v0.6.1

func WithAWSIamMapUsers(mapUsers *v1alpha1.MapUsers) AWSIamConfigOpt

func WithAWSIamPartition added in v0.6.1

func WithAWSIamPartition(partition string) AWSIamConfigOpt

type CloudStackConfig added in v0.9.0

type CloudStackConfig struct {
	// contains filtered or unexported fields
}

type CloudStackFiller added in v0.9.0

type CloudStackFiller func(config CloudStackConfig)

func RemoveCloudStackAzs added in v0.11.3

func RemoveCloudStackAzs() CloudStackFiller

func WithCloudStackAccount added in v0.9.0

func WithCloudStackAccount(value string) CloudStackFiller

func WithCloudStackAffinityGroupIds added in v0.9.0

func WithCloudStackAffinityGroupIds(value []string) CloudStackFiller

func WithCloudStackAz added in v0.11.3

func WithCloudStackAzFromEnvVars added in v0.11.3

func WithCloudStackAzFromEnvVars(cloudstackAccountVar, cloudstackDomainVar, cloudstackZoneVar, cloudstackCredentialsVar, cloudstackNetworkVar, cloudstackManagementServerVar string, opt func(zone anywherev1.CloudStackAvailabilityZone) CloudStackFiller) CloudStackFiller

func WithCloudStackComputeOfferingForAllMachines added in v0.9.0

func WithCloudStackComputeOfferingForAllMachines(value string) CloudStackFiller

func WithCloudStackConfigNamespace added in v0.9.0

func WithCloudStackConfigNamespace(ns string) CloudStackFiller

func WithCloudStackConfigNamespaceForAllMachinesAndDatacenter added in v0.16.0

func WithCloudStackConfigNamespaceForAllMachinesAndDatacenter(ns string) CloudStackFiller

WithCloudStackConfigNamespaceForAllMachinesAndDatacenter sets the namespace for all Machines and Datacenter objects.

func WithCloudStackCredentialsRef added in v0.16.0

func WithCloudStackCredentialsRef(value string) CloudStackFiller

WithCloudStackCredentialsRef returns a CloudStackFiller that updates the edentialsRef of all availability zones.

func WithCloudStackDomain added in v0.9.0

func WithCloudStackDomain(value string) CloudStackFiller

func WithCloudStackMachineConfig added in v0.9.0

func WithCloudStackMachineConfig(name string, fillers ...CloudStackMachineConfigFiller) CloudStackFiller

func WithCloudStackSSHAuthorizedKey added in v0.9.0

func WithCloudStackSSHAuthorizedKey(value string) CloudStackFiller

func WithCloudStackStringFromEnvVar added in v0.9.0

func WithCloudStackStringFromEnvVar(envVar string, opt func(string) CloudStackFiller) CloudStackFiller

func WithCloudStackTemplateForAllMachines added in v0.9.0

func WithCloudStackTemplateForAllMachines(value string) CloudStackFiller
func WithSymlinks(value map[string]string) CloudStackFiller

func WithUserCustomDetails added in v0.9.0

func WithUserCustomDetails(value map[string]string) CloudStackFiller

type CloudStackMachineConfigFiller added in v0.9.0

type CloudStackMachineConfigFiller func(m *anywherev1.CloudStackMachineConfig)

func WithCloudStackComputeOffering added in v0.9.0

func WithCloudStackComputeOffering(value string) CloudStackMachineConfigFiller

func WithCloudStackSSHKey added in v0.9.0

func WithCloudStackSSHKey(value string) CloudStackMachineConfigFiller

type ClusterConfigFiller added in v0.14.0

type ClusterConfigFiller func(*cluster.Config)

ClusterConfigFiller updates a cluster.Config.

func CloudStackToConfigFiller added in v0.14.0

func CloudStackToConfigFiller(fillers ...CloudStackFiller) ClusterConfigFiller

CloudStackToConfigFiller transforms a set of CloudStackFiller's in a single ClusterConfigFiller.

func ClusterToConfigFiller added in v0.14.0

func ClusterToConfigFiller(fillers ...ClusterFiller) ClusterConfigFiller

ClusterToConfigFiller updates the Cluster in the cluster.Config by applying all the fillers.

func JoinClusterConfigFillers added in v0.14.0

func JoinClusterConfigFillers(fillers ...ClusterConfigFiller) ClusterConfigFiller

JoinClusterConfigFillers creates one single ClusterConfigFiller from a collection of fillers.

func NutanixToConfigFiller added in v0.14.0

func NutanixToConfigFiller(fillers ...NutanixFiller) ClusterConfigFiller

NutanixToConfigFiller transforms a set of NutanixFiller's in a single ClusterConfigFiller.

func SnowToConfigFiller added in v0.14.0

func SnowToConfigFiller(fillers ...SnowFiller) ClusterConfigFiller

SnowToConfigFiller transforms a set of SnowFiller's in a single ClusterConfigFiller.

func TinkerbellToConfigFiller added in v0.14.0

func TinkerbellToConfigFiller(fillers ...TinkerbellFiller) ClusterConfigFiller

TinkerbellToConfigFiller transforms a set of TinkerbellFiller's in a single ClusterConfigFiller.

func VSphereToConfigFiller added in v0.14.0

func VSphereToConfigFiller(fillers ...VSphereFiller) ClusterConfigFiller

VSphereToConfigFiller transforms a set of VSphereFiller's in a single ClusterConfigFiller.

func WithOIDCConfig added in v0.17.0

func WithOIDCConfig(name string, opts ...OIDCConfigOpt) ClusterConfigFiller

WithOIDCConfig builds a ClusterConfigFiller that adds a OIDCConfig with the given name and spec to the cluster config.

type ClusterFiller

type ClusterFiller func(c *anywherev1.Cluster)

func RemoveAllWorkerNodeGroups added in v0.7.1

func RemoveAllWorkerNodeGroups() ClusterFiller

func RemoveWorkerNodeGroup added in v0.7.1

func RemoveWorkerNodeGroup(name string) ClusterFiller

func WithAWSIamIdentityProviderRef added in v0.6.1

func WithAWSIamIdentityProviderRef(name string) ClusterFiller

func WithBundlesRef added in v0.14.0

func WithBundlesRef(name string, namespace string, apiVersion string) ClusterFiller

WithBundlesRef sets BundlesRef with the provided name to use.

func WithCiliumEgressMasqueradeInterfaces added in v0.17.0

func WithCiliumEgressMasqueradeInterfaces(interfaceName string) ClusterFiller

WithCiliumEgressMasqueradeInterfaces sets the egressMasqueradeInterfaces with the provided interface option to use.

func WithCiliumPolicyEnforcementMode added in v0.8.0

func WithCiliumPolicyEnforcementMode(mode anywherev1.CiliumPolicyEnforcementMode) ClusterFiller

func WithCiliumRoutingMode added in v0.19.0

func WithCiliumRoutingMode(mode anywherev1.CiliumRoutingMode) ClusterFiller

WithCiliumRoutingMode sets the tunnel mode with the provided mode option to use.

func WithCiliumSkipUpgrade added in v0.16.0

func WithCiliumSkipUpgrade() ClusterFiller

WithCiliumSkipUpgrade enables skip upgrade for EKSA Cilium installations.

func WithClusterNamespace added in v0.6.0

func WithClusterNamespace(ns string) ClusterFiller

func WithControlPlaneCount

func WithControlPlaneCount(r int) ClusterFiller

func WithControlPlaneEndpointIP

func WithControlPlaneEndpointIP(value string) ClusterFiller

func WithControlPlaneLabel added in v0.7.1

func WithControlPlaneLabel(key string, val string) ClusterFiller

func WithControlPlaneTaints added in v0.7.1

func WithControlPlaneTaints(taints []corev1.Taint) ClusterFiller

func WithEksaVersion added in v0.17.0

func WithEksaVersion(eksaVersion *anywherev1.EksaVersion) ClusterFiller

WithEksaVersion sets EksaVersion with the provided name to use.

func WithEtcdCountIfExternal added in v0.9.2

func WithEtcdCountIfExternal(count int) ClusterFiller

func WithEtcdEncryptionFiller added in v0.18.0

func WithEtcdEncryptionFiller(kms *anywherev1.KMS, resources []string) ClusterFiller

WithEtcdEncryptionFiller configures EtcdEncyption on the cluster.

func WithExternalEtcdMachineRef added in v0.8.0

func WithExternalEtcdMachineRef(kind string) ClusterFiller

func WithExternalEtcdTopology

func WithExternalEtcdTopology(count int) ClusterFiller

func WithGitOpsRef

func WithGitOpsRef(name, kind string) ClusterFiller

func WithInPlaceUpgradeStrategy added in v0.19.0

func WithInPlaceUpgradeStrategy() ClusterFiller

WithInPlaceUpgradeStrategy configures the UpgradeStrategy on Control-plane and Worker node groups to InPlace.

func WithManagementCluster added in v0.6.1

func WithManagementCluster(name string) ClusterFiller

func WithOIDCIdentityProviderRef

func WithOIDCIdentityProviderRef(name string) ClusterFiller

func WithPodCidr

func WithPodCidr(podCidr string) ClusterFiller

WithPodCidr sets an explicit pod CIDR, overriding the provider's default.

func WithPodIamFiller added in v0.18.0

func WithPodIamFiller(issuerURL string) ClusterFiller

WithPodIamFiller configures pod IAM config to enable IRSA.

func WithProxyConfig added in v0.6.0

func WithProxyConfig(httpProxy, httpsProxy string, noProxy []string) ClusterFiller

func WithRegistryMirror added in v0.6.0

func WithRegistryMirror(endpoint, port string, caCert string, authenticate bool, insecureSkipVerify bool) ClusterFiller

WithRegistryMirror adds a registry mirror configuration.

func WithServiceCidr

func WithServiceCidr(svcCidr string) ClusterFiller

func WithStackedEtcdTopology

func WithStackedEtcdTopology() ClusterFiller

func WithWorkerKubernetesVersion added in v0.18.0

func WithWorkerKubernetesVersion(name string, version *anywherev1.KubernetesVersion) ClusterFiller

WithWorkerKubernetesVersion sets the kubernetes version field for the given worker group.

func WithWorkerNodeAutoScalingConfig added in v0.14.0

func WithWorkerNodeAutoScalingConfig(min int, max int) ClusterFiller

WithWorkerNodeAutoScalingConfig adds an autoscaling configuration with a given min and max count.

func WithWorkerNodeCount

func WithWorkerNodeCount(r int) ClusterFiller

func WithWorkerNodeGroup added in v0.7.1

func WithWorkerNodeGroup(name string, fillers ...WorkerNodeGroupFiller) ClusterFiller

type FluxConfigOpt added in v0.9.0

type FluxConfigOpt func(o *v1alpha1.FluxConfig)

func WithBranch added in v0.9.0

func WithBranch(branch string) FluxConfigOpt

func WithClusterConfigPath added in v0.9.0

func WithClusterConfigPath(configPath string) FluxConfigOpt

func WithFluxConfigName added in v0.12.0

func WithFluxConfigName(n string) FluxConfigOpt

func WithFluxConfigNamespace added in v0.9.0

func WithFluxConfigNamespace(ns string) FluxConfigOpt

func WithGenericGitProvider added in v0.9.0

func WithGenericGitProvider(opts ...GitProviderOpt) FluxConfigOpt

func WithGithubProvider added in v0.9.0

func WithGithubProvider(opts ...GithubProviderOpt) FluxConfigOpt

func WithStringFromEnvVarFluxConfig added in v0.9.0

func WithStringFromEnvVarFluxConfig(envVar string, opt func(string) FluxConfigOpt) FluxConfigOpt

func WithSystemNamespace added in v0.9.0

func WithSystemNamespace(namespace string) FluxConfigOpt

type GitOpsConfigOpt

type GitOpsConfigOpt func(o *v1alpha1.GitOpsConfig)

func WithFluxBranch

func WithFluxBranch(branch string) GitOpsConfigOpt

func WithFluxConfigurationPath

func WithFluxConfigurationPath(configPath string) GitOpsConfigOpt

func WithFluxNamespace

func WithFluxNamespace(namespace string) GitOpsConfigOpt

func WithFluxOwner

func WithFluxOwner(username string) GitOpsConfigOpt

func WithFluxRepository

func WithFluxRepository(repository string) GitOpsConfigOpt

func WithGitOpsNamespace added in v0.6.0

func WithGitOpsNamespace(ns string) GitOpsConfigOpt

func WithPersonalFluxRepository

func WithPersonalFluxRepository(personal bool) GitOpsConfigOpt

func WithStringFromEnvVarGitOpsConfig

func WithStringFromEnvVarGitOpsConfig(envVar string, opt func(string) GitOpsConfigOpt) GitOpsConfigOpt

type GitProviderOpt added in v0.9.0

type GitProviderOpt func(o *v1alpha1.GitProviderConfig)

func WithGitRepositoryUrl added in v0.9.0

func WithGitRepositoryUrl(url string) GitProviderOpt

func WithStringFromEnvVarGenericGitProviderConfig added in v0.9.0

func WithStringFromEnvVarGenericGitProviderConfig(envVar string, opt func(string) GitProviderOpt) GitProviderOpt

type GithubProviderOpt added in v0.9.0

type GithubProviderOpt func(o *v1alpha1.GithubProviderConfig)

func WithGithubOwner added in v0.9.0

func WithGithubOwner(owner string) GithubProviderOpt

func WithGithubRepository added in v0.9.0

func WithGithubRepository(repository string) GithubProviderOpt

func WithPersonalGithubRepository added in v0.9.0

func WithPersonalGithubRepository(personal bool) GithubProviderOpt

func WithStringFromEnvVarGithubProviderConfig added in v0.9.0

func WithStringFromEnvVarGithubProviderConfig(envVar string, opt func(string) GithubProviderOpt) GithubProviderOpt

type Hardware added in v0.8.0

type Hardware = hardware.Machine

Alias for backwards compatibility.

func HardwareMapToSlice added in v0.8.0

func HardwareMapToSlice(hardware map[string]*Hardware) []*Hardware

func NewHardwareSlice added in v0.8.0

func NewHardwareSlice(r io.Reader) ([]*Hardware, error)

func NewHardwareSliceFromFile added in v0.8.0

func NewHardwareSliceFromFile(file string) ([]*Hardware, error)

type NutanixConfig added in v0.12.0

type NutanixConfig struct {
	// contains filtered or unexported fields
}

NutanixConfig is a wrapper for the Nutanix provider spec.

type NutanixFiller added in v0.12.0

type NutanixFiller func(config *NutanixConfig)

func WithNutanixAdditionalTrustBundle added in v0.12.0

func WithNutanixAdditionalTrustBundle(value string) NutanixFiller

WithNutanixAdditionalTrustBundle returns a NutanixFiller that sets the additional trust bundle for the Nutanix provider.

func WithNutanixBoolFromEnvVar added in v0.12.0

func WithNutanixBoolFromEnvVar(envVar string, opt func(bool) NutanixFiller) NutanixFiller

WithNutanixBoolFromEnvVar returns a NutanixFiller that sets the given int32 value to the given environment variable.

func WithNutanixEndpoint added in v0.12.0

func WithNutanixEndpoint(value string) NutanixFiller

WithNutanixEndpoint returns a NutanixFiller that sets the endpoint for the Nutanix provider.

func WithNutanixInsecure added in v0.13.0

func WithNutanixInsecure(value bool) NutanixFiller

WithNutanixInsecure returns a NutanixFiller that sets the insecure for the Nutanix provider.

func WithNutanixInt32FromEnvVar added in v0.12.0

func WithNutanixInt32FromEnvVar(envVar string, opt func(int32) NutanixFiller) NutanixFiller

WithNutanixInt32FromEnvVar returns a NutanixFiller that sets the given int32 value to the given environment variable.

func WithNutanixIntFromEnvVar added in v0.12.0

func WithNutanixIntFromEnvVar(envVar string, opt func(int) NutanixFiller) NutanixFiller

WithNutanixIntFromEnvVar returns a NutanixFiller that sets the given integer value to the given environment variable.

func WithNutanixMachineMemorySize added in v0.12.0

func WithNutanixMachineMemorySize(value string) NutanixFiller

WithNutanixMachineMemorySize returns a NutanixFiller that sets the memory size for the Nutanix machine.

func WithNutanixMachineSystemDiskSize added in v0.12.0

func WithNutanixMachineSystemDiskSize(value string) NutanixFiller

WithNutanixMachineSystemDiskSize returns a NutanixFiller that sets the system disk size for the Nutanix machine.

func WithNutanixMachineTemplateImageName added in v0.12.0

func WithNutanixMachineTemplateImageName(value string) NutanixFiller

WithNutanixMachineTemplateImageName returns a NutanixFiller that sets the image name for the Nutanix machine template.

func WithNutanixMachineTemplateImageUUID added in v0.12.0

func WithNutanixMachineTemplateImageUUID(value string) NutanixFiller

WithNutanixMachineTemplateImageUUID returns a NutanixFiller that sets the image UUID for the Nutanix machine.

func WithNutanixMachineVCPUSocket added in v0.12.0

func WithNutanixMachineVCPUSocket(value int32) NutanixFiller

WithNutanixMachineVCPUSocket returns a NutanixFiller that sets the vCPU sockets for the Nutanix machine.

func WithNutanixMachineVCPUsPerSocket added in v0.12.0

func WithNutanixMachineVCPUsPerSocket(value int32) NutanixFiller

WithNutanixMachineVCPUsPerSocket returns a NutanixFiller that sets the vCPUs per socket for the Nutanix machine.

func WithNutanixPort added in v0.12.0

func WithNutanixPort(value int) NutanixFiller

WithNutanixPort returns a NutanixFiller that sets the port for the Nutanix provider.

func WithNutanixPrismElementClusterName added in v0.12.0

func WithNutanixPrismElementClusterName(value string) NutanixFiller

WithNutanixPrismElementClusterName returns a NutanixFiller that sets the cluster name for the Nutanix machine.

func WithNutanixPrismElementClusterUUID added in v0.12.0

func WithNutanixPrismElementClusterUUID(value string) NutanixFiller

WithNutanixPrismElementClusterUUID returns a NutanixFiller that sets the cluster UUID for the Nutanix machine.

func WithNutanixSSHAuthorizedKey added in v0.12.0

func WithNutanixSSHAuthorizedKey(value string) NutanixFiller

WithNutanixSSHAuthorizedKey returns a NutanixFiller that sets the SSH authorized key for the Nutanix machine.

func WithNutanixStringFromEnvVar added in v0.12.0

func WithNutanixStringFromEnvVar(envVar string, opt func(string) NutanixFiller) NutanixFiller

WithNutanixStringFromEnvVar returns a NutanixFiller that sets the given string value to the given environment variable.

func WithNutanixSubnetName added in v0.12.0

func WithNutanixSubnetName(value string) NutanixFiller

WithNutanixSubnetName returns a NutanixFiller that sets the subnet name for the Nutanix machine.

func WithNutanixSubnetUUID added in v0.12.0

func WithNutanixSubnetUUID(value string) NutanixFiller

WithNutanixSubnetUUID returns a NutanixFiller that sets the subnet UUID for the Nutanix machine.

func WithOsFamilyForAllNutanixMachines added in v0.13.0

func WithOsFamilyForAllNutanixMachines(value anywherev1.OSFamily) NutanixFiller

WithOsFamilyForAllNutanixMachines sets the osFamily for all Nutanix machines to value.

type OIDCConfigOpt

type OIDCConfigOpt func(o *anywherev1.OIDCConfig)

OIDCConfigOpt updates an OIDC config.

func WithOIDCClientId

func WithOIDCClientId(id string) OIDCConfigOpt

func WithOIDCGroupsClaim

func WithOIDCGroupsClaim(claim string) OIDCConfigOpt

func WithOIDCGroupsPrefix

func WithOIDCGroupsPrefix(prefix string) OIDCConfigOpt

func WithOIDCIssuerUrl

func WithOIDCIssuerUrl(url string) OIDCConfigOpt

func WithOIDCRequiredClaims

func WithOIDCRequiredClaims(claim, value string) OIDCConfigOpt

func WithOIDCUsernameClaim

func WithOIDCUsernameClaim(claim string) OIDCConfigOpt

func WithOIDCUsernamePrefix

func WithOIDCUsernamePrefix(prefix string) OIDCConfigOpt

func WithStringFromEnvVarOIDCConfig

func WithStringFromEnvVarOIDCConfig(envVar string, opt func(string) OIDCConfigOpt) OIDCConfigOpt

type SnowConfig added in v0.9.0

type SnowConfig struct {
	// contains filtered or unexported fields
}

type SnowFiller added in v0.9.0

type SnowFiller func(config SnowConfig)

func WithChangeForAllSnowMachines added in v0.15.0

func WithChangeForAllSnowMachines(change SnowMachineConfigFiller) SnowFiller

WithChangeForAllSnowMachines applies the same change to all SnowMachineConfigs.

func WithOsFamilyForAllSnowMachines added in v0.13.0

func WithOsFamilyForAllSnowMachines(value anywherev1.OSFamily) SnowFiller

WithOsFamilyForAllSnowMachines sets the OSFamily in the SnowMachineConfig.

func WithSnowAMIIDForAllMachines added in v0.11.0

func WithSnowAMIIDForAllMachines(id string) SnowFiller

func WithSnowDevicesForAllMachines added in v0.11.0

func WithSnowDevicesForAllMachines(devices string) SnowFiller

func WithSnowIPPool added in v0.15.0

func WithSnowIPPool(name, ipStart, ipEnd, gateway, subnet string) SnowFiller

WithSnowIPPool sets a SnowIPPool.

func WithSnowInstanceTypeForAllMachines added in v0.11.0

func WithSnowInstanceTypeForAllMachines(instanceType string) SnowFiller

WithSnowInstanceTypeForAllMachines specifies an instance type for all the snow machine configs.

func WithSnowMachineConfig added in v0.11.0

func WithSnowMachineConfig(name string, fillers ...SnowMachineConfigFiller) SnowFiller

func WithSnowPhysicalNetworkConnectorForAllMachines added in v0.11.0

func WithSnowPhysicalNetworkConnectorForAllMachines(connectorType anywherev1.PhysicalNetworkConnectorType) SnowFiller

func WithSnowSshKeyNameForAllMachines added in v0.11.0

func WithSnowSshKeyNameForAllMachines(keyName string) SnowFiller

func WithSnowStringFromEnvVar added in v0.9.0

func WithSnowStringFromEnvVar(envVar string, opt func(string) SnowFiller) SnowFiller

type SnowMachineConfigFiller added in v0.11.0

type SnowMachineConfigFiller func(m *anywherev1.SnowMachineConfig)

func WithDHCP added in v0.15.0

func WithDHCP() SnowMachineConfigFiller

WithDHCP configures one single primary DNI using DHCP for IP allocation.

func WithSnowAMIID added in v0.9.0

func WithSnowAMIID(id string) SnowMachineConfigFiller

func WithSnowContainersVolumeSize added in v0.15.0

func WithSnowContainersVolumeSize(size int64) SnowMachineConfigFiller

WithSnowContainersVolumeSize sets the container volume size for a SnowMachineConfig.

func WithSnowDevices added in v0.11.0

func WithSnowDevices(devices string) SnowMachineConfigFiller

func WithSnowInstanceType added in v0.9.0

func WithSnowInstanceType(instanceType string) SnowMachineConfigFiller

WithSnowInstanceType specifies an instance type for the snow machine config.

func WithSnowMachineDefaultValues added in v0.11.0

func WithSnowMachineDefaultValues() SnowMachineConfigFiller

func WithSnowPhysicalNetworkConnector added in v0.9.0

func WithSnowPhysicalNetworkConnector(connectorType anywherev1.PhysicalNetworkConnectorType) SnowMachineConfigFiller

func WithSnowSshKeyName added in v0.9.0

func WithSnowSshKeyName(keyName string) SnowMachineConfigFiller

func WithStaticIP added in v0.15.0

func WithStaticIP(poolName string) SnowMachineConfigFiller

WithStaticIP configures one single primary DNI using static ip for IP allocation.

type TinkerbellConfig added in v0.8.0

type TinkerbellConfig struct {
	// contains filtered or unexported fields
}

type TinkerbellFiller added in v0.8.0

type TinkerbellFiller func(config TinkerbellConfig)

TinkerbellFiller updates a TinkerbellConfig.

func RemoveTinkerbellWorkerMachineConfig added in v0.19.0

func RemoveTinkerbellWorkerMachineConfig() TinkerbellFiller

RemoveTinkerbellWorkerMachineConfig removes the worker node TinkerbellMachineConfig for single node clusters.

func WithCustomTinkerbellMachineConfig added in v0.9.2

func WithCustomTinkerbellMachineConfig(selector string, machineConfigFillers ...TinkerbellMachineFiller) TinkerbellFiller

WithCustomTinkerbellMachineConfig generates a TinkerbellMachineConfig from a hardware selector.

func WithHardwareSelectorLabels added in v0.9.2

func WithHardwareSelectorLabels() TinkerbellFiller

func WithHookImagesURLPath added in v0.15.0

func WithHookImagesURLPath(value string) TinkerbellFiller

WithHookImagesURLPath modify HookImagesURL, it's useful for airgapped testing.

func WithImageUrlForAllTinkerbellMachines added in v0.8.0

func WithImageUrlForAllTinkerbellMachines(value string) TinkerbellFiller

func WithOsFamilyForAllTinkerbellMachines added in v0.8.0

func WithOsFamilyForAllTinkerbellMachines(value anywherev1.OSFamily) TinkerbellFiller

func WithSSHAuthorizedKeyForAllTinkerbellMachines added in v0.8.0

func WithSSHAuthorizedKeyForAllTinkerbellMachines(key string) TinkerbellFiller

func WithStringFromEnvVarTinkerbell added in v0.8.0

func WithStringFromEnvVarTinkerbell(envVar string, opt func(string) TinkerbellFiller) TinkerbellFiller

func WithTinkerbellCPMachineConfigOSImageURL added in v0.18.0

func WithTinkerbellCPMachineConfigOSImageURL(imageURL string, OSFamily anywherev1.OSFamily) TinkerbellFiller

WithTinkerbellCPMachineConfigOSImageURL sets the OSImageURL & OSFamily for control-plane machine config.

func WithTinkerbellEtcdMachineConfig added in v0.8.0

func WithTinkerbellEtcdMachineConfig() TinkerbellFiller

func WithTinkerbellOSImageURL added in v0.10.0

func WithTinkerbellOSImageURL(value string) TinkerbellFiller

func WithTinkerbellServer added in v0.8.0

func WithTinkerbellServer(value string) TinkerbellFiller

func WithTinkerbellWorkerMachineConfigOSImageURL added in v0.18.0

func WithTinkerbellWorkerMachineConfigOSImageURL(imageURL string, OSFamily anywherev1.OSFamily) TinkerbellFiller

WithTinkerbellWorkerMachineConfigOSImageURL sets the OSImageURL & OSFamily for worker machine config.

type TinkerbellMachineFiller added in v0.15.3

type TinkerbellMachineFiller func(machineConfig *anywherev1.TinkerbellMachineConfig)

TinkerbellMachineFiller updates a TinkerbellMachineConfig.

func WithOsFamilyForTinkerbellMachineConfig added in v0.15.3

func WithOsFamilyForTinkerbellMachineConfig(value anywherev1.OSFamily) TinkerbellMachineFiller

WithOsFamilyForTinkerbellMachineConfig updates the OSFamily of a TinkerbellMachineConfig.

func WithSSHAuthorizedKeyForTinkerbellMachineConfig added in v0.15.3

func WithSSHAuthorizedKeyForTinkerbellMachineConfig(key string) TinkerbellMachineFiller

WithSSHAuthorizedKeyForTinkerbellMachineConfig updates the SSHAuthorizedKey for a TinkerbellMachineConfig.

func WithStringFromEnvVarTinkerbellMachineFiller added in v0.15.3

func WithStringFromEnvVarTinkerbellMachineFiller(envVar string, opt func(string) TinkerbellMachineFiller) TinkerbellMachineFiller

WithStringFromEnvVarTinkerbellMachineFiller runs a TinkerbellMachineFiller function with an envVar value.

type VSphereConfig

type VSphereConfig struct {
	// contains filtered or unexported fields
}

type VSphereFiller

type VSphereFiller func(config VSphereConfig)

func RemoveEtcdVsphereMachineConfig added in v0.19.0

func RemoveEtcdVsphereMachineConfig() VSphereFiller

RemoveEtcdVsphereMachineConfig removes the etcd VSphereMachineConfig from the cluster spec.

func WithBottlerocketConfigurationForAllMachines added in v0.15.0

func WithBottlerocketConfigurationForAllMachines(value *anywherev1.BottlerocketConfiguration) VSphereFiller

WithBottlerocketConfigurationForAllMachines sets Bottlerocket configuration for all VSphereMachineConfigs.

func WithCloneModeForAllMachines added in v0.15.0

func WithCloneModeForAllMachines(value anywherev1.CloneMode) VSphereFiller

WithCloneModeForAllMachines sets the CloneMode for all VSphereMachineConfigs.

func WithDatacenter

func WithDatacenter(value string) VSphereFiller

func WithDatastoreForAllMachines added in v0.7.1

func WithDatastoreForAllMachines(value string) VSphereFiller

func WithDiskGiBForAllMachines added in v0.7.1

func WithDiskGiBForAllMachines(value int) VSphereFiller

func WithFolderForAllMachines added in v0.7.1

func WithFolderForAllMachines(value string) VSphereFiller

func WithMachineTemplate added in v0.18.0

func WithMachineTemplate(machineConfigName string, template string) VSphereFiller

WithMachineTemplate configs template in machine config.

func WithMemoryMiBForAllMachines added in v0.7.1

func WithMemoryMiBForAllMachines(value int) VSphereFiller

func WithNTPServersForAllMachines added in v0.15.0

func WithNTPServersForAllMachines(servers []string) VSphereFiller

WithNTPServersForAllMachines sets NTP servers for all VSphereMachineConfigs.

func WithNetwork

func WithNetwork(value string) VSphereFiller

func WithNumCPUsForAllMachines added in v0.7.1

func WithNumCPUsForAllMachines(value int) VSphereFiller

func WithOsFamilyForAllMachines added in v0.7.1

func WithOsFamilyForAllMachines(value anywherev1.OSFamily) VSphereFiller

func WithResourcePoolForAllMachines added in v0.7.1

func WithResourcePoolForAllMachines(value string) VSphereFiller

func WithResourcePoolforCPMachines added in v0.17.0

func WithResourcePoolforCPMachines(value string) VSphereFiller

WithResourcePoolforCPMachines sets the resource pool for control plane machines to the specified value.

func WithSSHAuthorizedKeyForAllMachines added in v0.7.1

func WithSSHAuthorizedKeyForAllMachines(key string) VSphereFiller

func WithServer

func WithServer(value string) VSphereFiller

func WithStoragePolicyNameForAllMachines added in v0.7.1

func WithStoragePolicyNameForAllMachines(value string) VSphereFiller

func WithTLSInsecure

func WithTLSInsecure(value bool) VSphereFiller

func WithTLSThumbprint

func WithTLSThumbprint(value string) VSphereFiller

func WithTagsForAllMachines added in v0.13.0

func WithTagsForAllMachines(value []string) VSphereFiller

WithTagsForAllMachines add provided tags to all machines.

func WithTemplateForAllMachines added in v0.7.1

func WithTemplateForAllMachines(value string) VSphereFiller

func WithVSphereBoolFromEnvVar added in v0.9.0

func WithVSphereBoolFromEnvVar(envVar string, opt func(bool) VSphereFiller) VSphereFiller

func WithVSphereConfigNamespaceForAllMachinesAndDatacenter added in v0.7.1

func WithVSphereConfigNamespaceForAllMachinesAndDatacenter(ns string) VSphereFiller

func WithVSphereMachineConfig added in v0.9.0

func WithVSphereMachineConfig(name string, fillers ...VSphereMachineConfigFiller) VSphereFiller

func WithVSphereStringFromEnvVar added in v0.9.0

func WithVSphereStringFromEnvVar(envVar string, opt func(string) VSphereFiller) VSphereFiller

type VSphereMachineConfigFiller added in v0.7.1

type VSphereMachineConfigFiller func(m *anywherev1.VSphereMachineConfig)

func WithDatastore

func WithDatastore(value string) VSphereMachineConfigFiller

func WithFolder

func WithFolder(value string) VSphereMachineConfigFiller

func WithResourcePool

func WithResourcePool(value string) VSphereMachineConfigFiller

func WithSSHKey added in v0.7.1

func WithSSHKey(value string) VSphereMachineConfigFiller

func WithStoragePolicyName

func WithStoragePolicyName(value string) VSphereMachineConfigFiller

func WithStringFromEnvVar

func WithStringFromEnvVar(envVar string, opt func(string) VSphereMachineConfigFiller) VSphereMachineConfigFiller

WithStringFromEnvVar returns a VSphereMachineConfigFiller function with the value from an envVar passed to it.

func WithTags added in v0.13.0

func WithTags(value []string) VSphereMachineConfigFiller

WithTags add provided tags to all machines.

func WithTemplate

func WithTemplate(value string) VSphereMachineConfigFiller

func WithVSphereMachineDefaultValues added in v0.7.1

func WithVSphereMachineDefaultValues() VSphereMachineConfigFiller

type WorkerNodeGroupFiller added in v0.7.1

type WorkerNodeGroupFiller func(w *anywherev1.WorkerNodeGroupConfiguration)

func WithCount added in v0.7.1

func WithCount(count int) WorkerNodeGroupFiller

func WithLabel added in v0.7.1

func WithLabel(key, value string) WorkerNodeGroupFiller

func WithMachineGroupRef added in v0.7.1

func WithMachineGroupRef(name, kind string) WorkerNodeGroupFiller

func WithNoTaints added in v0.7.1

func WithNoTaints() WorkerNodeGroupFiller

func WithTaint added in v0.7.1

func WithTaint(taint corev1.Taint) WorkerNodeGroupFiller

Jump to

Keyboard shortcuts

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