Documentation ¶
Index ¶
- func BuildK8sConfig(tmpfileRootdir string, cfg []byte) (*rest.Config, error)
- func CreateShootCluster() *v1alpha1.ShootCluster
- func CreateUniqueClusterName(list *v1alpha1.ShootClusterList) string
- func NewSecret(shootCluster *v1alpha1.ShootCluster) *corev1.Secret
- func ValidDummyKubeconfig() string
- type DynamicK8sK8sClientSetFactory
- type K8sClientSetCreator
- type StaticK8sClientSetFactory
- type SyncWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateShootCluster ¶
func CreateShootCluster() *v1alpha1.ShootCluster
func CreateUniqueClusterName ¶
func CreateUniqueClusterName(list *v1alpha1.ShootClusterList) string
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 ¶
func (fac *DynamicK8sK8sClientSetFactory) Create(cfg []byte) (kubernetes.Interface, error)
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 ¶
func (f *StaticK8sClientSetFactory) Create([]byte) (kubernetes.Interface, error)
type SyncWriter ¶
Click to show internal directories.
Click to hide internal directories.