Documentation
¶
Index ¶
- func CalcNodeCidrSize(podSubnet string) (int32, bool)
- func GetAPIServerCertSANs(c *platformv1.Cluster) []string
- func GetIndexedIP(subnet string, index int) (net.IP, error)
- func GetNodeCIDRMaskSize(clusterCIDR string, maxNodePodNum int32) (int32, error)
- func GetServiceCIDRAndNodeCIDRMaskSize(clusterCIDR string, maxClusterServiceNum int32, maxNodePodNum int32) (string, int32, error)
- func PrepareClusterScale(cluster *platform.Cluster, oldCluster *platform.Cluster) ([]platform.ClusterMachine, error)
- type Provider
- func (p *Provider) EnsureAPIServerCert(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureAuthzWebhook(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureCNIPlugins(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureCSIOperator(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureCilium(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureCleanClusterMark(ctx context.Context, c *typesv1.Cluster) error
- func (p *Provider) EnsureCleanup(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureClusterComplete(ctx context.Context, cluster *v1.Cluster) error
- func (p *Provider) EnsureConntrackTools(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureContainerRuntime(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureContainerd(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureCopyFiles(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureCreateClusterMark(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureDisableOffloading(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureDisableSwap(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureDocker(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureGPUManager(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureGalaxy(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureInitAPIServerHost(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureJoinPhaseControlPlaneJoinETCD(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureJoinPhaseControlPlaneJoinUpdateStatus(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureJoinPhaseControlPlanePrepare(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureJoinPhaseKubeletStart(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureJoinPhasePreflight(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureKeepalivedInit(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureKeepalivedWithLBOption(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureKernelModule(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureKubeadm(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureKubeadmInitPhaseAddon(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureKubeadmInitPhaseBootstrapToken(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureKubeadmInitPhaseCerts(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureKubeadmInitPhaseControlPlane(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureKubeadmInitPhaseETCD(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureKubeadmInitPhaseKubeConfig(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureKubeadmInitPhaseKubeletStart(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureKubeadmInitPhaseUploadCerts(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureKubeadmInitPhaseUploadConfig(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureKubeadmInitPhaseWaitControlPlane(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureKubeconfig(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureKubelet(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureKubernetesImages(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureMarkControlPlane(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureMetricsServer(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureModifyAPIServerHost(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureNvidiaContainerRuntime(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureNvidiaDevicePlugin(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureNvidiaDriver(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsurePatchAnnotation(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsurePostClusterInstallHook(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsurePostClusterUpgradeHook(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsurePostInstallHook(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsurePreClusterInstallHook(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsurePreClusterUpgradeHook(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsurePreInstallHook(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsurePreflight(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsurePrepareForControlplane(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureRegistryHosts(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureRemoveETCDMember(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureRemoveMachine(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureRemoveNode(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureRenewCerts(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureStoreCredential(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureSysctl(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureThirdPartyHA(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureThirdPartyHAInit(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureUpgradeControlPlaneNode(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) EnsureUpgradeCoreDNS(ctx context.Context, c *v1.Cluster) error
- func (p *Provider) PreCreate(cluster *types.Cluster) error
- func (p *Provider) RegisterHandler(mux *mux.PathRecorderMux)
- func (p *Provider) Validate(cluster *types.Cluster) field.ErrorList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalcNodeCidrSize ¶ added in v1.6.0
func GetAPIServerCertSANs ¶ added in v1.3.1
func GetAPIServerCertSANs(c *platformv1.Cluster) []string
GetAPIServerCertSANs returns extra APIServer's certSANs need to pass kubeadm
func GetNodeCIDRMaskSize ¶ added in v1.2.5
func PrepareClusterScale ¶ added in v1.6.0
Types ¶
type Provider ¶
type Provider struct { *clusterprovider.DelegateProvider // contains filtered or unexported fields }
func NewProvider ¶
func (*Provider) EnsureAPIServerCert ¶ added in v1.3.1
func (*Provider) EnsureAuthzWebhook ¶ added in v1.3.1
func (*Provider) EnsureCNIPlugins ¶
func (*Provider) EnsureCSIOperator ¶ added in v1.3.1
func (*Provider) EnsureCilium ¶ added in v1.7.0
func (*Provider) EnsureCleanClusterMark ¶ added in v1.3.1
func (*Provider) EnsureCleanup ¶ added in v1.2.5
func (*Provider) EnsureClusterComplete ¶
因为validate那里没法更新对象(不能存储) PreCrete,在api中错误只能panic,响应不会有报错提示,所以只能挪到这里处理
func (*Provider) EnsureConntrackTools ¶ added in v1.3.1
func (*Provider) EnsureContainerRuntime ¶ added in v1.8.0
func (*Provider) EnsureContainerd ¶ added in v1.8.0
func (*Provider) EnsureCopyFiles ¶
func (*Provider) EnsureCreateClusterMark ¶ added in v1.3.1
func (*Provider) EnsureDisableOffloading ¶ added in v1.4.0
func (*Provider) EnsureDisableSwap ¶
func (*Provider) EnsureDocker ¶
func (*Provider) EnsureGPUManager ¶ added in v1.3.1
func (*Provider) EnsureGalaxy ¶
func (*Provider) EnsureInitAPIServerHost ¶ added in v1.6.0
func (*Provider) EnsureJoinPhaseControlPlaneJoinETCD ¶ added in v1.3.1
func (*Provider) EnsureJoinPhaseControlPlaneJoinUpdateStatus ¶ added in v1.3.1
func (*Provider) EnsureJoinPhaseControlPlanePrepare ¶ added in v1.3.1
func (*Provider) EnsureJoinPhaseKubeletStart ¶ added in v1.3.1
func (*Provider) EnsureJoinPhasePreflight ¶ added in v1.3.1
func (*Provider) EnsureKeepalivedInit ¶ added in v1.3.1
EnsureKeepalivedInit make sure all master node has cleaning iptable table so in kubeadm join time apiserver may not join it self. keepalived only installs in master node 0 before kubeadm init phase to prevet from vip failover in kubeadm join(etcd phase)
func (*Provider) EnsureKeepalivedWithLBOption ¶ added in v1.4.0
func (*Provider) EnsureKernelModule ¶
func (*Provider) EnsureKubeadm ¶
func (*Provider) EnsureKubeadmInitPhaseAddon ¶ added in v1.3.1
func (*Provider) EnsureKubeadmInitPhaseBootstrapToken ¶ added in v1.3.1
func (*Provider) EnsureKubeadmInitPhaseCerts ¶ added in v1.3.1
func (*Provider) EnsureKubeadmInitPhaseControlPlane ¶ added in v1.3.1
func (*Provider) EnsureKubeadmInitPhaseETCD ¶ added in v1.3.1
func (*Provider) EnsureKubeadmInitPhaseKubeConfig ¶ added in v1.3.1
func (*Provider) EnsureKubeadmInitPhaseKubeletStart ¶ added in v1.3.1
func (*Provider) EnsureKubeadmInitPhaseUploadCerts ¶ added in v1.3.1
func (*Provider) EnsureKubeadmInitPhaseUploadConfig ¶ added in v1.3.1
func (*Provider) EnsureKubeadmInitPhaseWaitControlPlane ¶ added in v1.3.1
func (*Provider) EnsureKubeconfig ¶
func (*Provider) EnsureKubelet ¶
func (*Provider) EnsureKubernetesImages ¶ added in v1.3.1
func (*Provider) EnsureMarkControlPlane ¶
func (*Provider) EnsureMetricsServer ¶ added in v1.3.1
func (*Provider) EnsureModifyAPIServerHost ¶ added in v1.6.0
func (*Provider) EnsureNvidiaContainerRuntime ¶
func (*Provider) EnsureNvidiaDevicePlugin ¶
func (*Provider) EnsureNvidiaDriver ¶
func (*Provider) EnsurePatchAnnotation ¶
func (*Provider) EnsurePostClusterInstallHook ¶ added in v1.4.0
func (*Provider) EnsurePostClusterUpgradeHook ¶ added in v1.4.0
func (*Provider) EnsurePostInstallHook ¶
func (*Provider) EnsurePreClusterInstallHook ¶ added in v1.4.0
func (*Provider) EnsurePreClusterUpgradeHook ¶ added in v1.4.0
func (*Provider) EnsurePreInstallHook ¶
func (*Provider) EnsurePreflight ¶
func (*Provider) EnsurePrepareForControlplane ¶
func (*Provider) EnsureRegistryHosts ¶
func (*Provider) EnsureRemoveETCDMember ¶ added in v1.6.0
func (*Provider) EnsureRemoveMachine ¶ added in v1.8.0
func (*Provider) EnsureRemoveNode ¶ added in v1.6.0
func (*Provider) EnsureRenewCerts ¶ added in v1.3.1
func (*Provider) EnsureStoreCredential ¶
func (*Provider) EnsureSysctl ¶
func (*Provider) EnsureThirdPartyHA ¶ added in v1.3.1
func (*Provider) EnsureThirdPartyHAInit ¶ added in v1.3.1
func (*Provider) EnsureUpgradeControlPlaneNode ¶ added in v1.3.1
func (*Provider) EnsureUpgradeCoreDNS ¶ added in v1.6.0
func (*Provider) RegisterHandler ¶ added in v1.3.1
func (p *Provider) RegisterHandler(mux *mux.PathRecorderMux)
Click to show internal directories.
Click to hide internal directories.