package replicaset
import "k8s.io/kubernetes/pkg/util/replicaset"
Index ¶
- func GetPodTemplateSpecHash(rs *extensions.ReplicaSet) string
- func MatchingPodsFunc(rs *extensions.ReplicaSet) (func(api.Pod) bool, error)
- func UpdateRSWithRetries(rsClient unversionedextensions.ReplicaSetInterface, rs *extensions.ReplicaSet, applyUpdate updateRSFunc) (*extensions.ReplicaSet, bool, error)
Functions ¶
func GetPodTemplateSpecHash ¶
func GetPodTemplateSpecHash(rs *extensions.ReplicaSet) string
GetPodTemplateSpecHash returns the pod template hash of a ReplicaSet's pod template space
func MatchingPodsFunc ¶
func MatchingPodsFunc(rs *extensions.ReplicaSet) (func(api.Pod) bool, error)
MatchingPodsFunc returns a filter function for pods with matching labels
func UpdateRSWithRetries ¶
func UpdateRSWithRetries(rsClient unversionedextensions.ReplicaSetInterface, rs *extensions.ReplicaSet, applyUpdate updateRSFunc) (*extensions.ReplicaSet, bool, error)
UpdateRSWithRetries updates a RS with given applyUpdate function. Note that RS not found error is ignored. The returned bool value can be used to tell if the RS is actually updated.
Source Files ¶
replicaset.go
- Version
- v1.5.2
- Published
- Jan 12, 2017
- Platform
- js/wasm
- Imports
- 13 packages
- Last checked
- 17 minutes ago –
Tools for package owners.