Documentation
¶
Index ¶
- func GetDaemonSetContainers(item interface{}) []v1.Container
- func GetDaemonSetItems(client kubernetes.Interface, namespace string) []interface{}
- func GetDeploymentContainers(item interface{}) []v1.Container
- func GetDeploymentItems(client kubernetes.Interface, namespace string) []interface{}
- func GetStatefulSetItems(client kubernetes.Interface, namespace string) []interface{}
- func GetStatefulsetContainers(item interface{}) []v1.Container
- func UpdateDaemonSet(client kubernetes.Interface, namespace string, resource interface{}) error
- func UpdateDeployment(client kubernetes.Interface, namespace string, resource interface{}) error
- func UpdateStatefulset(client kubernetes.Interface, namespace string, resource interface{}) error
- type ContainersFunc
- type ItemsFunc
- type RollingUpgradeFuncs
- type UpdateFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDaemonSetContainers ¶
GetDaemonSetContainers returns the containers of given daemonset
func GetDaemonSetItems ¶
func GetDaemonSetItems(client kubernetes.Interface, namespace string) []interface{}
GetDaemonSetItems returns the daemonSet in given namespace
func GetDeploymentContainers ¶
GetDeploymentContainers returns the containers of given deployment
func GetDeploymentItems ¶
func GetDeploymentItems(client kubernetes.Interface, namespace string) []interface{}
GetDeploymentItems returns the deployments in given namespace
func GetStatefulSetItems ¶
func GetStatefulSetItems(client kubernetes.Interface, namespace string) []interface{}
GetStatefulSetItems returns the statefulSet in given namespace
func GetStatefulsetContainers ¶
GetStatefulsetContainers returns the containers of given statefulSet
func UpdateDaemonSet ¶
func UpdateDaemonSet(client kubernetes.Interface, namespace string, resource interface{}) error
UpdateDaemonSet performs rolling upgrade on daemonSet
func UpdateDeployment ¶
func UpdateDeployment(client kubernetes.Interface, namespace string, resource interface{}) error
UpdateDeployment performs rolling upgrade on deployment
func UpdateStatefulset ¶
func UpdateStatefulset(client kubernetes.Interface, namespace string, resource interface{}) error
UpdateStatefulset performs rolling upgrade on statefulSet
Types ¶
type ContainersFunc ¶
ContainersFunc is a generic func to return containers
type ItemsFunc ¶
type ItemsFunc func(kubernetes.Interface, string) []interface{}
ItemsFunc is a generic function to return a specific resource array in given namespace
type RollingUpgradeFuncs ¶
type RollingUpgradeFuncs struct { ItemsFunc ItemsFunc ContainersFunc ContainersFunc UpdateFunc UpdateFunc ResourceType string }
RollingUpgradeFuncs contains generic functions to perform rolling upgrade
type UpdateFunc ¶
type UpdateFunc func(kubernetes.Interface, string, interface{}) error
UpdateFunc performs the resource update