Documentation
¶
Index ¶
- Constants
- func GenerateDatabaseConfigMapName(clusterpedia *installv1alpha1.Clusterpedia) string
- func GenerateDatabaseSecretName(clusterpedia *installv1alpha1.Clusterpedia) string
- type ClusterpediaController
- func (ctrl *ClusterpediaController) EnsureAPIServer(clusterpedia *installv1alpha1.Clusterpedia) error
- func (ctrl *ClusterpediaController) EnsureAPIServerDeployment(clusterpedia *installv1alpha1.Clusterpedia) error
- func (ctrl *ClusterpediaController) EnsureAPIServerService(clusterpedia *installv1alpha1.Clusterpedia) error
- func (ctrl *ClusterpediaController) EnsureClusterImportPolicy(clusterpedia *installv1alpha1.Clusterpedia) error
- func (ctrl *ClusterpediaController) EnsureClusterSynchroManager(clusterpedia *installv1alpha1.Clusterpedia) error
- func (ctrl *ClusterpediaController) EnsureClusterSynchroManagerDeployment(clusterpedia *installv1alpha1.Clusterpedia) error
- func (ctrl *ClusterpediaController) EnsureClusterpediaAPIService(clusterpedia *installv1alpha1.Clusterpedia) error
- func (ctrl *ClusterpediaController) EnsureClusterpediaCRDs(clusterpedia *installv1alpha1.Clusterpedia) error
- func (ctrl *ClusterpediaController) EnsureControllerManager(clusterpedia *installv1alpha1.Clusterpedia) error
- func (ctrl *ClusterpediaController) EnsureControllerManagerDeployment(clusterpedia *installv1alpha1.Clusterpedia) error
- func (ctrl *ClusterpediaController) EnsureInternalStorage(clusterpedia *installv1alpha1.Clusterpedia) error
- func (ctrl *ClusterpediaController) EnsureMySQL(clusterpedia *installv1alpha1.Clusterpedia) error
- func (ctrl *ClusterpediaController) EnsureMySQLConfigMap(clusterpedia *installv1alpha1.Clusterpedia) error
- func (ctrl *ClusterpediaController) EnsureMySQLDeployment(clusterpedia *installv1alpha1.Clusterpedia) error
- func (ctrl *ClusterpediaController) EnsureMySQLSecret(clusterpedia *installv1alpha1.Clusterpedia) error
- func (ctrl *ClusterpediaController) EnsureMySQLService(clusterpedia *installv1alpha1.Clusterpedia) error
- func (ctrl *ClusterpediaController) EnsureNamespace(clusterpedia *installv1alpha1.Clusterpedia) error
- func (ctrl *ClusterpediaController) EnsurePostgres(clusterpedia *installv1alpha1.Clusterpedia) error
- func (ctrl *ClusterpediaController) EnsurePostgresConfigMap(clusterpedia *installv1alpha1.Clusterpedia) error
- func (ctrl *ClusterpediaController) EnsurePostgresDeployment(clusterpedia *installv1alpha1.Clusterpedia) error
- func (ctrl *ClusterpediaController) EnsurePostgresSecret(clusterpedia *installv1alpha1.Clusterpedia) error
- func (ctrl *ClusterpediaController) EnsurePostgresService(clusterpedia *installv1alpha1.Clusterpedia) error
- func (ctrl *ClusterpediaController) GenerateClusterImportPolicyForKamada(clusterpedia *installv1alpha1.Clusterpedia) *policyapi.ClusterImportPolicy
- func (ctrl *ClusterpediaController) GetControlplaneClient(clusterpedia *installv1alpha1.Clusterpedia) (kubernetes.Interface, error)
- func (ctrl *ClusterpediaController) GetControlplaneClientFromProvider(clusterpedia *installv1alpha1.Clusterpedia) (kubernetes.Interface, error)
- func (ctrl *ClusterpediaController) GetControlplaneDynamicClientFromProvider(clusterpedia *installv1alpha1.Clusterpedia) (dynamic.Interface, error)
- func (ctrl *ClusterpediaController) IsControllPlaneProviderExists(clusterpedia *installv1alpha1.Clusterpedia) (bool, error)
- func (ctrl *ClusterpediaController) KubeConfigSecretNameFromProvider(clusterpedia *installv1alpha1.Clusterpedia) (string, error)
- func (ctrl *ClusterpediaController) NewResourceBuilder(clusterpedia *installv1alpha1.Clusterpedia) (*resource.Builder, error)
- func (ctrl *ClusterpediaController) RemoveClusterpediaAPIService(clusterpedia *installv1alpha1.Clusterpedia) error
- func (ctrl *ClusterpediaController) RemoveClusterpediaCRDs(clusterpedia *installv1alpha1.Clusterpedia) error
- func (ctrl *ClusterpediaController) Run(ctx context.Context, workers int)
Constants ¶
const (
// name of the clusterpedia controller finalizer
ClusterpediaControllerFinalizerName = "clusterpedia.install.firefly.io/finalizer"
)
Variables ¶
This section is empty.
Functions ¶
func GenerateDatabaseConfigMapName ¶
func GenerateDatabaseConfigMapName(clusterpedia *installv1alpha1.Clusterpedia) string
func GenerateDatabaseSecretName ¶
func GenerateDatabaseSecretName(clusterpedia *installv1alpha1.Clusterpedia) string
Types ¶
type ClusterpediaController ¶
type ClusterpediaController struct {
// contains filtered or unexported fields
}
func NewClusterpediaController ¶
func NewClusterpediaController( client clientset.Interface, fireflyClient fireflyclient.Interface, clusterpediaInformer installinformers.ClusterpediaInformer) (*ClusterpediaController, error)
NewClusterpediaController returns a new *Controller.
func (*ClusterpediaController) EnsureAPIServer ¶
func (ctrl *ClusterpediaController) EnsureAPIServer(clusterpedia *installv1alpha1.Clusterpedia) error
EnsureAPIServer ensures the clusterpedia-apiserver component.
func (*ClusterpediaController) EnsureAPIServerDeployment ¶
func (ctrl *ClusterpediaController) EnsureAPIServerDeployment(clusterpedia *installv1alpha1.Clusterpedia) error
EnsureAPIServerDeployment ensures the clusterpedia-apiserver deployment exists.
func (*ClusterpediaController) EnsureAPIServerService ¶
func (ctrl *ClusterpediaController) EnsureAPIServerService(clusterpedia *installv1alpha1.Clusterpedia) error
EnsureAPIServerService ensures the clusterpedia-apiserver service exists.
func (*ClusterpediaController) EnsureClusterImportPolicy ¶
func (ctrl *ClusterpediaController) EnsureClusterImportPolicy(clusterpedia *installv1alpha1.Clusterpedia) error
func (*ClusterpediaController) EnsureClusterSynchroManager ¶
func (ctrl *ClusterpediaController) EnsureClusterSynchroManager(clusterpedia *installv1alpha1.Clusterpedia) error
func (*ClusterpediaController) EnsureClusterSynchroManagerDeployment ¶
func (ctrl *ClusterpediaController) EnsureClusterSynchroManagerDeployment(clusterpedia *installv1alpha1.Clusterpedia) error
func (*ClusterpediaController) EnsureClusterpediaAPIService ¶
func (ctrl *ClusterpediaController) EnsureClusterpediaAPIService(clusterpedia *installv1alpha1.Clusterpedia) error
func (*ClusterpediaController) EnsureClusterpediaCRDs ¶
func (ctrl *ClusterpediaController) EnsureClusterpediaCRDs(clusterpedia *installv1alpha1.Clusterpedia) error
func (*ClusterpediaController) EnsureControllerManager ¶
func (ctrl *ClusterpediaController) EnsureControllerManager(clusterpedia *installv1alpha1.Clusterpedia) error
func (*ClusterpediaController) EnsureControllerManagerDeployment ¶
func (ctrl *ClusterpediaController) EnsureControllerManagerDeployment(clusterpedia *installv1alpha1.Clusterpedia) error
func (*ClusterpediaController) EnsureInternalStorage ¶
func (ctrl *ClusterpediaController) EnsureInternalStorage(clusterpedia *installv1alpha1.Clusterpedia) error
func (*ClusterpediaController) EnsureMySQL ¶
func (ctrl *ClusterpediaController) EnsureMySQL(clusterpedia *installv1alpha1.Clusterpedia) error
func (*ClusterpediaController) EnsureMySQLConfigMap ¶
func (ctrl *ClusterpediaController) EnsureMySQLConfigMap(clusterpedia *installv1alpha1.Clusterpedia) error
EnsureMySQLConfigMap ensures the clusterpedia-internalstorage-mysql configmap exists.
func (*ClusterpediaController) EnsureMySQLDeployment ¶
func (ctrl *ClusterpediaController) EnsureMySQLDeployment(clusterpedia *installv1alpha1.Clusterpedia) error
EnsureMySQLDeployment ensures the clusterpedia-internalstorage-mysql deployment exists.
func (*ClusterpediaController) EnsureMySQLSecret ¶
func (ctrl *ClusterpediaController) EnsureMySQLSecret(clusterpedia *installv1alpha1.Clusterpedia) error
EnsureMySQLSecret ensures the clusterpedia-internalstorage-mysql secret exists.
func (*ClusterpediaController) EnsureMySQLService ¶
func (ctrl *ClusterpediaController) EnsureMySQLService(clusterpedia *installv1alpha1.Clusterpedia) error
EnsureMySQLService ensures the clusterpedia-internalstorage-mysql service exists.
func (*ClusterpediaController) EnsureNamespace ¶
func (ctrl *ClusterpediaController) EnsureNamespace(clusterpedia *installv1alpha1.Clusterpedia) error
func (*ClusterpediaController) EnsurePostgres ¶
func (ctrl *ClusterpediaController) EnsurePostgres(clusterpedia *installv1alpha1.Clusterpedia) error
func (*ClusterpediaController) EnsurePostgresConfigMap ¶
func (ctrl *ClusterpediaController) EnsurePostgresConfigMap(clusterpedia *installv1alpha1.Clusterpedia) error
EnsurePostgresConfigMap ensures the clusterpedia-internalstorage-postgres configmap exists.
func (*ClusterpediaController) EnsurePostgresDeployment ¶
func (ctrl *ClusterpediaController) EnsurePostgresDeployment(clusterpedia *installv1alpha1.Clusterpedia) error
EnsurePostgresDeployment ensures the clusterpedia-internalstorage-postgres deployment exists.
func (*ClusterpediaController) EnsurePostgresSecret ¶
func (ctrl *ClusterpediaController) EnsurePostgresSecret(clusterpedia *installv1alpha1.Clusterpedia) error
EnsurePostgresSecret ensures the clusterpedia-internalstorage-postgres secret exists.
func (*ClusterpediaController) EnsurePostgresService ¶
func (ctrl *ClusterpediaController) EnsurePostgresService(clusterpedia *installv1alpha1.Clusterpedia) error
EnsurePostgresService ensures the clusterpedia-internalstorage-postgres service exists.
func (*ClusterpediaController) GenerateClusterImportPolicyForKamada ¶
func (ctrl *ClusterpediaController) GenerateClusterImportPolicyForKamada(clusterpedia *installv1alpha1.Clusterpedia) *policyapi.ClusterImportPolicy
func (*ClusterpediaController) GetControlplaneClient ¶
func (ctrl *ClusterpediaController) GetControlplaneClient(clusterpedia *installv1alpha1.Clusterpedia) (kubernetes.Interface, error)
GetControlplaneClient returns the client of the controlplane.
func (*ClusterpediaController) GetControlplaneClientFromProvider ¶
func (ctrl *ClusterpediaController) GetControlplaneClientFromProvider(clusterpedia *installv1alpha1.Clusterpedia) (kubernetes.Interface, error)
GetControlplaneClientFromProvider returns the client of the controlplane according to a provider.
func (*ClusterpediaController) GetControlplaneDynamicClientFromProvider ¶
func (ctrl *ClusterpediaController) GetControlplaneDynamicClientFromProvider(clusterpedia *installv1alpha1.Clusterpedia) (dynamic.Interface, error)
func (*ClusterpediaController) IsControllPlaneProviderExists ¶
func (ctrl *ClusterpediaController) IsControllPlaneProviderExists(clusterpedia *installv1alpha1.Clusterpedia) (bool, error)
IsControllPlaneProviderExists check if the given provider exists.
func (*ClusterpediaController) KubeConfigSecretNameFromProvider ¶
func (ctrl *ClusterpediaController) KubeConfigSecretNameFromProvider(clusterpedia *installv1alpha1.Clusterpedia) (string, error)
KubeConfigSecretNameFromProvider returns the name of a kubeconfig secret according to the given provider.
func (*ClusterpediaController) NewResourceBuilder ¶
func (ctrl *ClusterpediaController) NewResourceBuilder(clusterpedia *installv1alpha1.Clusterpedia) (*resource.Builder, error)
func (*ClusterpediaController) RemoveClusterpediaAPIService ¶
func (ctrl *ClusterpediaController) RemoveClusterpediaAPIService(clusterpedia *installv1alpha1.Clusterpedia) error
func (*ClusterpediaController) RemoveClusterpediaCRDs ¶
func (ctrl *ClusterpediaController) RemoveClusterpediaCRDs(clusterpedia *installv1alpha1.Clusterpedia) error
Source Files
¶
- clusterimportpolicy.go
- clusterimportpolicy_karmada.go
- clusterpedia_apiserver.go
- clusterpedia_clustersynchro_manager.go
- clusterpedia_controller.go
- clusterpedia_internelstorage.go
- clusterpeida_controllermanager.go
- crds.go
- helpers.go
- internalstorage_mysql.go
- internalstorage_postgres.go
- kubeconfig.go
- names.go