Documentation ¶
Index ¶
- Variables
- func GetClusterName(config *rest.Config) string
- func NewClient(logger logger.Logger, kubeconfigPaths ...string) (kubernetes.Interface, *rest.Config, error)
- func NewClientWithConfig(logger logger.Logger, kubeConfig []byte) (kubernetes.Interface, *rest.Config, error)
- type DynamicClient
- func (c *DynamicClient) FetchResources(ctx context.Context, resources ...unstructured.Unstructured) ([]unstructured.Unstructured, error)
- func (c *DynamicClient) GetClientByGroupVersionKind(group, version, kind string) (dynamic.NamespaceableResourceInterface, error)
- func (c *DynamicClient) GetClientByKind(kind string) (dynamic.NamespaceableResourceInterface, error)
- func (c *DynamicClient) GetDynamicClient() (dynamic.Interface, error)
- func (c *DynamicClient) GetRestMapper() (meta.RESTMapper, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Nil = fake.NewSimpleClientset()
Functions ¶
func GetClusterName ¶ added in v1.0.596
func NewClientWithConfig ¶
Types ¶
type DynamicClient ¶ added in v1.0.596
type DynamicClient struct {
// contains filtered or unexported fields
}
DynamicClient is an updated & stripped of kommons client
func NewKubeClient ¶ added in v1.0.596
func NewKubeClient(config *rest.Config) *DynamicClient
func (*DynamicClient) FetchResources ¶ added in v1.0.596
func (c *DynamicClient) FetchResources(ctx context.Context, resources ...unstructured.Unstructured) ([]unstructured.Unstructured, error)
func (*DynamicClient) GetClientByGroupVersionKind ¶ added in v1.0.596
func (c *DynamicClient) GetClientByGroupVersionKind(group, version, kind string) (dynamic.NamespaceableResourceInterface, error)
func (*DynamicClient) GetClientByKind ¶ added in v1.0.596
func (c *DynamicClient) GetClientByKind(kind string) (dynamic.NamespaceableResourceInterface, error)
func (*DynamicClient) GetDynamicClient ¶ added in v1.0.596
func (c *DynamicClient) GetDynamicClient() (dynamic.Interface, error)
GetDynamicClient creates a new k8s client
func (*DynamicClient) GetRestMapper ¶ added in v1.0.596
func (c *DynamicClient) GetRestMapper() (meta.RESTMapper, error)
Click to show internal directories.
Click to hide internal directories.