Documentation ¶
Index ¶
Constants ¶
View Source
const (
// Name is the name of the plugin used in the plugin registry and configurations.
Name = "APIEnablement"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIEnablement ¶
type APIEnablement struct{}
APIEnablement is a plugin that checks if the API(CRD) of the resource is installed in the target cluster.
func (*APIEnablement) Filter ¶
func (p *APIEnablement) Filter( _ context.Context, bindingSpec *workv1alpha2.ResourceBindingSpec, _ *workv1alpha2.ResourceBindingStatus, cluster *clusterv1alpha1.Cluster, ) *framework.Result
Filter checks if the API(CRD) of the resource is enabled or installed in the target cluster.
Click to show internal directories.
Click to hide internal directories.