Documentation ¶
Index ¶
Constants ¶
View Source
const ( Deployments batchable = "deployments" Statefulsets batchable = "statefulsets" )
Variables ¶
This section is empty.
Functions ¶
func RestartWithKubectl ¶
Types ¶
type ControllerClient ¶
func NewClientWithScheme ¶
type Restartable ¶
type Restartable string
const ( Deployment Restartable = "deployment" StatefulSet Restartable = "statefulset" )
func (Restartable) String ¶
func (r Restartable) String() string
type YAMLClient ¶
type YAMLClient interface { Apply(ctx context.Context, obj client.Object) ([]rApi.ResourceRef, error) ApplyYAML(ctx context.Context, yamls ...[]byte) ([]rApi.ResourceRef, error) DeleteResource(ctx context.Context, obj client.Object) error DeleteYAML(ctx context.Context, yamls ...[]byte) error RolloutRestart(ctx context.Context, kind Restartable, namespace string, labels map[string]string) error Client() *kubernetes.Clientset }
func NewYAMLClient ¶
func NewYAMLClient(config *rest.Config, opts YAMLClientOpts) (YAMLClient, error)
func NewYAMLClientOrDie ¶
func NewYAMLClientOrDie(config *rest.Config, opts YAMLClientOpts) YAMLClient
type YAMLClientOpts ¶
Click to show internal directories.
Click to hide internal directories.