package replicaset
import "k8s.io/kubernetes/pkg/registry/apps/replicaset"
Package replicaset provides Registry interface and it's RESTStorage implementation for storing ReplicaSet api objects.
Index ¶
- Variables
- func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, bool, error)
- func MatchReplicaSet(label labels.Selector, field fields.Selector) apistorage.SelectionPredicate
- func ReplicaSetToSelectableFields(rs *apps.ReplicaSet) fields.Set
Variables ¶
var StatusStrategy = rsStatusStrategy{Strategy}
var Strategy = rsStrategy{legacyscheme.Scheme, names.SimpleNameGenerator}
Strategy is the default logic that applies when creating and updating ReplicaSet objects.
Functions ¶
func GetAttrs ¶
GetAttrs returns labels and fields of a given object for filtering purposes.
func MatchReplicaSet ¶
func MatchReplicaSet(label labels.Selector, field fields.Selector) apistorage.SelectionPredicate
MatchReplicaSet is the filter used by the generic etcd backend to route watch events from etcd to clients of the apiserver only interested in specific labels/fields.
func ReplicaSetToSelectableFields ¶
func ReplicaSetToSelectableFields(rs *apps.ReplicaSet) fields.Set
ReplicaSetToSelectableFields returns a field set that represents the object.
Source Files ¶
doc.go strategy.go
Directories ¶
Path | Synopsis |
---|---|
pkg/registry/apps/replicaset/storage |
- Version
- v1.13.8
- Published
- Jul 4, 2019
- Platform
- js/wasm
- Imports
- 21 packages
- Last checked
- 18 minutes ago –
Tools for package owners.