api

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoFillCluster

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

func AutoFillVSphereProvider

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

func NewGitOpsConfig

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

func NewOIDCConfig

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

Types

type ClusterFiller

type ClusterFiller func(c *v1alpha1.Cluster)

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 WithExternalEtcdTopology

func WithExternalEtcdTopology(count int) ClusterFiller

func WithGitOpsRef

func WithGitOpsRef(name string) ClusterFiller

func WithKubernetesVersion

func WithKubernetesVersion(v v1alpha1.KubernetesVersion) 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

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

func WithDatastore(value string) VSphereFiller

func WithDiskGiB

func WithDiskGiB(value int) VSphereFiller

func WithFolder

func WithFolder(value string) VSphereFiller

func WithMemoryMiB

func WithMemoryMiB(value int) VSphereFiller

func WithNetwork

func WithNetwork(value string) VSphereFiller

func WithNumCPUs

func WithNumCPUs(value int) VSphereFiller

func WithOsFamily

func WithOsFamily(value v1alpha1.OSFamily) VSphereFiller

func WithResourcePool

func WithResourcePool(value string) VSphereFiller

func WithSSHAuthorizedKey

func WithSSHAuthorizedKey(value string) VSphereFiller

func WithSSHUsernameAndAuthorizedKey

func WithSSHUsernameAndAuthorizedKey(username string, key string) VSphereFiller

func WithServer

func WithServer(value string) VSphereFiller

func WithStoragePolicyName

func WithStoragePolicyName(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 WithTemplate

func WithTemplate(value string) VSphereFiller

func WithVSphereConfigNamespace added in v0.6.0

func WithVSphereConfigNamespace(ns string) VSphereFiller

Jump to

Keyboard shortcuts

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