...

Package resources

import "k8s.io/kubernetes/cmd/kubeadm/test/resources"
Overview
Index

Overview ▾

type FakeConfigMap

FakeConfigMap represents a fake config map

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

func (*FakeConfigMap) Create

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

Create creates a fake configmap using the provided client

type FakeStaticPod

FakeStaticPod represents a fake static pod

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

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