kubernetes

package
v0.0.0-...-f22bef0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Restart

func Restart(ctx context.Context, cli appsv1client.DeploymentInterface, namespace string, deploymentName string) error

Restart restarts the given Deployment by performing the equivalent of a `kubectl rollout restart deployment <deployment-name>` against it. Note that Restart needs the namespace of the Deployment as a separate argument even though the namespace is already "encapsulated" by the DeploymentInterface (and the namespace you pass should be the same one used to create the DeploymentInterface.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL