fake

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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