Documentation ¶
Index ¶
- func CreateOrRetainConfigMap(ctx context.Context, runtimeclient client.Client, object *corev1.ConfigMap) error
- func CreateOrUpdateClusterRole(ctx context.Context, runtimeclient client.Client, object *rbac.ClusterRole) error
- func CreateOrUpdateClusterRoleBinding(ctx context.Context, runtimeclient client.Client, ...) error
- func CreateOrUpdateDeployment(ctx context.Context, runtimeclient client.Client, object *appsv1.Deployment) error
- func CreateOrUpdateServiceAccount(ctx context.Context, runtimeclient client.Client, ...) error
- func GetDNSIP(svcSubnet string) (net.IP, error)
- type Dns
- type DnsDedploy
- type EctdDeploy
- func (e *EctdDeploy) CheckEtcdReady(etcdClusterName string, namespace string, replicas int) error
- func (e *EctdDeploy) CreateEtcdCerts(etcdClusterName string, namespace string) error
- func (e *EctdDeploy) CreateEtcdStatefulSet(etcdClusterName string, namespace string, replicas int, image string, ...) error
- func (e *EctdDeploy) CreateService(etcdClusterName string, namespace string) error
- func (e *EctdDeploy) DeleteEtcd(etcdClusterName string, namespace string) error
- type EtcdCluster
- type Master
- type MasterDedploy
- func (m *MasterDedploy) CheckMasterRunning(name string, namespace string) error
- func (m *MasterDedploy) CreateCerts(name string, namespace string, exposeIps []string) error
- func (m *MasterDedploy) CreateDeployment(name string, namespace string, version string, replicas int, ...) error
- func (m *MasterDedploy) CreateKubeconfig(name string, namespace string) error
- func (m *MasterDedploy) CreateService(name string, namespace string) error
- func (m *MasterDedploy) DeleteMaster(name string, namespace string) error
- func (m *MasterDedploy) MasterInit(version string, imageRegistry string, imageRepo *crdv1.ImageRepo, name string) error
- type Matrix
- type MatrixDedploy
- type NetworkPlugin
- type NetworkPluginDedploy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrRetainConfigMap ¶
Types ¶
type DnsDedploy ¶
type EctdDeploy ¶
func (*EctdDeploy) CheckEtcdReady ¶
func (e *EctdDeploy) CheckEtcdReady(etcdClusterName string, namespace string, replicas int) error
func (*EctdDeploy) CreateEtcdCerts ¶
func (e *EctdDeploy) CreateEtcdCerts(etcdClusterName string, namespace string) error
func (*EctdDeploy) CreateEtcdStatefulSet ¶
func (*EctdDeploy) CreateService ¶
func (e *EctdDeploy) CreateService(etcdClusterName string, namespace string) error
func (*EctdDeploy) DeleteEtcd ¶
func (e *EctdDeploy) DeleteEtcd(etcdClusterName string, namespace string) error
type EtcdCluster ¶
type Master ¶
type Master interface { CreateService(string, string) error CreateCerts(string, string) error CreateKubeconfig(string, string) error CreateDeployment(string, string, string, int, string, *crdv1.ImageRepo, string) error MasterInit(string, string, *crdv1.ImageRepo) error CheckMasterRunning(string, string) error DeleteMaster(string, string) error }
type MasterDedploy ¶
type MasterDedploy struct { context.Context client.Client Log logr.Logger MasterCrd *crdv1.Master CaCert *x509.Certificate CaKey *rsa.PrivateKey AdminKubeconfig []byte MatrixClient client.Client ExposePort string }
func (*MasterDedploy) CheckMasterRunning ¶
func (m *MasterDedploy) CheckMasterRunning(name string, namespace string) error
func (*MasterDedploy) CreateCerts ¶
func (m *MasterDedploy) CreateCerts(name string, namespace string, exposeIps []string) error
func (*MasterDedploy) CreateDeployment ¶
func (*MasterDedploy) CreateKubeconfig ¶
func (m *MasterDedploy) CreateKubeconfig(name string, namespace string) error
func (*MasterDedploy) CreateService ¶
func (m *MasterDedploy) CreateService(name string, namespace string) error
func (*MasterDedploy) DeleteMaster ¶
func (m *MasterDedploy) DeleteMaster(name string, namespace string) error
func (*MasterDedploy) MasterInit ¶
type MatrixDedploy ¶
func (*MatrixDedploy) Create ¶
func (m *MatrixDedploy) Create(name string, namespace string, matrixConfig *crdv1.MatrixSpec) error
type NetworkPlugin ¶
type NetworkPlugin interface { CreateCalico(calicoConfig *crdv1.CalicoConfig) error DeleteCalico(calicoConfig *crdv1.CalicoConfig) error }
type NetworkPluginDedploy ¶
type NetworkPluginDedploy struct { context.Context client.Client Log logr.Logger MatrixClient client.Client CrdClient *crdclient.Clientset }
func (*NetworkPluginDedploy) CreateCalico ¶
func (n *NetworkPluginDedploy) CreateCalico(calicoConfig *crdv1.CalicoConfig) error
func (*NetworkPluginDedploy) DeleteCalico ¶
func (n *NetworkPluginDedploy) DeleteCalico(calicoConfig *crdv1.CalicoConfig) error
Click to show internal directories.
Click to hide internal directories.