Documentation ¶
Index ¶
- func GetGVKFromURL(url string) *schema.GroupVersionKind
- func GetNodeSelector(nl *corev1.NodeList, selectors []map[string]string) (*labels.Requirement, error)
- func GetNodeSelectors(request *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.DiscoveryClient, gvk *schema.GroupVersionKind) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGVKFromURL ¶ added in v0.7.0
func GetGVKFromURL(url string) *schema.GroupVersionKind
Since the URL is in the format /apis/{group}/{version}/{kind} or /api/{version}/{kind}, we can extract the GVK from the URL. However the kind will be the plural form.
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.DiscoveryClient, gvk *schema.GroupVersionKind) error
GetGVKByPlural returns the GroupVersionKind for a given plural name.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.