api

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: Apache-2.0 Imports: 20 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"
)
View Source
const DefaultCloudstackUser = "capc"

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 AutoFillCloudStackProvider added in v0.9.0

func AutoFillCloudStackProvider(filename string, fillers ...CloudStackFiller) ([]byte, error)

func AutoFillClusterFromFile added in v0.7.1

func AutoFillClusterFromFile(filename string, fillers ...ClusterFiller) ([]byte, error)

func AutoFillClusterFromYaml added in v0.7.1

func AutoFillClusterFromYaml(yamlContent []byte, fillers ...ClusterFiller) ([]byte, error)

func AutoFillNutanixProvider added in v0.12.0

func AutoFillNutanixProvider(filename string, fillers ...NutanixFiller) ([]byte, error)

AutoFillNutanixProvider fills in the fields for the Nutanix provider spec.

func AutoFillSnowProvider added in v0.9.0

func AutoFillSnowProvider(filename string, fillers ...SnowFiller) ([]byte, error)

func AutoFillTinkerbellProvider added in v0.8.0

func AutoFillTinkerbellProvider(filename string, fillers ...TinkerbellFiller) ([]byte, error)

func AutoFillVSphereProvider

func AutoFillVSphereProvider(filename string, fillers ...VSphereFiller) ([]byte, error)

func CleanupPathsFromYaml added in v0.7.0

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

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 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 NewOIDCConfig

func NewOIDCConfig(name string, opts ...OIDCConfigOpt) *v1alpha1.OIDCConfig

func SplitHardware added in v0.9.2

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

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 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 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 WithCiliumPolicyEnforcementMode added in v0.8.0

func WithCiliumPolicyEnforcementMode(mode anywherev1.CiliumPolicyEnforcementMode) ClusterFiller

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 WithEtcdCountIfExternal added in v0.9.2

func WithEtcdCountIfExternal(count int) ClusterFiller

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 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

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) ClusterFiller

func WithServiceCidr

func WithServiceCidr(svcCidr string) ClusterFiller

func WithStackedEtcdTopology

func WithStackedEtcdTopology() ClusterFiller

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 *v1alpha1.OIDCConfig)

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 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 WithSnowInstanceTypeForAllMachines added in v0.11.0

func WithSnowInstanceTypeForAllMachines(instanceType anywherev1.SnowInstanceType) SnowFiller

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 WithSnowAMIID added in v0.9.0

func WithSnowAMIID(id string) SnowMachineConfigFiller

func WithSnowDevices added in v0.11.0

func WithSnowDevices(devices string) SnowMachineConfigFiller

func WithSnowInstanceType added in v0.9.0

func WithSnowInstanceType(instanceType anywherev1.SnowInstanceType) SnowMachineConfigFiller

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

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) error

func WithCustomTinkerbellMachineConfig added in v0.9.2

func WithCustomTinkerbellMachineConfig(selector string) TinkerbellFiller

func WithHardwareSelectorLabels added in v0.9.2

func WithHardwareSelectorLabels() TinkerbellFiller

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 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

type VSphereConfig

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

type VSphereFiller

type VSphereFiller func(config VSphereConfig)

func WithDatacenter

func WithDatacenter(value string) VSphereFiller

func WithDatastoreForAllMachines added in v0.7.1

func WithDatastoreForAllMachines(value string) VSphereFiller

func WithDisableCSI added in v0.12.0

func WithDisableCSI(value bool) VSphereFiller

WithDisableCSI sets the value for DisableCSI in VSphereDatacenterConfig.

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 WithMemoryMiBForAllMachines added in v0.7.1

func WithMemoryMiBForAllMachines(value int) VSphereFiller

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 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 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