Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeConfigMap

type FakeConfigMap struct {
	Name string
	Data map[string]string
}

FakeConfigMap represents a fake config map

func ClusterStatusWithAPIEndpoint

func ClusterStatusWithAPIEndpoint(nodeName string, endpoint kubeadmapi.APIEndpoint) *FakeConfigMap

ClusterStatusWithAPIEndpoint returns a FakeConfigMap containing a cluster status with the provided endpoint for nodeName as a single entry

func (*FakeConfigMap) Create

func (c *FakeConfigMap) Create(client clientset.Interface) error

Create creates a fake configmap using the provided client

type FakeStaticPod

type FakeStaticPod struct {
	NodeName    string
	Component   string
	Annotations map[string]string
}

FakeStaticPod represents a fake static pod

func (*FakeStaticPod) Create

func (p *FakeStaticPod) Create(client clientset.Interface) error

Create creates a fake static pod using the provided client

func (*FakeStaticPod) CreateWithPodSuffix

func (p *FakeStaticPod) CreateWithPodSuffix(client clientset.Interface, suffix string) error

CreateWithPodSuffix creates a fake static pod using the provided client and suffix

func (*FakeStaticPod) Pod

func (p *FakeStaticPod) Pod(suffix string) *v1.Pod

Pod returns a pod structure representing the fake static pod with a given suffix