api

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HardwareVendorDell        = "dell"
	HardwareVendorHP          = "hp"
	HardwareVendorSuperMicro  = "supermicro"
	HardwareVendorUnspecified = "unspecified"
)

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

func NewBmcSecretConfig(h *Hardware) pbnj.BmcSecretConfig

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

func WithExternalEtcdMachineRef(kind string) ClusterFiller

func WithExternalEtcdTopology

func WithExternalEtcdTopology(count int) ClusterFiller

func WithGitOpsRef

func WithGitOpsRef(name 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, 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 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 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 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 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 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 WithTinkerbellCertURL added in v0.8.0

func WithTinkerbellCertURL(value string) TinkerbellFiller

func WithTinkerbellEtcdMachineConfig added in v0.8.0

func WithTinkerbellEtcdMachineConfig() TinkerbellFiller

func WithTinkerbellGRPCAuthEndpoint added in v0.8.0

func WithTinkerbellGRPCAuthEndpoint(value string) TinkerbellFiller

func WithTinkerbellHegelURL added in v0.8.0

func WithTinkerbellHegelURL(value string) TinkerbellFiller

func WithTinkerbellPBnJGRPCAuthEndpoint added in v0.8.0

func WithTinkerbellPBnJGRPCAuthEndpoint(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 WithBoolFromEnvVar

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

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

func WithMachineConfig(name string, fillers ...VSphereMachineConfigFiller) 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 WithStringFromEnvVar

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

func WithTLSInsecure

func WithTLSInsecure(value bool) VSphereFiller

func WithTLSThumbprint

func WithTLSThumbprint(value string) VSphereFiller

func WithTemplateForAllMachines added in v0.7.1

func WithTemplateForAllMachines(value string) VSphereFiller

func WithVSphereConfigNamespaceForAllMachinesAndDatacenter added in v0.7.1

func WithVSphereConfigNamespaceForAllMachinesAndDatacenter(ns string) 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 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