Documentation ¶
Index ¶
- type Client
- func (c *Client) AddNodeSelectorsToDeployment(ctx context.Context, selectors map[string]string, name string, ...) error
- func (c *Client) AddTolerationsToDeployment(ctx context.Context, tolerations []corev1.Toleration, name string, ...) error
- func (c *Client) ApplyOneObject(info *resource.Info, forceConflicts bool) error
- func (c *Client) CreateConfigMap(ctx context.Context, configMap corev1.ConfigMap) error
- func (c *Client) GetObjects(resources kubernetesshared.Marshaler) ([]*resource.Info, error)
- func (c *Client) WaitForCRD(ctx context.Context, crd string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements k8sapi.Client interface and talks to the Kubernetes API.
func (*Client) AddNodeSelectorsToDeployment ¶
func (*Client) AddTolerationsToDeployment ¶
func (*Client) ApplyOneObject ¶
ApplyOneObject uses server-side apply to send unstructured JSON blobs to the server and let it handle the core logic.
func (*Client) CreateConfigMap ¶
CreateConfigMap creates the given ConfigMap.
func (*Client) GetObjects ¶
GetObjects tries to marshal the resources into []*resource.Info using a resource.Builder.
Click to show internal directories.
Click to hide internal directories.