Documentation ¶
Index ¶
- type KubeClient
- func (c *KubeClient) Apply(ctx context.Context, obj crclient.Object) (err error)
- func (c *KubeClient) Delete(ctx context.Context, obj crclient.Object) error
- func (c *KubeClient) Get(ctx context.Context, obj crclient.Object) (err error)
- func (c *KubeClient) List(ctx context.Context, objList crclient.ObjectList, namespace string, ...) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubeClient ¶
type KubeClient struct {
// contains filtered or unexported fields
}
KubeClient is a client structure containing ClientSet and control-runtime Client.
func NewKubeClient ¶
func NewKubeClient(config *rest.Config) (kubeClient *KubeClient, err error)
NewKubeClient return a KubeClient instance.
func (*KubeClient) Apply ¶
Apply creates when the object is not deployed, otherwise patches the object.
Click to show internal directories.
Click to hide internal directories.