deployment

package
v1.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2015 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneAndAddLabel

func CloneAndAddLabel(labels map[string]string, labelKey string, labelValue uint32) map[string]string

Clones the given map and returns a new map with the given key and value added. Returns the given map, if labelKey is empty.

func GetAvailablePodsForRCs

func GetAvailablePodsForRCs(c client.Interface, rcs []*api.ReplicationController) (int, error)

Returns the number of available pods corresponding to the given RCs.

func GetNewRC

Returns an RC that matches the intent of the given deployment. Returns nil if the new RC doesnt exist yet.

func GetNewRCTemplate

func GetNewRCTemplate(deployment extensions.Deployment) *api.PodTemplateSpec

Returns the desired PodTemplateSpec for the new RC corresponding to the given RC.

func GetOldRCs

func GetOldRCs(deployment extensions.Deployment, c client.Interface) ([]*api.ReplicationController, error)

Returns the old RCs targetted by the given Deployment.

func GetPodTemplateSpecHash

func GetPodTemplateSpecHash(template *api.PodTemplateSpec) uint32

func GetReplicaCountForRCs

func GetReplicaCountForRCs(replicationControllers []*api.ReplicationController) int

Returns the sum of Replicas of the given replication controllers.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL