fake

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterResources

func ClusterResources() []*metav1.APIResourceList

func FindGvr

func FindGvr(resources []*metav1.APIResourceList, apiVersion, kindOrName string) *schema.GroupVersionResource

Types

type FakeCluster

type FakeCluster struct {
	KubeClient kube.KubernetesClient

	Discovery *fakediscovery.FakeDiscovery
}

func NewFakeCluster

func NewFakeCluster() *FakeCluster

func (*FakeCluster) Create

func (fc *FakeCluster) Create(ns string, m manifest.Manifest) error

func (*FakeCluster) CreateNs

func (fc *FakeCluster) CreateNs(ns string)

func (*FakeCluster) CreateSimpleNamespaced

func (fc *FakeCluster) CreateSimpleNamespaced(ns string, kind string, name string)

func (*FakeCluster) Delete

func (fc *FakeCluster) Delete(ns string, m manifest.Manifest) error

func (*FakeCluster) DeleteSimpleNamespaced

func (fc *FakeCluster) DeleteSimpleNamespaced(ns string, kind string, name string)

func (*FakeCluster) FindGVR

func (fc *FakeCluster) FindGVR(apiVersion, kind string) (*schema.GroupVersionResource, error)

func (*FakeCluster) MustFindGVR

func (fc *FakeCluster) MustFindGVR(apiVersion, kind string) *schema.GroupVersionResource

func (*FakeCluster) RegisterCRD

func (fc *FakeCluster) RegisterCRD(group, version, kind string, namespaced bool)

RegisterCRD registers custom resources for the cluster

func (*FakeCluster) Update

func (fc *FakeCluster) Update(ns string, m manifest.Manifest) error

Jump to

Keyboard shortcuts

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