Documentation ¶
Index ¶
- func ClusterResources() []*metav1.APIResourceList
- func FindGvr(resources []*metav1.APIResourceList, apiVersion, kindOrName string) *schema.GroupVersionResource
- type FakeCluster
- func (fc *FakeCluster) Create(ns string, m manifest.Manifest) error
- func (fc *FakeCluster) CreateNs(ns string)
- func (fc *FakeCluster) CreateSimpleNamespaced(ns string, kind string, name string)
- func (fc *FakeCluster) Delete(ns string, m manifest.Manifest) error
- func (fc *FakeCluster) DeleteSimpleNamespaced(ns string, kind string, name string)
- func (fc *FakeCluster) FindGVR(apiVersion, kind string) (*schema.GroupVersionResource, error)
- func (fc *FakeCluster) MustFindGVR(apiVersion, kind string) *schema.GroupVersionResource
- func (fc *FakeCluster) RegisterCRD(group, version, kind string, namespaced bool)
- func (fc *FakeCluster) Update(ns string, m manifest.Manifest) error
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) CreateNs ¶
func (fc *FakeCluster) CreateNs(ns string)
func (*FakeCluster) CreateSimpleNamespaced ¶
func (fc *FakeCluster) CreateSimpleNamespaced(ns string, kind string, name string)
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
Click to show internal directories.
Click to hide internal directories.