k8sutils

package
v0.44.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2022 License: Apache-2.0, BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package k8sutils is used to provider helper consts and functions for k8s operations

Index

Constants

View Source
const (
	// VolumeAttachmentGroupName group name
	VolumeAttachmentGroupName = "storage.k8s.io"
	// VolumeAttachmentResourceName is the kind used for VolumeAttachment
	VolumeAttachmentResourceName = "volumeattachments"
)

Variables

This section is empty.

Functions

func IsResourceSupported

func IsResourceSupported(
	clientset kubernetes.Interface,
	gr schema.GroupResource,
) bool

IsResourceSupported uses Discovery API to find out if the server supports the given GroupResource. If supported, it will return its groupVersion; Otherwise, it will return ""

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL