Documentation ¶
Index ¶
- func CapiChangeDiff(currentSpec, newSpec *cluster.Spec, provider providers.Provider) *types.ChangeDiff
- func Cluster(clusterSpec *cluster.Spec, infrastructureObject, controlPlaneObject APIObject) *clusterv1.Cluster
- func InfrastructureAPIVersion() string
- func KubeadmConfigTemplate(clusterSpec *cluster.Spec, ...) bootstrapv1.KubeadmConfigTemplate
- func KubeadmControlPlane(clusterSpec *cluster.Spec, infrastructureObject APIObject) *controlplanev1.KubeadmControlPlane
- func MachineDeployment(clusterSpec *cluster.Spec, ...) clusterv1.MachineDeployment
- type APIObject
- type CAPIChangeDiff
- type CAPIClient
- type Client
- type ClusterResourceSet
- type ExtraArgs
- func AwsIamAuthExtraArgs(awsiam *v1alpha1.AWSIamConfig) ExtraArgs
- func ControlPlaneNodeLabelsExtraArgs(cpc v1alpha1.ControlPlaneConfiguration) ExtraArgs
- func OIDCToExtraArgs(oidc *v1alpha1.OIDCConfig) ExtraArgs
- func PodIAMAuthExtraArgs(podIAMConfig *v1alpha1.PodIAMConfig) ExtraArgs
- func ResolvConfExtraArgs(resolvConf *v1alpha1.ResolvConf) ExtraArgs
- func SecureEtcdTlsCipherSuitesExtraArgs() ExtraArgs
- func SecureTlsCipherSuitesExtraArgs() ExtraArgs
- func WorkerNodeLabelsExtraArgs(wnc v1alpha1.WorkerNodeGroupConfiguration) ExtraArgs
- type Installer
- type KubectlClient
- type Manager
- type ResourceSetManager
- type Upgrader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CapiChangeDiff ¶ added in v0.7.0
func InfrastructureAPIVersion ¶ added in v0.8.0
func InfrastructureAPIVersion() string
func KubeadmConfigTemplate ¶ added in v0.8.0
func KubeadmConfigTemplate(clusterSpec *cluster.Spec, workerNodeGroupConfig v1alpha1.WorkerNodeGroupConfiguration) bootstrapv1.KubeadmConfigTemplate
func KubeadmControlPlane ¶ added in v0.8.0
func KubeadmControlPlane(clusterSpec *cluster.Spec, infrastructureObject APIObject) *controlplanev1.KubeadmControlPlane
func MachineDeployment ¶ added in v0.8.0
func MachineDeployment(clusterSpec *cluster.Spec, workerNodeGroupConfig v1alpha1.WorkerNodeGroupConfiguration, bootstrapObject, infrastructureObject APIObject) clusterv1.MachineDeployment
Types ¶
type CAPIChangeDiff ¶ added in v0.6.0
type CAPIChangeDiff struct { CertManager *types.ComponentChangeDiff Core *types.ComponentChangeDiff ControlPlane *types.ComponentChangeDiff BootstrapProviders []types.ComponentChangeDiff InfrastructureProvider *types.ComponentChangeDiff }
type CAPIClient ¶ added in v0.6.0
type CAPIClient interface { Upgrade(ctx context.Context, managementCluster *types.Cluster, provider providers.Provider, newSpec *cluster.Spec, changeDiff *CAPIChangeDiff) error InstallEtcdadmProviders(ctx context.Context, clusterSpec *cluster.Spec, cluster *types.Cluster, provider providers.Provider, installProviders []string) error }
type Client ¶ added in v0.6.0
type Client interface { GetClusterResourceSet(ctx context.Context, kubeconfigFile, name, namespace string) (*addons.ClusterResourceSet, error) GetConfigMap(ctx context.Context, kubeconfigFile, name, namespace string) (*corev1.ConfigMap, error) GetSecretFromNamespace(ctx context.Context, kubeconfigFile, name, namespace string) (*corev1.Secret, error) ApplyKubeSpecFromBytes(ctx context.Context, cluster *types.Cluster, data []byte) error }
type ClusterResourceSet ¶
type ClusterResourceSet struct {
// contains filtered or unexported fields
}
func NewClusterResourceSet ¶
func NewClusterResourceSet(clusterName string) *ClusterResourceSet
func (ClusterResourceSet) AddResource ¶
func (c ClusterResourceSet) AddResource(name string, content []byte)
func (ClusterResourceSet) ToYaml ¶
func (c ClusterResourceSet) ToYaml() ([]byte, error)
type ExtraArgs ¶
func AwsIamAuthExtraArgs ¶ added in v0.6.0
func AwsIamAuthExtraArgs(awsiam *v1alpha1.AWSIamConfig) ExtraArgs
func ControlPlaneNodeLabelsExtraArgs ¶ added in v0.7.0
func ControlPlaneNodeLabelsExtraArgs(cpc v1alpha1.ControlPlaneConfiguration) ExtraArgs
func OIDCToExtraArgs ¶
func OIDCToExtraArgs(oidc *v1alpha1.OIDCConfig) ExtraArgs
func PodIAMAuthExtraArgs ¶ added in v0.6.1
func PodIAMAuthExtraArgs(podIAMConfig *v1alpha1.PodIAMConfig) ExtraArgs
func ResolvConfExtraArgs ¶ added in v0.7.0
func ResolvConfExtraArgs(resolvConf *v1alpha1.ResolvConf) ExtraArgs
func SecureEtcdTlsCipherSuitesExtraArgs ¶ added in v0.7.0
func SecureEtcdTlsCipherSuitesExtraArgs() ExtraArgs
func SecureTlsCipherSuitesExtraArgs ¶ added in v0.7.0
func SecureTlsCipherSuitesExtraArgs() ExtraArgs
We don't need to add these once the Kubernetes components default to using the secure cipher suites
func WorkerNodeLabelsExtraArgs ¶ added in v0.7.0
func WorkerNodeLabelsExtraArgs(wnc v1alpha1.WorkerNodeGroupConfiguration) ExtraArgs
func (ExtraArgs) AddIfNotEmpty ¶
func (ExtraArgs) ToPartialYaml ¶
func (e ExtraArgs) ToPartialYaml() templater.PartialYaml
type Installer ¶ added in v0.6.0
type Installer struct {
// contains filtered or unexported fields
}
func NewInstaller ¶ added in v0.6.0
func NewInstaller(capiClient CAPIClient, kubectlClient KubectlClient) *Installer
type KubectlClient ¶ added in v0.6.0
type Manager ¶ added in v0.6.0
func NewManager ¶ added in v0.6.0
func NewManager(capiClient CAPIClient, kubectlClient KubectlClient) *Manager
type ResourceSetManager ¶ added in v0.6.0
type ResourceSetManager struct {
// contains filtered or unexported fields
}
ResourceSetManager helps managing capi ClusterResourceSet's It doesn't implement the complete ClusterResourceSet specification so there might be some configurations that are not supported. JsonLists as content in resources are not supported
func NewResourceSetManager ¶ added in v0.6.0
func NewResourceSetManager(client Client) *ResourceSetManager
func (*ResourceSetManager) ForceUpdate ¶ added in v0.6.0
type Upgrader ¶ added in v0.6.0
type Upgrader struct {
// contains filtered or unexported fields
}
func NewUpgrader ¶ added in v0.6.0
func NewUpgrader(capiClient CAPIClient, kubectlClient KubectlClient) *Upgrader
Source Files ¶
Click to show internal directories.
Click to hide internal directories.