Documentation
¶
Index ¶
- type Dependencies
- type Factory
- func (f *Factory) Build(ctx context.Context) (*Dependencies, error)
- func (f *Factory) GetProxyConfiguration() map[string]string
- func (f *Factory) UseExecutableImage(image string) *Factory
- func (f *Factory) UseExecutablesDockerClient(client executables.DockerClient) *Factory
- func (f *Factory) UseProxyConfiguration(proxyConfig map[string]string) *Factory
- func (f *Factory) WithAnalyzerFactory() *Factory
- func (f *Factory) WithAwsIamAuth() *Factory
- func (f *Factory) WithAwsSnow() *Factory
- func (f *Factory) WithBootstrapper() *Factory
- func (f *Factory) WithCAPIManager() *Factory
- func (f *Factory) WithCNIInstaller(spec *cluster.Spec, provider providers.Provider) *Factory
- func (f *Factory) WithCiliumTemplater() *Factory
- func (f *Factory) WithCliConfig(cliConfig *config.CliConfig) *Factory
- func (f *Factory) WithCloudStackValidatorRegistry(skipIPCheck bool) *Factory
- func (f *Factory) WithClusterManager(clusterConfig *v1alpha1.Cluster, opts ...clustermanager.ClusterManagerOpt) *Factory
- func (f *Factory) WithClusterctl() *Factory
- func (f *Factory) WithCollectorFactory() *Factory
- func (f *Factory) WithCuratedPackagesRegistry(registryName, kubeVersion string, version version.Info) *Factory
- func (f *Factory) WithDiagnosticBundleFactory() *Factory
- func (f *Factory) WithDiagnosticCollectorImage(diagnosticCollectorImage string) *Factory
- func (f *Factory) WithDocker() *Factory
- func (f *Factory) WithDockerLogin() *Factory
- func (f *Factory) WithEksdInstaller() *Factory
- func (f *Factory) WithEksdUpgrader() *Factory
- func (f *Factory) WithExecutableBuilder() *Factory
- func (f *Factory) WithExecutableImage() *Factory
- func (f *Factory) WithExecutableMountDirs(mountDirs ...string) *Factory
- func (f *Factory) WithFileReader() *Factory
- func (f *Factory) WithFlux() *Factory
- func (f *Factory) WithGit(clusterConfig *v1alpha1.Cluster, fluxConfig *v1alpha1.FluxConfig) *Factory
- func (f *Factory) WithGitOpsFlux(clusterConfig *v1alpha1.Cluster, fluxConfig *v1alpha1.FluxConfig, ...) *Factory
- func (f *Factory) WithGovc() *Factory
- func (f *Factory) WithHelm(opts ...executables.HelmOpt) *Factory
- func (f *Factory) WithIPValidator() *Factory
- func (f *Factory) WithKind() *Factory
- func (f *Factory) WithKubectl() *Factory
- func (f *Factory) WithLocalExecutables() *Factory
- func (f *Factory) WithManifestReader() *Factory
- func (f *Factory) WithNetworking(clusterConfig *v1alpha1.Cluster) *Factory
- func (f *Factory) WithPackageClient() *Factory
- func (f *Factory) WithPackageControllerClient(spec *cluster.Spec, kubeConfig string) *Factory
- func (f *Factory) WithPackageInstaller(spec *cluster.Spec, packagesLocation, kubeConfig string) *Factory
- func (f *Factory) WithPrismClient(clusterConfigFile string) *Factory
- func (f *Factory) WithProvider(clusterConfigFile string, clusterConfig *v1alpha1.Cluster, skipIpCheck bool, ...) *Factory
- func (f *Factory) WithProxyConfiguration() *Factory
- func (f *Factory) WithRegistryMirror(registryMirror *registrymirror.RegistryMirror) *Factory
- func (f *Factory) WithSnowConfigManager() *Factory
- func (f *Factory) WithTroubleshoot() *Factory
- func (f *Factory) WithUnAuthKubeClient() *Factory
- func (f *Factory) WithVSphereDefaulter() *Factory
- func (f *Factory) WithVSphereValidator() *Factory
- func (f *Factory) WithWriter() *Factory
- func (f *Factory) WithWriterFolder(folder string) *Factory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dependencies ¶
type Dependencies struct {
Provider providers.Provider
ClusterAwsCli *executables.Clusterawsadm
DockerClient *executables.Docker
Kubectl *executables.Kubectl
Govc *executables.Govc
CloudStackValidatorRegistry cloudstack.ValidatorRegistry
SnowAwsClientRegistry *snow.AwsClientRegistry
SnowConfigManager *snow.ConfigManager
Writer filewriter.FileWriter
Kind *executables.Kind
Clusterctl *executables.Clusterctl
Flux *executables.Flux
Troubleshoot *executables.Troubleshoot
Helm *executables.Helm
UnAuthKubeClient *kubernetes.UnAuthClient
Networking clustermanager.Networking
CNIInstaller workload.CNIInstaller
CiliumTemplater *cilium.Templater
AwsIamAuth *awsiamauth.Installer
ClusterManager *clustermanager.ClusterManager
Bootstrapper *bootstrapper.Bootstrapper
GitOpsFlux *flux.Flux
Git *gitfactory.GitTools
EksdInstaller *eksd.Installer
EksdUpgrader *eksd.Upgrader
AnalyzerFactory diagnostics.AnalyzerFactory
CollectorFactory diagnostics.CollectorFactory
DignosticCollectorFactory diagnostics.DiagnosticBundleFactory
CAPIManager *clusterapi.Manager
FileReader *files.Reader
ManifestReader *manifests.Reader
CliConfig *config.CliConfig
PackageInstaller interfaces.PackageInstaller
BundleRegistry curatedpackages.BundleRegistry
PackageControllerClient *curatedpackages.PackageControllerClient
PackageClient curatedpackages.PackageHandler
VSphereValidator *vsphere.Validator
VSphereDefaulter *vsphere.Defaulter
NutanixPrismClient *v3.Client
SnowValidator *snow.Validator
IPValidator *validator.IPValidator
// contains filtered or unexported fields
}
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
Factory helps initialization.
func NewFactory ¶
func NewFactory() *Factory
func (*Factory) GetProxyConfiguration ¶ added in v0.11.0
func (*Factory) UseExecutableImage ¶ added in v0.9.0
func (*Factory) UseExecutablesDockerClient ¶ added in v0.11.0
func (f *Factory) UseExecutablesDockerClient(client executables.DockerClient) *Factory
UseExecutablesDockerClient forces a specific DockerClient to build Executables as opposed to follow the normal building flow This is only for testing.
func (*Factory) UseProxyConfiguration ¶ added in v0.11.0
func (*Factory) WithAnalyzerFactory ¶
func (*Factory) WithAwsIamAuth ¶
func (*Factory) WithAwsSnow ¶ added in v0.9.0
func (*Factory) WithBootstrapper ¶
func (*Factory) WithCAPIManager ¶
func (*Factory) WithCNIInstaller ¶ added in v0.13.0
WithCNIInstaller builds a CNI installer for the given cluster.
func (*Factory) WithCiliumTemplater ¶ added in v0.12.0
func (*Factory) WithCliConfig ¶ added in v0.9.2
func (*Factory) WithCloudStackValidatorRegistry ¶ added in v0.13.0
WithCloudStackValidatorRegistry initializes the CloudStack validator for the object being constructed to make it available in the constructor.
func (*Factory) WithClusterManager ¶
func (f *Factory) WithClusterManager(clusterConfig *v1alpha1.Cluster, opts ...clustermanager.ClusterManagerOpt) *Factory
func (*Factory) WithClusterctl ¶
func (*Factory) WithCollectorFactory ¶
func (*Factory) WithCuratedPackagesRegistry ¶ added in v0.9.2
func (*Factory) WithDiagnosticBundleFactory ¶
func (*Factory) WithDiagnosticCollectorImage ¶
func (*Factory) WithDocker ¶
func (*Factory) WithDockerLogin ¶ added in v0.12.0
WithDockerLogin adds a docker login to the build steps.
func (*Factory) WithEksdInstaller ¶ added in v0.9.0
func (*Factory) WithEksdUpgrader ¶ added in v0.9.0
func (*Factory) WithExecutableBuilder ¶
func (*Factory) WithExecutableImage ¶ added in v0.7.0
WithExecutableImage sets the right cli tools image for the executable builder, reading from the Bundle and using the first VersionsBundle This is just the default for when there is not an specific kubernetes version available For commands that receive a cluster config file or a kubernetes version directly as input, use UseExecutableImage to specify the image directly.
func (*Factory) WithExecutableMountDirs ¶ added in v0.7.0
func (*Factory) WithFileReader ¶ added in v0.9.0
func (*Factory) WithGitOpsFlux ¶ added in v0.11.0
func (*Factory) WithHelm ¶ added in v0.7.0
func (f *Factory) WithHelm(opts ...executables.HelmOpt) *Factory
func (*Factory) WithIPValidator ¶ added in v0.13.0
WithIPValidator builds the IPValidator for the given cluster.
func (*Factory) WithKubectl ¶
func (*Factory) WithLocalExecutables ¶ added in v0.11.0
func (*Factory) WithManifestReader ¶ added in v0.9.0
func (*Factory) WithNetworking ¶
func (*Factory) WithPackageClient ¶ added in v0.11.0
func (*Factory) WithPackageControllerClient ¶ added in v0.11.0
func (*Factory) WithPackageInstaller ¶ added in v0.9.2
func (*Factory) WithPrismClient ¶ added in v0.12.0
func (*Factory) WithProvider ¶
func (*Factory) WithProxyConfiguration ¶ added in v0.9.0
func (*Factory) WithRegistryMirror ¶ added in v0.9.0
func (f *Factory) WithRegistryMirror(registryMirror *registrymirror.RegistryMirror) *Factory
WithRegistryMirror configures the factory to use registry mirror wherever applicable.