Documentation
¶
Index ¶
- func GetGVKFromURL(path string) *schema.GroupVersionKind
- func GetNodeSelector(nl *corev1.NodeList, selectors []map[string]string) (*labels.Requirement, error)
- func GetNodeSelectors(_ *http.Request, proxyTenants []*tenant.ProxyTenant) (selectors []map[string]string)
- func HandleGetSelector(ctx context.Context, obj client.Object, client client.Reader, ...) (labels.Selector, error)
- func HandleListSelector(requirements []labels.Requirement) (selector labels.Selector, err error)
- func ReplacePluralWithKind(discoveryClient discovery.DiscoveryInterface, gvk *schema.GroupVersionKind) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGVKFromURL ¶ added in v0.7.0
func GetGVKFromURL(path string) *schema.GroupVersionKind
GetGVKFromURL extracts the GroupVersionKind from a cluster-scoped collection or named-resource URL. Kind contains the plural API resource name until ReplacePluralWithKind resolves it through discovery.
func GetNodeSelector ¶
func GetNodeSelectors ¶
func HandleGetSelector ¶
func HandleListSelector ¶
func HandleListSelector(requirements []labels.Requirement) (selector labels.Selector, err error)
func ReplacePluralWithKind ¶ added in v0.7.0
func ReplacePluralWithKind(discoveryClient discovery.DiscoveryInterface, gvk *schema.GroupVersionKind) error
ReplacePluralWithKind returns the GroupVersionKind for a given plural name.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.