Documentation ¶
Index ¶
- Constants
- Variables
- func DeleteNodeLabel(c kubernetes.Interface, node v1.Node, labelKey string) (*v1.Node, error)
- func IsNoUpdates(err error) bool
- func PatchCronJob(c kubernetes.Interface, cronJob v1b1.CronJob, patch CronJobPatch) (*v1b1.CronJob, error)
- func PatchDaemonSet(c kubernetes.Interface, daemonset appsv1.DaemonSet, patch DaemonSetPatch) (*appsv1.DaemonSet, error)
- func PatchDeployment(c kubernetes.Interface, deployment appsv1.Deployment, patch DeploymentPatch) (*appsv1.Deployment, error)
- func PatchNode(c kubernetes.Interface, node v1.Node, patch NodePatch) (*v1.Node, error)
- func UpdateNodeLabel(c kubernetes.Interface, node v1.Node, labelKey string, labelValue string) (*v1.Node, error)
- type CronJobPatch
- type DaemonSetPatch
- type DeploymentPatch
- type NodePatch
Constants ¶
View Source
const NoUpdatesReason = "NoUpdates"
Variables ¶
View Source
var NoUpdates error = errors.New(NoUpdatesReason)
Error to return to the patcher if there are no updates
Functions ¶
func DeleteNodeLabel ¶
func IsNoUpdates ¶
func PatchCronJob ¶
func PatchCronJob(c kubernetes.Interface, cronJob v1b1.CronJob, patch CronJobPatch) (*v1b1.CronJob, error)
func PatchDaemonSet ¶
func PatchDaemonSet(c kubernetes.Interface, daemonset appsv1.DaemonSet, patch DaemonSetPatch) (*appsv1.DaemonSet, error)
func PatchDeployment ¶
func PatchDeployment(c kubernetes.Interface, deployment appsv1.Deployment, patch DeploymentPatch) (*appsv1.Deployment, error)
Types ¶
type CronJobPatch ¶
type DaemonSetPatch ¶
type DeploymentPatch ¶
type DeploymentPatch = func(*appsv1.Deployment) error
Click to show internal directories.
Click to hide internal directories.