Documentation ¶
Index ¶
- Constants
- func GetDNSIP(svcSubnet string) (net.IP, error)
- func GetServiceCIDRAndNodeCIDRMaskSize(clusterCIDR string, maxClusterServiceNum int32, maxNodePodNum int32) (string, int32, error)
- type Address
- type Cluster
- func (c *Cluster) AddAddress(addrType platformv1.AddressType, host string, port int32)
- func (c *Cluster) Address(addrType platformv1.AddressType) *Address
- func (c *Cluster) Clientset() (*kubernetes.Clientset, error)
- func (c *Cluster) RemoveAddress(addrType platformv1.AddressType)
- func (c *Cluster) SetCondition(newCondition platformv1.ClusterCondition)
- type Handler
- type Provider
- func (p *Provider) AfterCreate(cluster platform.Cluster) ([]interface{}, error)
- func (p *Provider) EnsureCNIPlugins(c *Cluster) error
- func (p *Provider) EnsureClusterComplete(cluster *Cluster) error
- func (p *Provider) EnsureCopyFiles(c *Cluster) error
- func (p *Provider) EnsureDisableSwap(c *Cluster) error
- func (p *Provider) EnsureDocker(c *Cluster) error
- func (p *Provider) EnsureGalaxy(c *Cluster) error
- func (p *Provider) EnsureJoinControlePlane(c *Cluster) error
- func (p *Provider) EnsureKernelModule(c *Cluster) error
- func (p *Provider) EnsureKubeadm(c *Cluster) error
- func (p *Provider) EnsureKubeadmInitAddonPhase(c *Cluster) error
- func (p *Provider) EnsureKubeadmInitBootstrapTokenPhase(c *Cluster) error
- func (p *Provider) EnsureKubeadmInitCertsPhase(c *Cluster) error
- func (p *Provider) EnsureKubeadmInitControlPlanePhase(c *Cluster) error
- func (p *Provider) EnsureKubeadmInitEtcdPhase(c *Cluster) error
- func (p *Provider) EnsureKubeadmInitKubeConfigPhase(c *Cluster) error
- func (p *Provider) EnsureKubeadmInitKubeletStartPhase(c *Cluster) error
- func (p *Provider) EnsureKubeadmInitUploadCertsPhase(c *Cluster) error
- func (p *Provider) EnsureKubeadmInitUploadConfigPhase(c *Cluster) error
- func (p *Provider) EnsureKubeadmInitWaitControlPlanePhase(c *Cluster) error
- func (p *Provider) EnsureKubeconfig(c *Cluster) error
- func (p *Provider) EnsureKubelet(c *Cluster) error
- func (p *Provider) EnsureMarkControlPlane(c *Cluster) error
- func (p *Provider) EnsureNvidiaContainerRuntime(c *Cluster) error
- func (p *Provider) EnsureNvidiaDevicePlugin(c *Cluster) error
- func (p *Provider) EnsureNvidiaDriver(c *Cluster) error
- func (p *Provider) EnsurePatchAnnotation(c *Cluster) error
- func (p *Provider) EnsurePostInstallHook(c *Cluster) error
- func (p *Provider) EnsurePreInstallHook(c *Cluster) error
- func (p *Provider) EnsurePreflight(c *Cluster) error
- func (p *Provider) EnsurePrepareForControlplane(c *Cluster) error
- func (p *Provider) EnsureRegistryHosts(c *Cluster) error
- func (p *Provider) EnsureStoreCredential(c *Cluster) error
- func (p *Provider) EnsureSysctl(c *Cluster) error
- func (p *Provider) Name() string
- func (p *Provider) OnDelete(cluster platformv1.Cluster) error
- func (p *Provider) OnInitialize(args clusterprovider.Cluster) (clusterprovider.Cluster, error)
- func (p *Provider) OnUpdate(args clusterprovider.Cluster) (clusterprovider.Cluster, error)
- func (p *Provider) PreCreate(user clusterprovider.UserInfo, cluster platform.Cluster) (platform.Cluster, error)
- func (p *Provider) Validate(c platform.Cluster) (field.ErrorList, error)
- func (p *Provider) ValidateCredential(cluster clusterprovider.InternalCluster) (field.ErrorList, error)
- func (p *Provider) ValidateUpdate(cluster platform.Cluster, oldCluster platform.Cluster) (field.ErrorList, error)
Constants ¶
View Source
const ( ReasonFailedProcess = "FailedProcess" ReasonWaitingProcess = "WaitingProcess" ReasonSuccessfulProcess = "SuccessfulProcess" ReasonSkipProcess = "SkipProcess" ConditionTypeDone = "EnsureDone" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Address ¶
type Address platformv1.ClusterAddress
type Cluster ¶
func NewCluster ¶
func (*Cluster) AddAddress ¶
func (c *Cluster) AddAddress(addrType platformv1.AddressType, host string, port int32)
func (*Cluster) Address ¶
func (c *Cluster) Address(addrType platformv1.AddressType) *Address
func (*Cluster) RemoveAddress ¶
func (c *Cluster) RemoveAddress(addrType platformv1.AddressType)
func (*Cluster) SetCondition ¶
func (c *Cluster) SetCondition(newCondition platformv1.ClusterCondition)
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func (*Provider) AfterCreate ¶
func (*Provider) EnsureCNIPlugins ¶
func (*Provider) EnsureClusterComplete ¶
因为validate那里没法更新对象(不能存储) PreCrete,在api中错误只能panic,响应不会有报错提示,所以只能挪到这里处理
func (*Provider) EnsureCopyFiles ¶
func (*Provider) EnsureDisableSwap ¶
func (*Provider) EnsureDocker ¶
func (*Provider) EnsureGalaxy ¶
func (*Provider) EnsureJoinControlePlane ¶
func (*Provider) EnsureKernelModule ¶
func (*Provider) EnsureKubeadm ¶
func (*Provider) EnsureKubeadmInitAddonPhase ¶
func (*Provider) EnsureKubeadmInitBootstrapTokenPhase ¶
func (*Provider) EnsureKubeadmInitCertsPhase ¶
func (*Provider) EnsureKubeadmInitControlPlanePhase ¶
func (*Provider) EnsureKubeadmInitEtcdPhase ¶
func (*Provider) EnsureKubeadmInitKubeConfigPhase ¶
func (*Provider) EnsureKubeadmInitKubeletStartPhase ¶
func (*Provider) EnsureKubeadmInitUploadCertsPhase ¶
func (*Provider) EnsureKubeadmInitUploadConfigPhase ¶
func (*Provider) EnsureKubeadmInitWaitControlPlanePhase ¶
func (*Provider) EnsureKubeconfig ¶
func (*Provider) EnsureKubelet ¶
func (*Provider) EnsureMarkControlPlane ¶
func (*Provider) EnsureNvidiaContainerRuntime ¶
func (*Provider) EnsureNvidiaDevicePlugin ¶
func (*Provider) EnsureNvidiaDriver ¶
func (*Provider) EnsurePatchAnnotation ¶
func (*Provider) EnsurePostInstallHook ¶
func (*Provider) EnsurePreInstallHook ¶
func (*Provider) EnsurePreflight ¶
func (*Provider) EnsurePrepareForControlplane ¶
func (*Provider) EnsureRegistryHosts ¶
func (*Provider) EnsureStoreCredential ¶
func (*Provider) EnsureSysctl ¶
func (*Provider) OnInitialize ¶
func (p *Provider) OnInitialize(args clusterprovider.Cluster) (clusterprovider.Cluster, error)
func (*Provider) OnUpdate ¶
func (p *Provider) OnUpdate(args clusterprovider.Cluster) (clusterprovider.Cluster, error)
func (*Provider) ValidateCredential ¶
func (p *Provider) ValidateCredential(cluster clusterprovider.InternalCluster) (field.ErrorList, error)
Click to show internal directories.
Click to hide internal directories.