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 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 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 GetDeploymentConfigAnnotations(item runtime.Object) map[string]string
- func GetDeploymentConfigContainers(item runtime.Object) []v1.Container
- func GetDeploymentConfigInitContainers(item runtime.Object) []v1.Container
- func GetDeploymentConfigItems(clients kube.Clients, namespace string) []runtime.Object
- func GetDeploymentConfigPodAnnotations(item runtime.Object) map[string]string
- func GetDeploymentConfigVolumes(item runtime.Object) []v1.Volume
- func GetDeploymentContainers(item runtime.Object) []v1.Container
- func GetDeploymentInitContainers(item runtime.Object) []v1.Container
- 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 GetRolloutAnnotations(item runtime.Object) map[string]string
- func GetRolloutContainers(item runtime.Object) []v1.Container
- func GetRolloutInitContainers(item runtime.Object) []v1.Container
- 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 GetStatefulSetItems(clients kube.Clients, namespace string) []runtime.Object
- func GetStatefulSetPodAnnotations(item runtime.Object) map[string]string
- func GetStatefulSetVolumes(item runtime.Object) []v1.Volume
- func UpdateDaemonSet(clients kube.Clients, namespace string, resource runtime.Object) error
- func UpdateDeployment(clients kube.Clients, namespace string, resource runtime.Object) error
- func UpdateDeploymentConfig(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 ItemsFunc
- 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 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 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 GetDeploymentConfigAnnotations ¶ added in v0.0.52
GetDeploymentConfigAnnotations returns the annotations of given deploymentConfig
func GetDeploymentConfigContainers ¶ added in v0.0.37
GetDeploymentConfigContainers returns the containers of given deploymentConfig
func GetDeploymentConfigInitContainers ¶ added in v0.0.37
GetDeploymentConfigInitContainers returns the containers of given deploymentConfig
func GetDeploymentConfigItems ¶ added in v0.0.37
GetDeploymentConfigItems returns the deploymentConfigs in given namespace
func GetDeploymentConfigPodAnnotations ¶ added in v0.0.52
GetDeploymentConfigPodAnnotations returns the pod's annotations of given deploymentConfig
func GetDeploymentConfigVolumes ¶ added in v0.0.37
GetDeploymentConfigVolumes returns the Volumes of given deploymentConfig
func GetDeploymentContainers ¶
GetDeploymentContainers returns the containers of given deployment
func GetDeploymentInitContainers ¶ added in v0.0.26
GetDeploymentInitContainers returns the containers of given deployment
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 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 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 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 UpdateDaemonSet ¶
UpdateDaemonSet performs rolling upgrade on daemonSet
func UpdateDeployment ¶
UpdateDeployment performs rolling upgrade on deployment
func UpdateDeploymentConfig ¶ added in v0.0.37
UpdateDeploymentConfig performs rolling upgrade on deploymentConfig
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 ItemsFunc ¶
ItemsFunc is a generic function to return a specific resource array in given namespace
type PodAnnotationsFunc ¶ added in v0.0.52
PodAnnotationsFunc is a generic func to return annotations
type RollingUpgradeFuncs ¶
type RollingUpgradeFuncs struct { ItemsFunc ItemsFunc AnnotationsFunc AnnotationsFunc PodAnnotationsFunc PodAnnotationsFunc ContainersFunc ContainersFunc InitContainersFunc InitContainersFunc UpdateFunc UpdateFunc VolumesFunc VolumesFunc ResourceType string }
RollingUpgradeFuncs contains generic functions to perform rolling upgrade
type UpdateFunc ¶
UpdateFunc performs the resource update