Documentation ¶
Index ¶
- func DeleteObj(cli client.Client, obj client.Object) error
- func GenerateConfigMapPP(name, namespace string, configMap *corev1.ConfigMap, labels map[string]string, ...) *v1alpha1.PropagationPolicy
- func GenerateMongoOPWithLabel(name, namespace, clusterName string, labels map[string]string, ...) *v1alpha1.OverridePolicy
- func GenerateMongoOPWithPath(name, namespace, clusterName string, labels map[string]string, ...) *v1alpha1.OverridePolicy
- func GenerateMongoPP(name, namespace string, labels map[string]string, ...) *v1alpha1.PropagationPolicy
- func GenerateServicePP(name, namespace string, service *corev1.Service, labels map[string]string, ...) *v1alpha1.PropagationPolicy
- func GetRBByName(cli client.Client, name, namespace string) (*karmadaWorkv1alpha2.ResourceBinding, error)
- func ListClusterByLabel(cli client.Client) (*karmadaClusterv1alpha1.ClusterList, error)
- func ListSvcPPByLabel(cli client.Client, label map[string]string) (*v1alpha1.PropagationPolicyList, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateConfigMapPP ¶
func GenerateMongoOPWithLabel ¶
func GenerateMongoOPWithLabel(name, namespace, clusterName string, labels map[string]string, cr *middlewarev1alpha1.MultiCloudMongoDB, label map[string]string) *v1alpha1.OverridePolicy
func GenerateMongoOPWithPath ¶
func GenerateMongoOPWithPath(name, namespace, clusterName string, labels map[string]string, cr *middlewarev1alpha1.MultiCloudMongoDB, path string) *v1alpha1.OverridePolicy
func GenerateMongoPP ¶
func GenerateMongoPP(name, namespace string, labels map[string]string, cr *middlewarev1alpha1.MultiCloudMongoDB, clusterWithReplicaset model.SchedulerResult, clusters ...string) *v1alpha1.PropagationPolicy
func GenerateServicePP ¶
func GetRBByName ¶
func GetRBByName(cli client.Client, name, namespace string) (*karmadaWorkv1alpha2.ResourceBinding, error)
func ListClusterByLabel ¶
func ListClusterByLabel(cli client.Client) (*karmadaClusterv1alpha1.ClusterList, error)
func ListSvcPPByLabel ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.