kubernetesk8s.io/kubernetes/federation/pkg/federation-controller/util/replicapreferences Index | Files

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.0
Published
Sep 28, 2017
Platform
darwin/amd64
Imports
4 packages
Last checked
12 minutes ago

Tools for package owners.