utils

package
v1.2.1-0...-abfdf54 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 16 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildK8sConfig

func BuildK8sConfig(tmpfileRootdir string, cfg []byte) (*rest.Config, error)

func CreateShootCluster

func CreateShootCluster() *v1alpha1.ShootCluster

func CreateUniqueClusterName

func CreateUniqueClusterName(list *v1alpha1.ShootClusterList) string

func NewSecret

func NewSecret(shootCluster *v1alpha1.ShootCluster) *corev1.Secret

func ValidDummyKubeconfig

func ValidDummyKubeconfig() string

Types

type DynamicK8sK8sClientSetFactory

type DynamicK8sK8sClientSetFactory struct {
	// contains filtered or unexported fields
}

Does the real work: Always create a new clientset from the given config

func NewDefaultDynamicK8sK8sClientSetFactory

func NewDefaultDynamicK8sK8sClientSetFactory() *DynamicK8sK8sClientSetFactory

func NewDynamicK8sK8sClientSetFactory

func NewDynamicK8sK8sClientSetFactory(tmpFileRootdir string) *DynamicK8sK8sClientSetFactory

func (*DynamicK8sK8sClientSetFactory) Create

type K8sClientSetCreator

type K8sClientSetCreator interface {
	Create(cfg []byte) (kubernetes.Interface, error)
}

type StaticK8sClientSetFactory

type StaticK8sClientSetFactory struct {
	ClientSet kubernetes.Interface
}

always returns the same client set. Used for testing

func (*StaticK8sClientSetFactory) Create

type SyncWriter

type SyncWriter interface {
	io.Writer
	Sync() error
}

Jump to

Keyboard shortcuts

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