Documentation
¶
Index ¶
- func CreateJobFromCronjob(clients kube.Clients, namespace string, resource runtime.Object) error
- func GetCronJobAnnotations(item runtime.Object) map[string]string
- func GetCronJobContainers(item runtime.Object) []v1.Container
- func GetCronJobInitContainers(item runtime.Object) []v1.Container
- func GetCronJobItem(clients kube.Clients, name string, namespace string) (runtime.Object, error)
- func GetCronJobItems(clients kube.Clients, namespace string) []runtime.Object
- func GetCronJobPodAnnotations(item runtime.Object) map[string]string
- func GetCronJobVolumes(item runtime.Object) []v1.Volume
- func GetDaemonSetAnnotations(item runtime.Object) map[string]string
- func GetDaemonSetContainers(item runtime.Object) []v1.Container
- func GetDaemonSetInitContainers(item runtime.Object) []v1.Container
- func GetDaemonSetItem(clients kube.Clients, name string, namespace string) (runtime.Object, error)
- func GetDaemonSetItems(clients kube.Clients, namespace string) []runtime.Object
- func GetDaemonSetPodAnnotations(item runtime.Object) map[string]string
- func GetDaemonSetVolumes(item runtime.Object) []v1.Volume
- func GetDeploymentAnnotations(item runtime.Object) map[string]string
- func GetDeploymentContainers(item runtime.Object) []v1.Container
- func GetDeploymentInitContainers(item runtime.Object) []v1.Container
- func GetDeploymentItem(clients kube.Clients, name string, namespace string) (runtime.Object, error)
- func GetDeploymentItems(clients kube.Clients, namespace string) []runtime.Object
- func GetDeploymentPodAnnotations(item runtime.Object) map[string]string
- func GetDeploymentVolumes(item runtime.Object) []v1.Volume
- func GetJobAnnotations(item runtime.Object) map[string]string
- func GetJobContainers(item runtime.Object) []v1.Container
- func GetJobInitContainers(item runtime.Object) []v1.Container
- func GetJobItem(clients kube.Clients, name string, namespace string) (runtime.Object, error)
- func GetJobItems(clients kube.Clients, namespace string) []runtime.Object
- func GetJobPodAnnotations(item runtime.Object) map[string]string
- func GetJobVolumes(item runtime.Object) []v1.Volume
- func GetRolloutAnnotations(item runtime.Object) map[string]string
- func GetRolloutContainers(item runtime.Object) []v1.Container
- func GetRolloutInitContainers(item runtime.Object) []v1.Container
- func GetRolloutItem(clients kube.Clients, name string, namespace string) (runtime.Object, error)
- func GetRolloutItems(clients kube.Clients, namespace string) []runtime.Object
- func GetRolloutPodAnnotations(item runtime.Object) map[string]string
- func GetRolloutVolumes(item runtime.Object) []v1.Volume
- func GetStatefulSetAnnotations(item runtime.Object) map[string]string
- func GetStatefulSetContainers(item runtime.Object) []v1.Container
- func GetStatefulSetInitContainers(item runtime.Object) []v1.Container
- func GetStatefulSetItem(clients kube.Clients, name string, namespace string) (runtime.Object, error)
- func GetStatefulSetItems(clients kube.Clients, namespace string) []runtime.Object
- func GetStatefulSetPodAnnotations(item runtime.Object) map[string]string
- func GetStatefulSetVolumes(item runtime.Object) []v1.Volume
- func PatchCronJob(clients kube.Clients, namespace string, resource runtime.Object, ...) error
- func PatchDaemonSet(clients kube.Clients, namespace string, resource runtime.Object, ...) error
- func PatchDeployment(clients kube.Clients, namespace string, resource runtime.Object, ...) error
- func PatchJob(clients kube.Clients, namespace string, resource runtime.Object, ...) error
- func PatchRollout(clients kube.Clients, namespace string, resource runtime.Object, ...) error
- func PatchStatefulSet(clients kube.Clients, namespace string, resource runtime.Object, ...) error
- func ReCreateJobFromjob(clients kube.Clients, namespace string, resource runtime.Object) error
- func UpdateDaemonSet(clients kube.Clients, namespace string, resource runtime.Object) error
- func UpdateDeployment(clients kube.Clients, namespace string, resource runtime.Object) error
- func UpdateRollout(clients kube.Clients, namespace string, resource runtime.Object) error
- func UpdateStatefulSet(clients kube.Clients, namespace string, resource runtime.Object) error
- type AnnotationsFunc
- type ContainersFunc
- type InitContainersFunc
- type ItemFunc
- type ItemsFunc
- type PatchFunc
- type PatchTemplates
- type PatchTemplatesFunc
- type PodAnnotationsFunc
- type RollingUpgradeFuncs
- type UpdateFunc
- type VolumesFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateJobFromCronjob ¶ added in v1.0.42
CreateJobFromCronjob performs rolling upgrade on cronjob
func GetCronJobAnnotations ¶ added in v1.0.42
GetCronJobAnnotations returns the annotations of given cronjob
func GetCronJobContainers ¶ added in v1.0.42
GetCronJobContainers returns the containers of given cronjob
func GetCronJobInitContainers ¶ added in v1.0.42
GetCronJobInitContainers returns the containers of given cronjob
func GetCronJobItem ¶ added in v1.4.3
GetCronJobItem returns the job in given namespace
func GetCronJobItems ¶ added in v1.0.42
GetCronJobItems returns the jobs in given namespace
func GetCronJobPodAnnotations ¶ added in v1.0.42
GetCronJobPodAnnotations returns the pod's annotations of given cronjob
func GetCronJobVolumes ¶ added in v1.0.42
GetCronJobVolumes returns the Volumes of given cronjob
func GetDaemonSetAnnotations ¶ added in v0.0.52
GetDaemonSetAnnotations returns the annotations of given daemonSet
func GetDaemonSetContainers ¶
GetDaemonSetContainers returns the containers of given daemonSet
func GetDaemonSetInitContainers ¶ added in v0.0.26
GetDaemonSetInitContainers returns the containers of given daemonSet
func GetDaemonSetItem ¶ added in v1.4.3
GetDaemonSetItem returns the daemonSet in given namespace
func GetDaemonSetItems ¶
GetDaemonSetItems returns the daemonSets in given namespace
func GetDaemonSetPodAnnotations ¶ added in v0.0.52
GetDaemonSetPodAnnotations returns the pod's annotations of given daemonSet
func GetDaemonSetVolumes ¶ added in v0.0.22
GetDaemonSetVolumes returns the Volumes of given daemonSet
func GetDeploymentAnnotations ¶ added in v0.0.52
GetDeploymentAnnotations returns the annotations of given deployment
func GetDeploymentContainers ¶
GetDeploymentContainers returns the containers of given deployment
func GetDeploymentInitContainers ¶ added in v0.0.26
GetDeploymentInitContainers returns the containers of given deployment
func GetDeploymentItem ¶ added in v1.4.3
GetDeploymentItem returns the deployment in given namespace
func GetDeploymentItems ¶
GetDeploymentItems returns the deployments in given namespace
func GetDeploymentPodAnnotations ¶ added in v0.0.52
GetDeploymentPodAnnotations returns the pod's annotations of given deployment
func GetDeploymentVolumes ¶ added in v0.0.22
GetDeploymentVolumes returns the Volumes of given deployment
func GetJobAnnotations ¶ added in v1.3.0
GetJobAnnotations returns the annotations of given job
func GetJobContainers ¶ added in v1.3.0
GetJobContainers returns the containers of given job
func GetJobInitContainers ¶ added in v1.3.0
GetJobInitContainers returns the containers of given job
func GetJobItem ¶ added in v1.4.3
GetJobItem returns the job in given namespace
func GetJobItems ¶ added in v1.3.0
GetJobItems returns the jobs in given namespace
func GetJobPodAnnotations ¶ added in v1.3.0
GetJobPodAnnotations returns the pod's annotations of given job
func GetJobVolumes ¶ added in v1.3.0
GetJobVolumes returns the Volumes of given job
func GetRolloutAnnotations ¶ added in v0.0.83
GetRolloutAnnotations returns the annotations of given rollout
func GetRolloutContainers ¶ added in v0.0.83
GetRolloutContainers returns the containers of given rollout
func GetRolloutInitContainers ¶ added in v0.0.83
GetRolloutInitContainers returns the containers of given rollout
func GetRolloutItem ¶ added in v1.4.3
GetRolloutItem returns the rollout in given namespace
func GetRolloutItems ¶ added in v0.0.83
GetRolloutItems returns the rollouts in given namespace
func GetRolloutPodAnnotations ¶ added in v0.0.83
GetRolloutPodAnnotations returns the pod's annotations of given rollout
func GetRolloutVolumes ¶ added in v0.0.83
GetRolloutVolumes returns the Volumes of given rollout
func GetStatefulSetAnnotations ¶ added in v0.0.52
GetStatefulSetAnnotations returns the annotations of given statefulSet
func GetStatefulSetContainers ¶ added in v0.0.52
GetStatefulSetContainers returns the containers of given statefulSet
func GetStatefulSetInitContainers ¶ added in v0.0.52
GetStatefulSetInitContainers returns the containers of given statefulSet
func GetStatefulSetItem ¶ added in v1.4.3
func GetStatefulSetItem(clients kube.Clients, name string, namespace string) (runtime.Object, error)
GetStatefulSetItem returns the statefulSet in given namespace
func GetStatefulSetItems ¶
GetStatefulSetItems returns the statefulSets in given namespace
func GetStatefulSetPodAnnotations ¶ added in v0.0.52
GetStatefulSetPodAnnotations returns the pod's annotations of given statefulSet
func GetStatefulSetVolumes ¶ added in v0.0.52
GetStatefulSetVolumes returns the Volumes of given statefulSet
func PatchCronJob ¶ added in v1.4.3
func PatchDaemonSet ¶ added in v1.4.3
func PatchDeployment ¶ added in v1.4.3
func PatchDeployment(clients kube.Clients, namespace string, resource runtime.Object, patchType patchtypes.PatchType, bytes []byte) error
PatchDeployment performs rolling upgrade on deployment
func PatchRollout ¶ added in v1.4.3
func PatchStatefulSet ¶ added in v1.4.3
func ReCreateJobFromjob ¶ added in v1.3.0
ReCreateJobFromjob performs rolling upgrade on job
func UpdateDaemonSet ¶
UpdateDaemonSet performs rolling upgrade on daemonSet
func UpdateDeployment ¶
UpdateDeployment performs rolling upgrade on deployment
func UpdateRollout ¶ added in v0.0.83
UpdateRollout performs rolling upgrade on rollout
Types ¶
type AnnotationsFunc ¶ added in v0.0.52
AnnotationsFunc is a generic func to return annotations
type ContainersFunc ¶
ContainersFunc is a generic func to return containers
type InitContainersFunc ¶ added in v0.0.26
InitContainersFunc is a generic func to return containers
type ItemFunc ¶ added in v1.4.3
ItemFunc is a generic function to return a specific resource in given namespace
type ItemsFunc ¶
ItemsFunc is a generic function to return a specific resource array in given namespace
type PatchTemplates ¶ added in v1.4.3
type PatchTemplates struct {
AnnotationTemplate string
EnvVarTemplate string
DeleteEnvVarTemplate string
}
PatchTemplates contains merge JSON patch templates
func GetPatchTemplates ¶ added in v1.4.3
func GetPatchTemplates() PatchTemplates
GetPatchTemplates returns patch templates
type PatchTemplatesFunc ¶ added in v1.4.3
type PatchTemplatesFunc func() PatchTemplates
PatchTemplateFunc is a generic func to return strategic merge JSON patch template
type PodAnnotationsFunc ¶ added in v0.0.52
PodAnnotationsFunc is a generic func to return annotations
type RollingUpgradeFuncs ¶
type RollingUpgradeFuncs struct {
ItemFunc ItemFunc
ItemsFunc ItemsFunc
AnnotationsFunc AnnotationsFunc
PodAnnotationsFunc PodAnnotationsFunc
ContainersFunc ContainersFunc
ContainerPatchPathFunc ContainersFunc
InitContainersFunc InitContainersFunc
UpdateFunc UpdateFunc
PatchFunc PatchFunc
PatchTemplatesFunc PatchTemplatesFunc
VolumesFunc VolumesFunc
ResourceType string
SupportsPatch bool
}
RollingUpgradeFuncs contains generic functions to perform rolling upgrade
type UpdateFunc ¶
UpdateFunc performs the resource update