util

package
Version: v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2015 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DeployerPodSuffix = "deploy"

DeployerPodSuffix is the suffix added to pods created from a deployment

Variables

This section is empty.

Functions

func AnyDeployerPodSelector added in v0.6.2

func AnyDeployerPodSelector() labels.Selector

AnyDeployerPodSelector returns a label Selector which can be used to find all deployer pods across all deployments, including hook and custom deployer pods.

func ConfigSelector added in v0.5.4

func ConfigSelector(name string) labels.Selector

ConfigSelector returns a label Selector which can be used to find all deployments for a DeploymentConfig.

TODO: Using the annotation constant for now since the value is correct but we could consider adding a new constant to the public types.

func DecodeDeploymentConfig added in v0.2.1

func DecodeDeploymentConfig(controller *api.ReplicationController, codec runtime.Codec) (*deployapi.DeploymentConfig, error)

DecodeDeploymentConfig decodes a DeploymentConfig from controller using codec. An error is returned if the controller doesn't contain an encoded config.

func DeployerPodNameFor added in v0.5.2

func DeployerPodNameFor(obj runtime.Object) string

func DeployerPodNameForDeployment added in v0.3.2

func DeployerPodNameForDeployment(deployment string) string

DeployerPodNameForDeployment returns the name of a pod for a given deployment

func DeployerPodSelector added in v0.6.2

func DeployerPodSelector(name string) labels.Selector

DeployerPodSelector returns a label Selector which can be used to find all deployer pods associated with a deployment with name.

func DeploymentConfigNameFor added in v0.5.2

func DeploymentConfigNameFor(obj runtime.Object) string

func DeploymentDesiredReplicas added in v0.5.3

func DeploymentDesiredReplicas(obj runtime.Object) (int, bool)

func DeploymentNameFor added in v0.5.2

func DeploymentNameFor(obj runtime.Object) string

func DeploymentStatusFor added in v0.5.2

func DeploymentStatusFor(obj runtime.Object) deployapi.DeploymentStatus

func DeploymentStatusReasonFor added in v0.5.3

func DeploymentStatusReasonFor(obj runtime.Object) string

func DeploymentVersionFor added in v0.5.2

func DeploymentVersionFor(obj runtime.Object) int

func EncodeDeploymentConfig added in v0.2.1

func EncodeDeploymentConfig(config *deployapi.DeploymentConfig, codec runtime.Codec) (string, error)

EncodeDeploymentConfig encodes config as a string using codec.

func EncodedDeploymentConfigFor added in v0.5.2

func EncodedDeploymentConfigFor(obj runtime.Object) string

func IsDeploymentCancelled added in v0.5.3

func IsDeploymentCancelled(deployment *api.ReplicationController) bool

func LabelForDeployment added in v0.5.1

func LabelForDeployment(deployment *api.ReplicationController) string

LabelForDeployment builds a string identifier for a Deployment.

func LabelForDeploymentConfig added in v0.5.1

func LabelForDeploymentConfig(config *deployapi.DeploymentConfig) string

LabelForDeploymentConfig builds a string identifier for a DeploymentConfig.

func LatestDeploymentNameForConfig added in v0.2.1

func LatestDeploymentNameForConfig(config *deployapi.DeploymentConfig) string

LatestDeploymentNameForConfig returns a stable identifier for config based on its version.

func MakeDeployment added in v0.2.1

func MakeDeployment(config *deployapi.DeploymentConfig, codec runtime.Codec) (*api.ReplicationController, error)

MakeDeployment creates a deployment represented as a ReplicationController and based on the given DeploymentConfig. The controller replica count will be zero.

Types

type DeploymentsByLatestVersionAsc added in v0.6.1

type DeploymentsByLatestVersionAsc []api.ReplicationController

DeploymentsByLatestVersionAsc sorts deployments by LatestVersion ascending.

func (DeploymentsByLatestVersionAsc) Len added in v0.6.1

func (DeploymentsByLatestVersionAsc) Less added in v0.6.1

func (d DeploymentsByLatestVersionAsc) Less(i, j int) bool

func (DeploymentsByLatestVersionAsc) Swap added in v0.6.1

func (d DeploymentsByLatestVersionAsc) Swap(i, j int)

type DeploymentsByLatestVersionDesc added in v0.6.1

type DeploymentsByLatestVersionDesc []api.ReplicationController

DeploymentsByLatestVersionAsc sorts deployments by LatestVersion descending.

func (DeploymentsByLatestVersionDesc) Len added in v0.6.1

func (DeploymentsByLatestVersionDesc) Less added in v0.6.1

func (DeploymentsByLatestVersionDesc) Swap added in v0.6.1

func (d DeploymentsByLatestVersionDesc) Swap(i, j int)

type ListWatcherImpl added in v0.3.2

type ListWatcherImpl struct {
	ListFunc  func() (runtime.Object, error)
	WatchFunc func(resourceVersion string) (watch.Interface, error)
}

ListWatcherImpl is a pluggable ListWatcher. TODO: This has been incorporated upstream; replace during a future rebase.

func (*ListWatcherImpl) List added in v0.3.2

func (lw *ListWatcherImpl) List() (runtime.Object, error)

func (*ListWatcherImpl) Watch added in v0.3.2

func (lw *ListWatcherImpl) Watch(resourceVersion string) (watch.Interface, error)

Source Files

Jump to

Keyboard shortcuts

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