k8s

package
v0.0.0-...-172c968 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Copyright 2023 Operant AI

Copyright 2023 Operant AI

Index

Constants

This section is empty.

Variables

View Source
var ErrContainerNotFound = errors.New("container not found")

ErrContainerNotFound is returned when a container is not found

Functions

func FindContainerByName

func FindContainerByName(containers []corev1.Container, containerName string) (corev1.Container, error)

FindContainerByName returns a container by name from a list of containers

func GetK8sVersion

func GetK8sVersion(client *kubernetes.Clientset) (*k8sVersion.Info, error)

Types

type Client

type Client struct {
	Clientset  *kubernetes.Clientset
	RestConfig *rest.Config
}

func NewClient

func NewClient() (*Client, error)

func NewClientInContainer

func NewClientInContainer() (*Client, error)

Jump to

Keyboard shortcuts

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