Documentation ¶
Index ¶
- func ClusterResources(version ClusterVersion) []*metav1.APIResourceList
- type Cluster
- func (fc *Cluster) Create(ns string, m manifest.Manifest) error
- func (fc *Cluster) CreateNs(ns string)
- func (fc *Cluster) CreateSimpleNamespaced(ns, kind, name string)
- func (fc *Cluster) Delete(ns string, m manifest.Manifest) error
- func (fc *Cluster) DeleteSimpleNamespaced(ns, kind, name string)
- func (fc *Cluster) FindGVR(apiVersion, kind string) (*schema.GroupVersionResource, error)
- func (fc *Cluster) MustFindGVR(apiVersion, kind string) *schema.GroupVersionResource
- func (fc *Cluster) RegisterCRD(group, version, kind string, namespaced bool)
- func (fc *Cluster) Update(ns string, m manifest.Manifest) error
- type ClusterVersion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClusterResources ¶
func ClusterResources(version ClusterVersion) []*metav1.APIResourceList
ClusterResources returns cluster resources depends on k8s version
Types ¶
type Cluster ¶
type Cluster struct { Client *klient.Client Discovery *fakediscovery.FakeDiscovery // contains filtered or unexported fields }
func NewFakeCluster ¶
func NewFakeCluster(ver ClusterVersion) *Cluster
func (*Cluster) CreateSimpleNamespaced ¶
func (*Cluster) DeleteSimpleNamespaced ¶
func (*Cluster) FindGVR ¶
func (fc *Cluster) FindGVR(apiVersion, kind string) (*schema.GroupVersionResource, error)
func (*Cluster) MustFindGVR ¶
func (fc *Cluster) MustFindGVR(apiVersion, kind string) *schema.GroupVersionResource
func (*Cluster) RegisterCRD ¶
RegisterCRD registers custom resources for the cluster
type ClusterVersion ¶
type ClusterVersion string
ClusterVersion k8s cluster version
const ( ClusterVersionV116 ClusterVersion = "v1.16.0" ClusterVersionV117 ClusterVersion = "v1.17.0" ClusterVersionV118 ClusterVersion = "v1.18.0" ClusterVersionV119 ClusterVersion = "v1.19.0" ClusterVersionV120 ClusterVersion = "v1.20.0" ClusterVersionV121 ClusterVersion = "v1.21.0" ClusterVersionV122 ClusterVersion = "v1.22.0" ClusterVersionV123 ClusterVersion = "v1.23.0" ClusterVersionV124 ClusterVersion = "v1.24.0" ClusterVersionV125 ClusterVersion = "v1.25.0" ClusterVersionV126 ClusterVersion = "v1.26.0" ClusterVersionV127 ClusterVersion = "v1.27.0" ClusterVersionV128 ClusterVersion = "v1.28.0" )
func (ClusterVersion) Major ¶
func (cv ClusterVersion) Major() string
func (ClusterVersion) Minor ¶
func (cv ClusterVersion) Minor() string
func (ClusterVersion) String ¶
func (cv ClusterVersion) String() string
Click to show internal directories.
Click to hide internal directories.