Documentation ¶
Index ¶
- Constants
- func AnyDeployerPodSelector() labels.Selector
- func ConfigSelector(name string) labels.Selector
- func DecodeDeploymentConfig(controller *api.ReplicationController, codec runtime.Codec) (*deployapi.DeploymentConfig, error)
- func DeployerPodNameFor(obj runtime.Object) string
- func DeployerPodNameForDeployment(deployment string) string
- func DeployerPodSelector(name string) labels.Selector
- func DeploymentConfigNameFor(obj runtime.Object) string
- func DeploymentDesiredReplicas(obj runtime.Object) (int, bool)
- func DeploymentNameFor(obj runtime.Object) string
- func DeploymentStatusFor(obj runtime.Object) deployapi.DeploymentStatus
- func DeploymentStatusReasonFor(obj runtime.Object) string
- func DeploymentVersionFor(obj runtime.Object) int
- func EncodeDeploymentConfig(config *deployapi.DeploymentConfig, codec runtime.Codec) (string, error)
- func EncodedDeploymentConfigFor(obj runtime.Object) string
- func IsDeploymentCancelled(deployment *api.ReplicationController) bool
- func LabelForDeployment(deployment *api.ReplicationController) string
- func LabelForDeploymentConfig(config *deployapi.DeploymentConfig) string
- func LatestDeploymentNameForConfig(config *deployapi.DeploymentConfig) string
- func MakeDeployment(config *deployapi.DeploymentConfig, codec runtime.Codec) (*api.ReplicationController, error)
- type DeploymentsByLatestVersionAsc
- type DeploymentsByLatestVersionDesc
- type ListWatcherImpl
Constants ¶
const DeployerPodSuffix = "deploy"
DeployerPodSuffix is the suffix added to pods created from a deployment
Variables ¶
This section is empty.
Functions ¶
func AnyDeployerPodSelector ¶
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 ¶
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 ¶
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 ¶
func DeployerPodNameForDeployment ¶
DeployerPodNameForDeployment returns the name of a pod for a given deployment
func DeployerPodSelector ¶
DeployerPodSelector returns a label Selector which can be used to find all deployer pods associated with a deployment with name.
func DeploymentConfigNameFor ¶
func DeploymentNameFor ¶
func DeploymentStatusFor ¶
func DeploymentStatusFor(obj runtime.Object) deployapi.DeploymentStatus
func DeploymentVersionFor ¶
func EncodeDeploymentConfig ¶
func EncodeDeploymentConfig(config *deployapi.DeploymentConfig, codec runtime.Codec) (string, error)
EncodeDeploymentConfig encodes config as a string using codec.
func IsDeploymentCancelled ¶
func IsDeploymentCancelled(deployment *api.ReplicationController) bool
func LabelForDeployment ¶
func LabelForDeployment(deployment *api.ReplicationController) string
LabelForDeployment builds a string identifier for a Deployment.
func LabelForDeploymentConfig ¶
func LabelForDeploymentConfig(config *deployapi.DeploymentConfig) string
LabelForDeploymentConfig builds a string identifier for a DeploymentConfig.
func LatestDeploymentNameForConfig ¶
func LatestDeploymentNameForConfig(config *deployapi.DeploymentConfig) string
LatestDeploymentNameForConfig returns a stable identifier for config based on its version.
func MakeDeployment ¶
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 ¶
type DeploymentsByLatestVersionAsc []api.ReplicationController
DeploymentsByLatestVersionAsc sorts deployments by LatestVersion ascending.
func (DeploymentsByLatestVersionAsc) Len ¶
func (d DeploymentsByLatestVersionAsc) Len() int
func (DeploymentsByLatestVersionAsc) Less ¶
func (d DeploymentsByLatestVersionAsc) Less(i, j int) bool
func (DeploymentsByLatestVersionAsc) Swap ¶
func (d DeploymentsByLatestVersionAsc) Swap(i, j int)
type DeploymentsByLatestVersionDesc ¶
type DeploymentsByLatestVersionDesc []api.ReplicationController
DeploymentsByLatestVersionAsc sorts deployments by LatestVersion descending.
func (DeploymentsByLatestVersionDesc) Len ¶
func (d DeploymentsByLatestVersionDesc) Len() int
func (DeploymentsByLatestVersionDesc) Less ¶
func (d DeploymentsByLatestVersionDesc) Less(i, j int) bool
func (DeploymentsByLatestVersionDesc) Swap ¶
func (d DeploymentsByLatestVersionDesc) Swap(i, j int)