Documentation ¶
Index ¶
- Constants
- func CreateOrUpdateEndpoints(eclient clientv1.EndpointsInterface, eps *v1.Endpoints) error
- func CreateOrUpdateService(sclient clientv1.ServiceInterface, svc *v1.Service) error
- func GetMinorVersion(dclient discovery.DiscoveryInterface) (int, error)
- func IsResourceNotFoundError(err error) bool
- func MergePatchContainers(base, patches []v1.Container) ([]v1.Container, error)
- func NewClusterConfig(host string, tlsInsecure bool, tlsConfig *rest.TLSClientConfig) (*rest.Config, error)
- func PodRunningAndReady(pod v1.Pod) (bool, error)
- func SanitizeVolumeName(name string) string
Constants ¶
View Source
const KubeConfigEnv = "KUBECONFIG"
KubeConfigEnv (optionally) specify the location of kubeconfig file
Variables ¶
This section is empty.
Functions ¶
func CreateOrUpdateEndpoints ¶ added in v0.6.0
func CreateOrUpdateEndpoints(eclient clientv1.EndpointsInterface, eps *v1.Endpoints) error
func CreateOrUpdateService ¶ added in v0.6.0
func CreateOrUpdateService(sclient clientv1.ServiceInterface, svc *v1.Service) error
func GetMinorVersion ¶ added in v0.12.0
func GetMinorVersion(dclient discovery.DiscoveryInterface) (int, error)
GetMinorVersion returns the minor version as an integer
func IsResourceNotFoundError ¶
func MergePatchContainers ¶ added in v0.30.0
MergePatchContainers adds patches to base using a strategic merge patch and iterating by container name, failing on the first error
func NewClusterConfig ¶
func PodRunningAndReady ¶
PodRunningAndReady returns whether a pod is running and each container has passed it's ready state.
func SanitizeVolumeName ¶ added in v0.24.0
SanitizeVolumeName ensures that the given volume name is a valid DNS-1123 label accepted by Kubernetes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.