resources

package
v1.21.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

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

Jump to

Keyboard shortcuts

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