patcher

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const NoUpdatesReason = "NoUpdates"

Variables

Error to return to the patcher if there are no updates

Functions

func DeleteNodeLabel

func DeleteNodeLabel(c kubernetes.Interface, node v1.Node, labelKey string) (*v1.Node, error)

func IsNoUpdates

func IsNoUpdates(err error) bool

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)

func PatchNode

func PatchNode(c kubernetes.Interface, node v1.Node, patch NodePatch) (*v1.Node, error)

func UpdateNodeLabel

func UpdateNodeLabel(c kubernetes.Interface, node v1.Node, labelKey string, labelValue string) (*v1.Node, error)

Types

type CronJobPatch

type CronJobPatch = func(*v1b1.CronJob) error

type DaemonSetPatch

type DaemonSetPatch = func(*appsv1.DaemonSet) error

type DeploymentPatch

type DeploymentPatch = func(*appsv1.Deployment) error

type NodePatch

type NodePatch = func(*v1.Node) error

Jump to

Keyboard shortcuts

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