package replicapreferences
import "k8s.io/kubernetes/federation/pkg/federation-controller/util/replicapreferences"
Index ¶
Functions ¶
func GetAllocationPreferences ¶
func GetAllocationPreferences(obj runtime.Object, key string) (*fed.ReplicaAllocationPreferences, error)
GetAllocationPreferences reads the preferences from the annotations on the given object. It takes in an object and determines the supported types. Callers need to pass the string key used to store the annotations. Returns nil if the annotations with the given key are not found.
Source Files ¶
preferences.go
- Version
- v1.8.9
- Published
- Mar 12, 2018
- Platform
- darwin/amd64
- Imports
- 4 packages
- Last checked
- 2 minutes ago –
Tools for package owners.