v1

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2016 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package v1 is the v1 version of the API. +genconversion=true

Package v1 is a generated protocol buffer package.

It is generated from these files:
	github.com/openshift/origin/pkg/deploy/api/v1/generated.proto

It has these top-level messages:
	CustomDeploymentStrategyParams
	DeploymentCause
	DeploymentCauseImageTrigger
	DeploymentConfig
	DeploymentConfigList
	DeploymentConfigRollback
	DeploymentConfigRollbackSpec
	DeploymentConfigSpec
	DeploymentConfigStatus
	DeploymentDetails
	DeploymentLog
	DeploymentLogOptions
	DeploymentStrategy
	DeploymentTriggerImageChangeParams
	DeploymentTriggerPolicies
	DeploymentTriggerPolicy
	ExecNewPodHook
	LifecycleHook
	RecreateDeploymentStrategyParams
	RollingDeploymentStrategyParams
	TagImageHook

Index

Constants

View Source
const (
	// DeploymentConfigAnnotation is an annotation name used to correlate a deployment with the
	// DeploymentConfig on which the deployment is based.
	DeploymentConfigAnnotation = "openshift.io/deployment-config.name"
	// DeploymentAnnotation is an annotation on a deployer Pod. The annotation value is the name
	// of the deployment (a ReplicationController) on which the deployer Pod acts.
	DeploymentAnnotation = "openshift.io/deployment.name"
	// DeploymentPodAnnotation is an annotation on a deployment (a ReplicationController). The
	// annotation value is the name of the deployer Pod which will act upon the ReplicationController
	// to implement the deployment behavior.
	DeploymentPodAnnotation = "openshift.io/deployer-pod.name"
	// DeploymentPodTypeLabel is a label with which contains a type of deployment pod.
	DeploymentPodTypeLabel = "openshift.io/deployer-pod.type"
	// DeployerPodForDeploymentLabel is a label which groups pods related to a
	// deployment. The value is a deployment name. The deployer pod and hook pods
	// created by the internal strategies will have this label. Custom
	// strategies can apply this label to any pods they create, enabling
	// platform-provided cancellation and garbage collection support.
	DeployerPodForDeploymentLabel = "openshift.io/deployer-pod-for.name"
	// DeploymentPhaseAnnotation is an annotation name used to retrieve the DeploymentPhase of
	// a deployment.
	DeploymentPhaseAnnotation = "openshift.io/deployment.phase"
	// DeploymentEncodedConfigAnnotation is an annotation name used to retrieve specific encoded
	// DeploymentConfig on which a given deployment is based.
	DeploymentEncodedConfigAnnotation = "openshift.io/encoded-deployment-config"
	// DeploymentVersionAnnotation is an annotation on a deployment (a ReplicationController). The
	// annotation value is the LatestVersion value of the DeploymentConfig which was the basis for
	// the deployment.
	DeploymentVersionAnnotation = "openshift.io/deployment-config.latest-version"
	// DeploymentLabel is the name of a label used to correlate a deployment with the Pod created
	// to execute the deployment logic.
	// TODO: This is a workaround for upstream's lack of annotation support on PodTemplate. Once
	// annotations are available on PodTemplate, audit this constant with the goal of removing it.
	DeploymentLabel = "deployment"
	// DeploymentConfigLabel is the name of a label used to correlate a deployment with the
	// DeploymentConfigs on which the deployment is based.
	DeploymentConfigLabel = "deploymentconfig"
	// DeploymentStatusReasonAnnotation represents the reason for deployment being in a given state
	// Used for specifying the reason for cancellation or failure of a deployment
	DeploymentStatusReasonAnnotation = "openshift.io/deployment.status-reason"
	// DeploymentCancelledAnnotation indicates that the deployment has been cancelled
	// The annotation value does not matter and its mere presence indicates cancellation
	DeploymentCancelledAnnotation = "openshift.io/deployment.cancelled"
	// DeploymentInstantiatedAnnotation indicates that the deployment has been instantiated.
	// The annotation value does not matter and its mere presence indicates instantiation.
	DeploymentInstantiatedAnnotation = "openshift.io/deployment.instantiated"
)

These constants represent keys used for correlating objects related to deployments.

View Source
const GroupName = ""

Variables

View Source
var (
	ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenerated   = fmt.Errorf("proto: integer overflow")
)
View Source
var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: "v1"}

SchemeGroupVersion is group version used to register these objects

Functions

func AddToScheme added in v1.1.3

func AddToScheme(scheme *runtime.Scheme)

func Convert_api_CustomDeploymentStrategyParams_To_v1_CustomDeploymentStrategyParams added in v1.3.0

func Convert_api_CustomDeploymentStrategyParams_To_v1_CustomDeploymentStrategyParams(in *deploy_api.CustomDeploymentStrategyParams, out *CustomDeploymentStrategyParams, s conversion.Scope) error

func Convert_api_DeploymentCauseImageTrigger_To_v1_DeploymentCauseImageTrigger added in v1.3.0

func Convert_api_DeploymentCauseImageTrigger_To_v1_DeploymentCauseImageTrigger(in *deploy_api.DeploymentCauseImageTrigger, out *DeploymentCauseImageTrigger, s conversion.Scope) error

func Convert_api_DeploymentCause_To_v1_DeploymentCause added in v1.3.0

func Convert_api_DeploymentCause_To_v1_DeploymentCause(in *deploy_api.DeploymentCause, out *DeploymentCause, s conversion.Scope) error

func Convert_api_DeploymentConfigList_To_v1_DeploymentConfigList added in v1.3.0

func Convert_api_DeploymentConfigList_To_v1_DeploymentConfigList(in *deploy_api.DeploymentConfigList, out *DeploymentConfigList, s conversion.Scope) error

func Convert_api_DeploymentConfigRollbackSpec_To_v1_DeploymentConfigRollbackSpec added in v1.3.0

func Convert_api_DeploymentConfigRollbackSpec_To_v1_DeploymentConfigRollbackSpec(in *deploy_api.DeploymentConfigRollbackSpec, out *DeploymentConfigRollbackSpec, s conversion.Scope) error

func Convert_api_DeploymentConfigRollback_To_v1_DeploymentConfigRollback added in v1.3.0

func Convert_api_DeploymentConfigRollback_To_v1_DeploymentConfigRollback(in *deploy_api.DeploymentConfigRollback, out *DeploymentConfigRollback, s conversion.Scope) error

func Convert_api_DeploymentConfigSpec_To_v1_DeploymentConfigSpec added in v1.3.0

func Convert_api_DeploymentConfigSpec_To_v1_DeploymentConfigSpec(in *deploy_api.DeploymentConfigSpec, out *DeploymentConfigSpec, s conversion.Scope) error

func Convert_api_DeploymentConfigStatus_To_v1_DeploymentConfigStatus added in v1.3.0

func Convert_api_DeploymentConfigStatus_To_v1_DeploymentConfigStatus(in *deploy_api.DeploymentConfigStatus, out *DeploymentConfigStatus, s conversion.Scope) error

func Convert_api_DeploymentConfig_To_v1_DeploymentConfig added in v1.3.0

func Convert_api_DeploymentConfig_To_v1_DeploymentConfig(in *deploy_api.DeploymentConfig, out *DeploymentConfig, s conversion.Scope) error

func Convert_api_DeploymentDetails_To_v1_DeploymentDetails added in v1.3.0

func Convert_api_DeploymentDetails_To_v1_DeploymentDetails(in *deploy_api.DeploymentDetails, out *DeploymentDetails, s conversion.Scope) error

func Convert_api_DeploymentLogOptions_To_v1_DeploymentLogOptions added in v1.3.0

func Convert_api_DeploymentLogOptions_To_v1_DeploymentLogOptions(in *deploy_api.DeploymentLogOptions, out *DeploymentLogOptions, s conversion.Scope) error

func Convert_api_DeploymentLog_To_v1_DeploymentLog added in v1.3.0

func Convert_api_DeploymentLog_To_v1_DeploymentLog(in *deploy_api.DeploymentLog, out *DeploymentLog, s conversion.Scope) error

func Convert_api_DeploymentStrategy_To_v1_DeploymentStrategy added in v1.3.0

func Convert_api_DeploymentStrategy_To_v1_DeploymentStrategy(in *deploy_api.DeploymentStrategy, out *DeploymentStrategy, s conversion.Scope) error

func Convert_api_DeploymentTriggerImageChangeParams_To_v1_DeploymentTriggerImageChangeParams added in v1.3.0

func Convert_api_DeploymentTriggerImageChangeParams_To_v1_DeploymentTriggerImageChangeParams(in *newer.DeploymentTriggerImageChangeParams, out *DeploymentTriggerImageChangeParams, s conversion.Scope) error

func Convert_api_DeploymentTriggerPolicy_To_v1_DeploymentTriggerPolicy added in v1.3.0

func Convert_api_DeploymentTriggerPolicy_To_v1_DeploymentTriggerPolicy(in *deploy_api.DeploymentTriggerPolicy, out *DeploymentTriggerPolicy, s conversion.Scope) error

func Convert_api_ExecNewPodHook_To_v1_ExecNewPodHook added in v1.3.0

func Convert_api_ExecNewPodHook_To_v1_ExecNewPodHook(in *deploy_api.ExecNewPodHook, out *ExecNewPodHook, s conversion.Scope) error

func Convert_api_LifecycleHook_To_v1_LifecycleHook added in v1.3.0

func Convert_api_LifecycleHook_To_v1_LifecycleHook(in *deploy_api.LifecycleHook, out *LifecycleHook, s conversion.Scope) error

func Convert_api_RecreateDeploymentStrategyParams_To_v1_RecreateDeploymentStrategyParams added in v1.3.0

func Convert_api_RecreateDeploymentStrategyParams_To_v1_RecreateDeploymentStrategyParams(in *deploy_api.RecreateDeploymentStrategyParams, out *RecreateDeploymentStrategyParams, s conversion.Scope) error

func Convert_api_RollingDeploymentStrategyParams_To_v1_RollingDeploymentStrategyParams added in v1.3.0

func Convert_api_RollingDeploymentStrategyParams_To_v1_RollingDeploymentStrategyParams(in *newer.RollingDeploymentStrategyParams, out *RollingDeploymentStrategyParams, s conversion.Scope) error

func Convert_api_TagImageHook_To_v1_TagImageHook added in v1.3.0

func Convert_api_TagImageHook_To_v1_TagImageHook(in *deploy_api.TagImageHook, out *TagImageHook, s conversion.Scope) error

func Convert_v1_CustomDeploymentStrategyParams_To_api_CustomDeploymentStrategyParams added in v1.3.0

func Convert_v1_CustomDeploymentStrategyParams_To_api_CustomDeploymentStrategyParams(in *CustomDeploymentStrategyParams, out *deploy_api.CustomDeploymentStrategyParams, s conversion.Scope) error

func Convert_v1_DeploymentCauseImageTrigger_To_api_DeploymentCauseImageTrigger added in v1.3.0

func Convert_v1_DeploymentCauseImageTrigger_To_api_DeploymentCauseImageTrigger(in *DeploymentCauseImageTrigger, out *deploy_api.DeploymentCauseImageTrigger, s conversion.Scope) error

func Convert_v1_DeploymentCause_To_api_DeploymentCause added in v1.3.0

func Convert_v1_DeploymentCause_To_api_DeploymentCause(in *DeploymentCause, out *deploy_api.DeploymentCause, s conversion.Scope) error

func Convert_v1_DeploymentConfigList_To_api_DeploymentConfigList added in v1.3.0

func Convert_v1_DeploymentConfigList_To_api_DeploymentConfigList(in *DeploymentConfigList, out *deploy_api.DeploymentConfigList, s conversion.Scope) error

func Convert_v1_DeploymentConfigRollbackSpec_To_api_DeploymentConfigRollbackSpec added in v1.3.0

func Convert_v1_DeploymentConfigRollbackSpec_To_api_DeploymentConfigRollbackSpec(in *DeploymentConfigRollbackSpec, out *deploy_api.DeploymentConfigRollbackSpec, s conversion.Scope) error

func Convert_v1_DeploymentConfigRollback_To_api_DeploymentConfigRollback added in v1.3.0

func Convert_v1_DeploymentConfigRollback_To_api_DeploymentConfigRollback(in *DeploymentConfigRollback, out *deploy_api.DeploymentConfigRollback, s conversion.Scope) error

func Convert_v1_DeploymentConfigSpec_To_api_DeploymentConfigSpec added in v1.3.0

func Convert_v1_DeploymentConfigSpec_To_api_DeploymentConfigSpec(in *DeploymentConfigSpec, out *deploy_api.DeploymentConfigSpec, s conversion.Scope) error

func Convert_v1_DeploymentConfigStatus_To_api_DeploymentConfigStatus added in v1.3.0

func Convert_v1_DeploymentConfigStatus_To_api_DeploymentConfigStatus(in *DeploymentConfigStatus, out *deploy_api.DeploymentConfigStatus, s conversion.Scope) error

func Convert_v1_DeploymentConfig_To_api_DeploymentConfig added in v1.3.0

func Convert_v1_DeploymentConfig_To_api_DeploymentConfig(in *DeploymentConfig, out *deploy_api.DeploymentConfig, s conversion.Scope) error

func Convert_v1_DeploymentDetails_To_api_DeploymentDetails added in v1.3.0

func Convert_v1_DeploymentDetails_To_api_DeploymentDetails(in *DeploymentDetails, out *deploy_api.DeploymentDetails, s conversion.Scope) error

func Convert_v1_DeploymentLogOptions_To_api_DeploymentLogOptions added in v1.3.0

func Convert_v1_DeploymentLogOptions_To_api_DeploymentLogOptions(in *DeploymentLogOptions, out *deploy_api.DeploymentLogOptions, s conversion.Scope) error

func Convert_v1_DeploymentLog_To_api_DeploymentLog added in v1.3.0

func Convert_v1_DeploymentLog_To_api_DeploymentLog(in *DeploymentLog, out *deploy_api.DeploymentLog, s conversion.Scope) error

func Convert_v1_DeploymentStrategy_To_api_DeploymentStrategy added in v1.3.0

func Convert_v1_DeploymentStrategy_To_api_DeploymentStrategy(in *DeploymentStrategy, out *deploy_api.DeploymentStrategy, s conversion.Scope) error

func Convert_v1_DeploymentTriggerImageChangeParams_To_api_DeploymentTriggerImageChangeParams added in v1.3.0

func Convert_v1_DeploymentTriggerImageChangeParams_To_api_DeploymentTriggerImageChangeParams(in *DeploymentTriggerImageChangeParams, out *newer.DeploymentTriggerImageChangeParams, s conversion.Scope) error

func Convert_v1_DeploymentTriggerPolicy_To_api_DeploymentTriggerPolicy added in v1.3.0

func Convert_v1_DeploymentTriggerPolicy_To_api_DeploymentTriggerPolicy(in *DeploymentTriggerPolicy, out *deploy_api.DeploymentTriggerPolicy, s conversion.Scope) error

func Convert_v1_ExecNewPodHook_To_api_ExecNewPodHook added in v1.3.0

func Convert_v1_ExecNewPodHook_To_api_ExecNewPodHook(in *ExecNewPodHook, out *deploy_api.ExecNewPodHook, s conversion.Scope) error

func Convert_v1_LifecycleHook_To_api_LifecycleHook added in v1.3.0

func Convert_v1_LifecycleHook_To_api_LifecycleHook(in *LifecycleHook, out *deploy_api.LifecycleHook, s conversion.Scope) error

func Convert_v1_RecreateDeploymentStrategyParams_To_api_RecreateDeploymentStrategyParams added in v1.3.0

func Convert_v1_RecreateDeploymentStrategyParams_To_api_RecreateDeploymentStrategyParams(in *RecreateDeploymentStrategyParams, out *deploy_api.RecreateDeploymentStrategyParams, s conversion.Scope) error

func Convert_v1_RollingDeploymentStrategyParams_To_api_RollingDeploymentStrategyParams added in v1.3.0

func Convert_v1_RollingDeploymentStrategyParams_To_api_RollingDeploymentStrategyParams(in *RollingDeploymentStrategyParams, out *newer.RollingDeploymentStrategyParams, s conversion.Scope) error

func Convert_v1_TagImageHook_To_api_TagImageHook added in v1.3.0

func Convert_v1_TagImageHook_To_api_TagImageHook(in *TagImageHook, out *deploy_api.TagImageHook, s conversion.Scope) error

func DeepCopy_v1_CustomDeploymentStrategyParams added in v1.3.0

func DeepCopy_v1_CustomDeploymentStrategyParams(in CustomDeploymentStrategyParams, out *CustomDeploymentStrategyParams, c *conversion.Cloner) error

func DeepCopy_v1_DeploymentCause added in v1.3.0

func DeepCopy_v1_DeploymentCause(in DeploymentCause, out *DeploymentCause, c *conversion.Cloner) error

func DeepCopy_v1_DeploymentCauseImageTrigger added in v1.3.0

func DeepCopy_v1_DeploymentCauseImageTrigger(in DeploymentCauseImageTrigger, out *DeploymentCauseImageTrigger, c *conversion.Cloner) error

func DeepCopy_v1_DeploymentConfig added in v1.3.0

func DeepCopy_v1_DeploymentConfig(in DeploymentConfig, out *DeploymentConfig, c *conversion.Cloner) error

func DeepCopy_v1_DeploymentConfigList added in v1.3.0

func DeepCopy_v1_DeploymentConfigList(in DeploymentConfigList, out *DeploymentConfigList, c *conversion.Cloner) error

func DeepCopy_v1_DeploymentConfigRollback added in v1.3.0

func DeepCopy_v1_DeploymentConfigRollback(in DeploymentConfigRollback, out *DeploymentConfigRollback, c *conversion.Cloner) error

func DeepCopy_v1_DeploymentConfigRollbackSpec added in v1.3.0

func DeepCopy_v1_DeploymentConfigRollbackSpec(in DeploymentConfigRollbackSpec, out *DeploymentConfigRollbackSpec, c *conversion.Cloner) error

func DeepCopy_v1_DeploymentConfigSpec added in v1.3.0

func DeepCopy_v1_DeploymentConfigSpec(in DeploymentConfigSpec, out *DeploymentConfigSpec, c *conversion.Cloner) error

func DeepCopy_v1_DeploymentConfigStatus added in v1.3.0

func DeepCopy_v1_DeploymentConfigStatus(in DeploymentConfigStatus, out *DeploymentConfigStatus, c *conversion.Cloner) error

func DeepCopy_v1_DeploymentDetails added in v1.3.0

func DeepCopy_v1_DeploymentDetails(in DeploymentDetails, out *DeploymentDetails, c *conversion.Cloner) error

func DeepCopy_v1_DeploymentLog added in v1.3.0

func DeepCopy_v1_DeploymentLog(in DeploymentLog, out *DeploymentLog, c *conversion.Cloner) error

func DeepCopy_v1_DeploymentLogOptions added in v1.3.0

func DeepCopy_v1_DeploymentLogOptions(in DeploymentLogOptions, out *DeploymentLogOptions, c *conversion.Cloner) error

func DeepCopy_v1_DeploymentStrategy added in v1.3.0

func DeepCopy_v1_DeploymentStrategy(in DeploymentStrategy, out *DeploymentStrategy, c *conversion.Cloner) error

func DeepCopy_v1_DeploymentTriggerImageChangeParams added in v1.3.0

func DeepCopy_v1_DeploymentTriggerImageChangeParams(in DeploymentTriggerImageChangeParams, out *DeploymentTriggerImageChangeParams, c *conversion.Cloner) error

func DeepCopy_v1_DeploymentTriggerPolicy added in v1.3.0

func DeepCopy_v1_DeploymentTriggerPolicy(in DeploymentTriggerPolicy, out *DeploymentTriggerPolicy, c *conversion.Cloner) error

func DeepCopy_v1_ExecNewPodHook added in v1.3.0

func DeepCopy_v1_ExecNewPodHook(in ExecNewPodHook, out *ExecNewPodHook, c *conversion.Cloner) error

func DeepCopy_v1_LifecycleHook added in v1.3.0

func DeepCopy_v1_LifecycleHook(in LifecycleHook, out *LifecycleHook, c *conversion.Cloner) error

func DeepCopy_v1_RecreateDeploymentStrategyParams added in v1.3.0

func DeepCopy_v1_RecreateDeploymentStrategyParams(in RecreateDeploymentStrategyParams, out *RecreateDeploymentStrategyParams, c *conversion.Cloner) error

func DeepCopy_v1_RollingDeploymentStrategyParams added in v1.3.0

func DeepCopy_v1_RollingDeploymentStrategyParams(in RollingDeploymentStrategyParams, out *RollingDeploymentStrategyParams, c *conversion.Cloner) error

func DeepCopy_v1_TagImageHook added in v1.3.0

func DeepCopy_v1_TagImageHook(in TagImageHook, out *TagImageHook, c *conversion.Cloner) error

func SetDefaults_DeploymentConfig added in v1.3.0

func SetDefaults_DeploymentConfig(obj *DeploymentConfig)

func SetDefaults_DeploymentConfigSpec added in v1.3.0

func SetDefaults_DeploymentConfigSpec(obj *DeploymentConfigSpec)

func SetDefaults_DeploymentStrategy added in v1.3.0

func SetDefaults_DeploymentStrategy(obj *DeploymentStrategy)

func SetDefaults_RecreateDeploymentStrategyParams added in v1.3.0

func SetDefaults_RecreateDeploymentStrategyParams(obj *RecreateDeploymentStrategyParams)

func SetDefaults_RollingDeploymentStrategyParams added in v1.3.0

func SetDefaults_RollingDeploymentStrategyParams(obj *RollingDeploymentStrategyParams)

Types

type CustomDeploymentStrategyParams

type CustomDeploymentStrategyParams struct {
	// Image specifies a Docker image which can carry out a deployment.
	Image string `json:"image,omitempty" protobuf:"bytes,1,opt,name=image"`
	// Environment holds the environment which will be given to the container for Image.
	Environment []kapi.EnvVar `json:"environment,omitempty" protobuf:"bytes,2,rep,name=environment"`
	// Command is optional and overrides CMD in the container Image.
	Command []string `json:"command,omitempty" protobuf:"bytes,3,rep,name=command"`
}

CustomDeploymentStrategyParams are the input to the Custom deployment strategy.

func (*CustomDeploymentStrategyParams) Marshal added in v1.3.0

func (m *CustomDeploymentStrategyParams) Marshal() (data []byte, err error)

func (*CustomDeploymentStrategyParams) MarshalTo added in v1.3.0

func (m *CustomDeploymentStrategyParams) MarshalTo(data []byte) (int, error)

func (*CustomDeploymentStrategyParams) ProtoMessage added in v1.3.0

func (*CustomDeploymentStrategyParams) ProtoMessage()

func (*CustomDeploymentStrategyParams) Reset added in v1.3.0

func (m *CustomDeploymentStrategyParams) Reset()

func (*CustomDeploymentStrategyParams) Size added in v1.3.0

func (m *CustomDeploymentStrategyParams) Size() (n int)

func (*CustomDeploymentStrategyParams) String added in v1.3.0

func (CustomDeploymentStrategyParams) SwaggerDoc added in v1.1.4

func (CustomDeploymentStrategyParams) SwaggerDoc() map[string]string

func (*CustomDeploymentStrategyParams) Unmarshal added in v1.3.0

func (m *CustomDeploymentStrategyParams) Unmarshal(data []byte) error

type DeploymentCause

type DeploymentCause struct {
	// Type of the trigger that resulted in the creation of a new deployment
	Type DeploymentTriggerType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=DeploymentTriggerType"`
	// ImageTrigger contains the image trigger details, if this trigger was fired based on an image change
	ImageTrigger *DeploymentCauseImageTrigger `json:"imageTrigger,omitempty" protobuf:"bytes,2,opt,name=imageTrigger"`
}

DeploymentCause captures information about a particular cause of a deployment.

func (*DeploymentCause) Marshal added in v1.3.0

func (m *DeploymentCause) Marshal() (data []byte, err error)

func (*DeploymentCause) MarshalTo added in v1.3.0

func (m *DeploymentCause) MarshalTo(data []byte) (int, error)

func (*DeploymentCause) ProtoMessage added in v1.3.0

func (*DeploymentCause) ProtoMessage()

func (*DeploymentCause) Reset added in v1.3.0

func (m *DeploymentCause) Reset()

func (*DeploymentCause) Size added in v1.3.0

func (m *DeploymentCause) Size() (n int)

func (*DeploymentCause) String added in v1.3.0

func (m *DeploymentCause) String() string

func (DeploymentCause) SwaggerDoc added in v1.1.4

func (DeploymentCause) SwaggerDoc() map[string]string

func (*DeploymentCause) Unmarshal added in v1.3.0

func (m *DeploymentCause) Unmarshal(data []byte) error

type DeploymentCauseImageTrigger

type DeploymentCauseImageTrigger struct {
	// From is a reference to the changed object which triggered a deployment. The field may have
	// the kinds DockerImage, ImageStreamTag, or ImageStreamImage.
	From kapi.ObjectReference `json:"from" protobuf:"bytes,1,opt,name=from"`
}

DeploymentCauseImageTrigger represents details about the cause of a deployment originating from an image change trigger

func (*DeploymentCauseImageTrigger) Marshal added in v1.3.0

func (m *DeploymentCauseImageTrigger) Marshal() (data []byte, err error)

func (*DeploymentCauseImageTrigger) MarshalTo added in v1.3.0

func (m *DeploymentCauseImageTrigger) MarshalTo(data []byte) (int, error)

func (*DeploymentCauseImageTrigger) ProtoMessage added in v1.3.0

func (*DeploymentCauseImageTrigger) ProtoMessage()

func (*DeploymentCauseImageTrigger) Reset added in v1.3.0

func (m *DeploymentCauseImageTrigger) Reset()

func (*DeploymentCauseImageTrigger) Size added in v1.3.0

func (m *DeploymentCauseImageTrigger) Size() (n int)

func (*DeploymentCauseImageTrigger) String added in v1.3.0

func (m *DeploymentCauseImageTrigger) String() string

func (DeploymentCauseImageTrigger) SwaggerDoc added in v1.1.4

func (DeploymentCauseImageTrigger) SwaggerDoc() map[string]string

func (*DeploymentCauseImageTrigger) Unmarshal added in v1.3.0

func (m *DeploymentCauseImageTrigger) Unmarshal(data []byte) error

type DeploymentConfig

type DeploymentConfig struct {
	unversioned.TypeMeta `json:",inline"`
	// Standard object's metadata.
	kapi.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// Spec represents a desired deployment state and how to deploy to it.
	Spec DeploymentConfigSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"`

	// Status represents the current deployment state.
	Status DeploymentConfigStatus `json:"status" protobuf:"bytes,3,opt,name=status"`
}

DeploymentConfig represents a configuration for a single deployment (represented as a ReplicationController). It also contains details about changes which resulted in the current state of the DeploymentConfig. Each change to the DeploymentConfig which should result in a new deployment results in an increment of LatestVersion.

func (*DeploymentConfig) GetObjectKind added in v1.1.3

func (obj *DeploymentConfig) GetObjectKind() unversioned.ObjectKind

func (*DeploymentConfig) Marshal added in v1.3.0

func (m *DeploymentConfig) Marshal() (data []byte, err error)

func (*DeploymentConfig) MarshalTo added in v1.3.0

func (m *DeploymentConfig) MarshalTo(data []byte) (int, error)

func (*DeploymentConfig) ProtoMessage added in v1.3.0

func (*DeploymentConfig) ProtoMessage()

func (*DeploymentConfig) Reset added in v1.3.0

func (m *DeploymentConfig) Reset()

func (*DeploymentConfig) Size added in v1.3.0

func (m *DeploymentConfig) Size() (n int)

func (*DeploymentConfig) String added in v1.3.0

func (m *DeploymentConfig) String() string

func (DeploymentConfig) SwaggerDoc added in v1.1.4

func (DeploymentConfig) SwaggerDoc() map[string]string

func (*DeploymentConfig) Unmarshal added in v1.3.0

func (m *DeploymentConfig) Unmarshal(data []byte) error

type DeploymentConfigList

type DeploymentConfigList struct {
	unversioned.TypeMeta `json:",inline"`
	// Standard object's metadata.
	unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// Items is a list of deployment configs
	Items []DeploymentConfig `json:"items" protobuf:"bytes,2,rep,name=items"`
}

DeploymentConfigList is a collection of deployment configs.

func (*DeploymentConfigList) GetObjectKind added in v1.1.3

func (obj *DeploymentConfigList) GetObjectKind() unversioned.ObjectKind

func (*DeploymentConfigList) Marshal added in v1.3.0

func (m *DeploymentConfigList) Marshal() (data []byte, err error)

func (*DeploymentConfigList) MarshalTo added in v1.3.0

func (m *DeploymentConfigList) MarshalTo(data []byte) (int, error)

func (*DeploymentConfigList) ProtoMessage added in v1.3.0

func (*DeploymentConfigList) ProtoMessage()

func (*DeploymentConfigList) Reset added in v1.3.0

func (m *DeploymentConfigList) Reset()

func (*DeploymentConfigList) Size added in v1.3.0

func (m *DeploymentConfigList) Size() (n int)

func (*DeploymentConfigList) String added in v1.3.0

func (m *DeploymentConfigList) String() string

func (DeploymentConfigList) SwaggerDoc added in v1.1.4

func (DeploymentConfigList) SwaggerDoc() map[string]string

func (*DeploymentConfigList) Unmarshal added in v1.3.0

func (m *DeploymentConfigList) Unmarshal(data []byte) error

type DeploymentConfigRollback

type DeploymentConfigRollback struct {
	unversioned.TypeMeta `json:",inline"`
	// Name of the deployment config that will be rolled back.
	Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
	// UpdatedAnnotations is a set of new annotations that will be added in the deployment config.
	UpdatedAnnotations map[string]string `json:"updatedAnnotations,omitempty" protobuf:"bytes,2,rep,name=updatedAnnotations"`
	// Spec defines the options to rollback generation.
	Spec DeploymentConfigRollbackSpec `json:"spec" protobuf:"bytes,3,opt,name=spec"`
}

DeploymentConfigRollback provides the input to rollback generation.

func (*DeploymentConfigRollback) GetObjectKind added in v1.1.3

func (obj *DeploymentConfigRollback) GetObjectKind() unversioned.ObjectKind

func (*DeploymentConfigRollback) Marshal added in v1.3.0

func (m *DeploymentConfigRollback) Marshal() (data []byte, err error)

func (*DeploymentConfigRollback) MarshalTo added in v1.3.0

func (m *DeploymentConfigRollback) MarshalTo(data []byte) (int, error)

func (*DeploymentConfigRollback) ProtoMessage added in v1.3.0

func (*DeploymentConfigRollback) ProtoMessage()

func (*DeploymentConfigRollback) Reset added in v1.3.0

func (m *DeploymentConfigRollback) Reset()

func (*DeploymentConfigRollback) Size added in v1.3.0

func (m *DeploymentConfigRollback) Size() (n int)

func (*DeploymentConfigRollback) String added in v1.3.0

func (m *DeploymentConfigRollback) String() string

func (DeploymentConfigRollback) SwaggerDoc added in v1.1.4

func (DeploymentConfigRollback) SwaggerDoc() map[string]string

func (*DeploymentConfigRollback) Unmarshal added in v1.3.0

func (m *DeploymentConfigRollback) Unmarshal(data []byte) error

type DeploymentConfigRollbackSpec

type DeploymentConfigRollbackSpec struct {
	// From points to a ReplicationController which is a deployment.
	From kapi.ObjectReference `json:"from" protobuf:"bytes,1,opt,name=from"`
	// Revision to rollback to. If set to 0, rollback to the last revision.
	Revision int64 `json:"revision,omitempty" protobuf:"varint,2,opt,name=revision"`
	// IncludeTriggers specifies whether to include config Triggers.
	IncludeTriggers bool `json:"includeTriggers" protobuf:"varint,3,opt,name=includeTriggers"`
	// IncludeTemplate specifies whether to include the PodTemplateSpec.
	IncludeTemplate bool `json:"includeTemplate" protobuf:"varint,4,opt,name=includeTemplate"`
	// IncludeReplicationMeta specifies whether to include the replica count and selector.
	IncludeReplicationMeta bool `json:"includeReplicationMeta" protobuf:"varint,5,opt,name=includeReplicationMeta"`
	// IncludeStrategy specifies whether to include the deployment Strategy.
	IncludeStrategy bool `json:"includeStrategy" protobuf:"varint,6,opt,name=includeStrategy"`
}

DeploymentConfigRollbackSpec represents the options for rollback generation.

func (*DeploymentConfigRollbackSpec) Marshal added in v1.3.0

func (m *DeploymentConfigRollbackSpec) Marshal() (data []byte, err error)

func (*DeploymentConfigRollbackSpec) MarshalTo added in v1.3.0

func (m *DeploymentConfigRollbackSpec) MarshalTo(data []byte) (int, error)

func (*DeploymentConfigRollbackSpec) ProtoMessage added in v1.3.0

func (*DeploymentConfigRollbackSpec) ProtoMessage()

func (*DeploymentConfigRollbackSpec) Reset added in v1.3.0

func (m *DeploymentConfigRollbackSpec) Reset()

func (*DeploymentConfigRollbackSpec) Size added in v1.3.0

func (m *DeploymentConfigRollbackSpec) Size() (n int)

func (*DeploymentConfigRollbackSpec) String added in v1.3.0

func (DeploymentConfigRollbackSpec) SwaggerDoc added in v1.1.4

func (DeploymentConfigRollbackSpec) SwaggerDoc() map[string]string

func (*DeploymentConfigRollbackSpec) Unmarshal added in v1.3.0

func (m *DeploymentConfigRollbackSpec) Unmarshal(data []byte) error

type DeploymentConfigSpec

type DeploymentConfigSpec struct {
	// Strategy describes how a deployment is executed.
	Strategy DeploymentStrategy `json:"strategy" protobuf:"bytes,1,opt,name=strategy"`

	// MinReadySeconds is the minimum number of seconds for which a newly created pod should
	// be ready without any of its container crashing, for it to be considered available.
	// Defaults to 0 (pod will be considered available as soon as it is ready)
	MinReadySeconds int32 `json:"minReadySeconds,omitempty" protobuf:"varint,9,opt,name=minReadySeconds"`

	// Triggers determine how updates to a DeploymentConfig result in new deployments. If no triggers
	// are defined, a new deployment can only occur as a result of an explicit client update to the
	// DeploymentConfig with a new LatestVersion. If null, defaults to having a config change trigger.
	Triggers DeploymentTriggerPolicies `json:"triggers" protobuf:"bytes,2,rep,name=triggers"`

	// Replicas is the number of desired replicas.
	Replicas int32 `json:"replicas" protobuf:"varint,3,opt,name=replicas"`

	// RevisionHistoryLimit is the number of old ReplicationControllers to retain to allow for rollbacks.
	// This field is a pointer to allow for differentiation between an explicit zero and not specified.
	RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty" protobuf:"varint,4,opt,name=revisionHistoryLimit"`

	// Test ensures that this deployment config will have zero replicas except while a deployment is running. This allows the
	// deployment config to be used as a continuous deployment test - triggering on images, running the deployment, and then succeeding
	// or failing. Post strategy hooks and After actions can be used to integrate successful deployment with an action.
	Test bool `json:"test" protobuf:"varint,5,opt,name=test"`

	// Paused indicates that the deployment config is paused resulting in no new deployments on template
	// changes or changes in the template caused by other triggers.
	Paused bool `json:"paused,omitempty" protobuf:"varint,6,opt,name=paused"`

	// Selector is a label query over pods that should match the Replicas count.
	Selector map[string]string `json:"selector,omitempty" protobuf:"bytes,7,rep,name=selector"`

	// Template is the object that describes the pod that will be created if
	// insufficient replicas are detected.
	Template *kapi.PodTemplateSpec `json:"template,omitempty" protobuf:"bytes,8,opt,name=template"`
}

DeploymentConfigSpec represents the desired state of the deployment.

func (*DeploymentConfigSpec) Marshal added in v1.3.0

func (m *DeploymentConfigSpec) Marshal() (data []byte, err error)

func (*DeploymentConfigSpec) MarshalTo added in v1.3.0

func (m *DeploymentConfigSpec) MarshalTo(data []byte) (int, error)

func (*DeploymentConfigSpec) ProtoMessage added in v1.3.0

func (*DeploymentConfigSpec) ProtoMessage()

func (*DeploymentConfigSpec) Reset added in v1.3.0

func (m *DeploymentConfigSpec) Reset()

func (*DeploymentConfigSpec) Size added in v1.3.0

func (m *DeploymentConfigSpec) Size() (n int)

func (*DeploymentConfigSpec) String added in v1.3.0

func (m *DeploymentConfigSpec) String() string

func (DeploymentConfigSpec) SwaggerDoc added in v1.1.4

func (DeploymentConfigSpec) SwaggerDoc() map[string]string

func (*DeploymentConfigSpec) Unmarshal added in v1.3.0

func (m *DeploymentConfigSpec) Unmarshal(data []byte) error

type DeploymentConfigStatus

type DeploymentConfigStatus struct {
	// LatestVersion is used to determine whether the current deployment associated with a deployment
	// config is out of sync.
	LatestVersion int64 `json:"latestVersion,omitempty" protobuf:"varint,1,opt,name=latestVersion"`
	// ObservedGeneration is the most recent generation observed by the deployment config controller.
	ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,2,opt,name=observedGeneration"`
	// Replicas is the total number of pods targeted by this deployment config.
	Replicas int32 `json:"replicas,omitempty" protobuf:"varint,3,opt,name=replicas"`
	// UpdatedReplicas is the total number of non-terminated pods targeted by this deployment config
	// that have the desired template spec.
	UpdatedReplicas int32 `json:"updatedReplicas,omitempty" protobuf:"varint,4,opt,name=updatedReplicas"`
	// AvailableReplicas is the total number of available pods targeted by this deployment config.
	AvailableReplicas int32 `json:"availableReplicas,omitempty" protobuf:"varint,5,opt,name=availableReplicas"`
	// UnavailableReplicas is the total number of unavailable pods targeted by this deployment config.
	UnavailableReplicas int32 `json:"unavailableReplicas,omitempty" protobuf:"varint,6,opt,name=unavailableReplicas"`
	// Details are the reasons for the update to this deployment config.
	// This could be based on a change made by the user or caused by an automatic trigger
	Details *DeploymentDetails `json:"details,omitempty" protobuf:"bytes,7,opt,name=details"`
}

DeploymentConfigStatus represents the current deployment state.

func (*DeploymentConfigStatus) Marshal added in v1.3.0

func (m *DeploymentConfigStatus) Marshal() (data []byte, err error)

func (*DeploymentConfigStatus) MarshalTo added in v1.3.0

func (m *DeploymentConfigStatus) MarshalTo(data []byte) (int, error)

func (*DeploymentConfigStatus) ProtoMessage added in v1.3.0

func (*DeploymentConfigStatus) ProtoMessage()

func (*DeploymentConfigStatus) Reset added in v1.3.0

func (m *DeploymentConfigStatus) Reset()

func (*DeploymentConfigStatus) Size added in v1.3.0

func (m *DeploymentConfigStatus) Size() (n int)

func (*DeploymentConfigStatus) String added in v1.3.0

func (m *DeploymentConfigStatus) String() string

func (DeploymentConfigStatus) SwaggerDoc added in v1.1.4

func (DeploymentConfigStatus) SwaggerDoc() map[string]string

func (*DeploymentConfigStatus) Unmarshal added in v1.3.0

func (m *DeploymentConfigStatus) Unmarshal(data []byte) error

type DeploymentDetails

type DeploymentDetails struct {
	// Message is the user specified change message, if this deployment was triggered manually by the user
	Message string `json:"message,omitempty" protobuf:"bytes,1,opt,name=message"`
	// Causes are extended data associated with all the causes for creating a new deployment
	Causes []DeploymentCause `json:"causes" protobuf:"bytes,2,rep,name=causes"`
}

DeploymentDetails captures information about the causes of a deployment.

func (*DeploymentDetails) Marshal added in v1.3.0

func (m *DeploymentDetails) Marshal() (data []byte, err error)

func (*DeploymentDetails) MarshalTo added in v1.3.0

func (m *DeploymentDetails) MarshalTo(data []byte) (int, error)

func (*DeploymentDetails) ProtoMessage added in v1.3.0

func (*DeploymentDetails) ProtoMessage()

func (*DeploymentDetails) Reset added in v1.3.0

func (m *DeploymentDetails) Reset()

func (*DeploymentDetails) Size added in v1.3.0

func (m *DeploymentDetails) Size() (n int)

func (*DeploymentDetails) String added in v1.3.0

func (m *DeploymentDetails) String() string

func (DeploymentDetails) SwaggerDoc added in v1.1.4

func (DeploymentDetails) SwaggerDoc() map[string]string

func (*DeploymentDetails) Unmarshal added in v1.3.0

func (m *DeploymentDetails) Unmarshal(data []byte) error

type DeploymentLog added in v1.0.7

type DeploymentLog struct {
	unversioned.TypeMeta `json:",inline"`
}

DeploymentLog represents the logs for a deployment

func (*DeploymentLog) GetObjectKind added in v1.1.3

func (obj *DeploymentLog) GetObjectKind() unversioned.ObjectKind

func (*DeploymentLog) Marshal added in v1.3.0

func (m *DeploymentLog) Marshal() (data []byte, err error)

func (*DeploymentLog) MarshalTo added in v1.3.0

func (m *DeploymentLog) MarshalTo(data []byte) (int, error)

func (*DeploymentLog) ProtoMessage added in v1.3.0

func (*DeploymentLog) ProtoMessage()

func (*DeploymentLog) Reset added in v1.3.0

func (m *DeploymentLog) Reset()

func (*DeploymentLog) Size added in v1.3.0

func (m *DeploymentLog) Size() (n int)

func (*DeploymentLog) String added in v1.3.0

func (m *DeploymentLog) String() string

func (DeploymentLog) SwaggerDoc added in v1.1.4

func (DeploymentLog) SwaggerDoc() map[string]string

func (*DeploymentLog) Unmarshal added in v1.3.0

func (m *DeploymentLog) Unmarshal(data []byte) error

type DeploymentLogOptions added in v1.0.7

type DeploymentLogOptions struct {
	unversioned.TypeMeta `json:",inline"`

	// The container for which to stream logs. Defaults to only container if there is one container in the pod.
	Container string `json:"container,omitempty" protobuf:"bytes,1,opt,name=container"`
	// Follow if true indicates that the build log should be streamed until
	// the build terminates.
	Follow bool `json:"follow,omitempty" protobuf:"varint,2,opt,name=follow"`
	// Return previous deployment logs. Defaults to false.
	Previous bool `json:"previous,omitempty" protobuf:"varint,3,opt,name=previous"`
	// A relative time in seconds before the current time from which to show logs. If this value
	// precedes the time a pod was started, only logs since the pod start will be returned.
	// If this value is in the future, no logs will be returned.
	// Only one of sinceSeconds or sinceTime may be specified.
	SinceSeconds *int64 `json:"sinceSeconds,omitempty" protobuf:"varint,4,opt,name=sinceSeconds"`
	// An RFC3339 timestamp from which to show logs. If this value
	// precedes the time a pod was started, only logs since the pod start will be returned.
	// If this value is in the future, no logs will be returned.
	// Only one of sinceSeconds or sinceTime may be specified.
	SinceTime *unversioned.Time `json:"sinceTime,omitempty" protobuf:"bytes,5,opt,name=sinceTime"`
	// If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line
	// of log output. Defaults to false.
	Timestamps bool `json:"timestamps,omitempty" protobuf:"varint,6,opt,name=timestamps"`
	// If set, the number of lines from the end of the logs to show. If not specified,
	// logs are shown from the creation of the container or sinceSeconds or sinceTime
	TailLines *int64 `json:"tailLines,omitempty" protobuf:"varint,7,opt,name=tailLines"`
	// If set, the number of bytes to read from the server before terminating the
	// log output. This may not display a complete final line of logging, and may return
	// slightly more or slightly less than the specified limit.
	LimitBytes *int64 `json:"limitBytes,omitempty" protobuf:"varint,8,opt,name=limitBytes"`

	// NoWait if true causes the call to return immediately even if the deployment
	// is not available yet. Otherwise the server will wait until the deployment has started.
	// TODO: Fix the tag to 'noWait' in v2
	NoWait bool `json:"nowait,omitempty" protobuf:"varint,9,opt,name=nowait"`

	// Version of the deployment for which to view logs.
	Version *int64 `json:"version,omitempty" protobuf:"varint,10,opt,name=version"`
}

DeploymentLogOptions is the REST options for a deployment log

func (*DeploymentLogOptions) GetObjectKind added in v1.1.3

func (obj *DeploymentLogOptions) GetObjectKind() unversioned.ObjectKind

func (*DeploymentLogOptions) Marshal added in v1.3.0

func (m *DeploymentLogOptions) Marshal() (data []byte, err error)

func (*DeploymentLogOptions) MarshalTo added in v1.3.0

func (m *DeploymentLogOptions) MarshalTo(data []byte) (int, error)

func (*DeploymentLogOptions) ProtoMessage added in v1.3.0

func (*DeploymentLogOptions) ProtoMessage()

func (*DeploymentLogOptions) Reset added in v1.3.0

func (m *DeploymentLogOptions) Reset()

func (*DeploymentLogOptions) Size added in v1.3.0

func (m *DeploymentLogOptions) Size() (n int)

func (*DeploymentLogOptions) String added in v1.3.0

func (m *DeploymentLogOptions) String() string

func (DeploymentLogOptions) SwaggerDoc added in v1.1.4

func (DeploymentLogOptions) SwaggerDoc() map[string]string

func (*DeploymentLogOptions) Unmarshal added in v1.3.0

func (m *DeploymentLogOptions) Unmarshal(data []byte) error

type DeploymentPhase

type DeploymentPhase string

DeploymentPhase describes the possible states a deployment can be in.

const (
	// DeploymentPhaseNew means the deployment has been accepted but not yet acted upon.
	DeploymentPhaseNew DeploymentPhase = "New"
	// DeploymentPhasePending means the deployment been handed over to a deployment strategy,
	// but the strategy has not yet declared the deployment to be running.
	DeploymentPhasePending DeploymentPhase = "Pending"
	// DeploymentPhaseRunning means the deployment strategy has reported the deployment as
	// being in-progress.
	DeploymentPhaseRunning DeploymentPhase = "Running"
	// DeploymentPhaseComplete means the deployment finished without an error.
	DeploymentPhaseComplete DeploymentPhase = "Complete"
	// DeploymentPhaseFailed means the deployment finished with an error.
	DeploymentPhaseFailed DeploymentPhase = "Failed"
)

type DeploymentStrategy

type DeploymentStrategy struct {
	// Type is the name of a deployment strategy.
	Type DeploymentStrategyType `json:"type,omitempty" protobuf:"bytes,1,opt,name=type,casttype=DeploymentStrategyType"`

	// CustomParams are the input to the Custom deployment strategy.
	CustomParams *CustomDeploymentStrategyParams `json:"customParams,omitempty" protobuf:"bytes,2,opt,name=customParams"`
	// RecreateParams are the input to the Recreate deployment strategy.
	RecreateParams *RecreateDeploymentStrategyParams `json:"recreateParams,omitempty" protobuf:"bytes,3,opt,name=recreateParams"`
	// RollingParams are the input to the Rolling deployment strategy.
	RollingParams *RollingDeploymentStrategyParams `json:"rollingParams,omitempty" protobuf:"bytes,4,opt,name=rollingParams"`

	// Resources contains resource requirements to execute the deployment and any hooks
	Resources kapi.ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,5,opt,name=resources"`
	// Labels is a set of key, value pairs added to custom deployer and lifecycle pre/post hook pods.
	Labels map[string]string `json:"labels,omitempty" protobuf:"bytes,6,rep,name=labels"`
	// Annotations is a set of key, value pairs added to custom deployer and lifecycle pre/post hook pods.
	Annotations map[string]string `json:"annotations,omitempty" protobuf:"bytes,7,rep,name=annotations"`
}

DeploymentStrategy describes how to perform a deployment.

func (*DeploymentStrategy) Marshal added in v1.3.0

func (m *DeploymentStrategy) Marshal() (data []byte, err error)

func (*DeploymentStrategy) MarshalTo added in v1.3.0

func (m *DeploymentStrategy) MarshalTo(data []byte) (int, error)

func (*DeploymentStrategy) ProtoMessage added in v1.3.0

func (*DeploymentStrategy) ProtoMessage()

func (*DeploymentStrategy) Reset added in v1.3.0

func (m *DeploymentStrategy) Reset()

func (*DeploymentStrategy) Size added in v1.3.0

func (m *DeploymentStrategy) Size() (n int)

func (*DeploymentStrategy) String added in v1.3.0

func (m *DeploymentStrategy) String() string

func (DeploymentStrategy) SwaggerDoc added in v1.1.4

func (DeploymentStrategy) SwaggerDoc() map[string]string

func (*DeploymentStrategy) Unmarshal added in v1.3.0

func (m *DeploymentStrategy) Unmarshal(data []byte) error

type DeploymentStrategyType

type DeploymentStrategyType string

DeploymentStrategyType refers to a specific DeploymentStrategy implementation.

const (
	// DeploymentStrategyTypeRecreate is a simple strategy suitable as a default.
	DeploymentStrategyTypeRecreate DeploymentStrategyType = "Recreate"
	// DeploymentStrategyTypeCustom is a user defined strategy.
	DeploymentStrategyTypeCustom DeploymentStrategyType = "Custom"
	// DeploymentStrategyTypeRolling uses the Kubernetes RollingUpdater.
	DeploymentStrategyTypeRolling DeploymentStrategyType = "Rolling"
)

type DeploymentTriggerImageChangeParams

type DeploymentTriggerImageChangeParams struct {
	// Automatic means that the detection of a new tag value should result in an image update
	// inside the pod template. Deployment configs that haven't been deployed yet will always
	// have their images updated. Deployment configs that have been deployed at least once, will
	// have their images updated only if this is set to true.
	Automatic bool `json:"automatic,omitempty" protobuf:"varint,1,opt,name=automatic"`
	// ContainerNames is used to restrict tag updates to the specified set of container names in a pod.
	ContainerNames []string `json:"containerNames,omitempty" protobuf:"bytes,2,rep,name=containerNames"`
	// From is a reference to an image stream tag to watch for changes. From.Name is the only
	// required subfield - if From.Namespace is blank, the namespace of the current deployment
	// trigger will be used.
	From kapi.ObjectReference `json:"from" protobuf:"bytes,3,opt,name=from"`
	// LastTriggeredImage is the last image to be triggered.
	LastTriggeredImage string `json:"lastTriggeredImage,omitempty" protobuf:"bytes,4,opt,name=lastTriggeredImage"`
}

DeploymentTriggerImageChangeParams represents the parameters to the ImageChange trigger.

func (*DeploymentTriggerImageChangeParams) Marshal added in v1.3.0

func (m *DeploymentTriggerImageChangeParams) Marshal() (data []byte, err error)

func (*DeploymentTriggerImageChangeParams) MarshalTo added in v1.3.0

func (m *DeploymentTriggerImageChangeParams) MarshalTo(data []byte) (int, error)

func (*DeploymentTriggerImageChangeParams) ProtoMessage added in v1.3.0

func (*DeploymentTriggerImageChangeParams) ProtoMessage()

func (*DeploymentTriggerImageChangeParams) Reset added in v1.3.0

func (*DeploymentTriggerImageChangeParams) Size added in v1.3.0

func (*DeploymentTriggerImageChangeParams) String added in v1.3.0

func (DeploymentTriggerImageChangeParams) SwaggerDoc added in v1.1.4

func (*DeploymentTriggerImageChangeParams) Unmarshal added in v1.3.0

func (m *DeploymentTriggerImageChangeParams) Unmarshal(data []byte) error

type DeploymentTriggerPolicies added in v1.3.0

type DeploymentTriggerPolicies []DeploymentTriggerPolicy

DeploymentTriggerPolicies is a list of policies where nil values and different from empty arrays. +protobuf.nullable=true

func (DeploymentTriggerPolicies) Marshal added in v1.3.0

func (m DeploymentTriggerPolicies) Marshal() (data []byte, err error)

func (DeploymentTriggerPolicies) MarshalTo added in v1.3.0

func (m DeploymentTriggerPolicies) MarshalTo(data []byte) (int, error)

func (*DeploymentTriggerPolicies) ProtoMessage added in v1.3.0

func (*DeploymentTriggerPolicies) ProtoMessage()

func (*DeploymentTriggerPolicies) Reset added in v1.3.0

func (m *DeploymentTriggerPolicies) Reset()

func (DeploymentTriggerPolicies) Size added in v1.3.0

func (m DeploymentTriggerPolicies) Size() (n int)

func (*DeploymentTriggerPolicies) String added in v1.3.0

func (m *DeploymentTriggerPolicies) String() string

func (*DeploymentTriggerPolicies) Unmarshal added in v1.3.0

func (m *DeploymentTriggerPolicies) Unmarshal(data []byte) error

type DeploymentTriggerPolicy

type DeploymentTriggerPolicy struct {
	// Type of the trigger
	Type DeploymentTriggerType `json:"type,omitempty" protobuf:"bytes,1,opt,name=type,casttype=DeploymentTriggerType"`
	// ImageChangeParams represents the parameters for the ImageChange trigger.
	ImageChangeParams *DeploymentTriggerImageChangeParams `json:"imageChangeParams,omitempty" protobuf:"bytes,2,opt,name=imageChangeParams"`
}

DeploymentTriggerPolicy describes a policy for a single trigger that results in a new deployment.

func (*DeploymentTriggerPolicy) Marshal added in v1.3.0

func (m *DeploymentTriggerPolicy) Marshal() (data []byte, err error)

func (*DeploymentTriggerPolicy) MarshalTo added in v1.3.0

func (m *DeploymentTriggerPolicy) MarshalTo(data []byte) (int, error)

func (*DeploymentTriggerPolicy) ProtoMessage added in v1.3.0

func (*DeploymentTriggerPolicy) ProtoMessage()

func (*DeploymentTriggerPolicy) Reset added in v1.3.0

func (m *DeploymentTriggerPolicy) Reset()

func (*DeploymentTriggerPolicy) Size added in v1.3.0

func (m *DeploymentTriggerPolicy) Size() (n int)

func (*DeploymentTriggerPolicy) String added in v1.3.0

func (m *DeploymentTriggerPolicy) String() string

func (DeploymentTriggerPolicy) SwaggerDoc added in v1.1.4

func (DeploymentTriggerPolicy) SwaggerDoc() map[string]string

func (*DeploymentTriggerPolicy) Unmarshal added in v1.3.0

func (m *DeploymentTriggerPolicy) Unmarshal(data []byte) error

type DeploymentTriggerType

type DeploymentTriggerType string

DeploymentTriggerType refers to a specific DeploymentTriggerPolicy implementation.

const (
	// DeploymentTriggerOnImageChange will create new deployments in response to updated tags from
	// a Docker image repository.
	DeploymentTriggerOnImageChange DeploymentTriggerType = "ImageChange"
	// DeploymentTriggerOnConfigChange will create new deployments in response to changes to
	// the ControllerTemplate of a DeploymentConfig.
	DeploymentTriggerOnConfigChange DeploymentTriggerType = "ConfigChange"
)

type ExecNewPodHook

type ExecNewPodHook struct {
	// Command is the action command and its arguments.
	Command []string `json:"command" protobuf:"bytes,1,rep,name=command"`
	// Env is a set of environment variables to supply to the hook pod's container.
	Env []kapi.EnvVar `json:"env,omitempty" protobuf:"bytes,2,rep,name=env"`
	// ContainerName is the name of a container in the deployment pod template
	// whose Docker image will be used for the hook pod's container.
	ContainerName string `json:"containerName" protobuf:"bytes,3,opt,name=containerName"`
	// Volumes is a list of named volumes from the pod template which should be
	// copied to the hook pod. Volumes names not found in pod spec are ignored.
	// An empty list means no volumes will be copied.
	Volumes []string `json:"volumes,omitempty" protobuf:"bytes,4,rep,name=volumes"`
}

ExecNewPodHook is a hook implementation which runs a command in a new pod based on the specified container which is assumed to be part of the deployment template.

func (*ExecNewPodHook) Marshal added in v1.3.0

func (m *ExecNewPodHook) Marshal() (data []byte, err error)

func (*ExecNewPodHook) MarshalTo added in v1.3.0

func (m *ExecNewPodHook) MarshalTo(data []byte) (int, error)

func (*ExecNewPodHook) ProtoMessage added in v1.3.0

func (*ExecNewPodHook) ProtoMessage()

func (*ExecNewPodHook) Reset added in v1.3.0

func (m *ExecNewPodHook) Reset()

func (*ExecNewPodHook) Size added in v1.3.0

func (m *ExecNewPodHook) Size() (n int)

func (*ExecNewPodHook) String added in v1.3.0

func (m *ExecNewPodHook) String() string

func (ExecNewPodHook) SwaggerDoc added in v1.1.4

func (ExecNewPodHook) SwaggerDoc() map[string]string

func (*ExecNewPodHook) Unmarshal added in v1.3.0

func (m *ExecNewPodHook) Unmarshal(data []byte) error

type LifecycleHook

type LifecycleHook struct {
	// FailurePolicy specifies what action to take if the hook fails.
	FailurePolicy LifecycleHookFailurePolicy `json:"failurePolicy" protobuf:"bytes,1,opt,name=failurePolicy,casttype=LifecycleHookFailurePolicy"`

	// ExecNewPod specifies the options for a lifecycle hook backed by a pod.
	ExecNewPod *ExecNewPodHook `json:"execNewPod,omitempty" protobuf:"bytes,2,opt,name=execNewPod"`

	// TagImages instructs the deployer to tag the current image referenced under a container onto an image stream tag.
	TagImages []TagImageHook `json:"tagImages,omitempty" protobuf:"bytes,3,rep,name=tagImages"`
}

LifecycleHook defines a specific deployment lifecycle action. Only one type of action may be specified at any time.

func (*LifecycleHook) Marshal added in v1.3.0

func (m *LifecycleHook) Marshal() (data []byte, err error)

func (*LifecycleHook) MarshalTo added in v1.3.0

func (m *LifecycleHook) MarshalTo(data []byte) (int, error)

func (*LifecycleHook) ProtoMessage added in v1.3.0

func (*LifecycleHook) ProtoMessage()

func (*LifecycleHook) Reset added in v1.3.0

func (m *LifecycleHook) Reset()

func (*LifecycleHook) Size added in v1.3.0

func (m *LifecycleHook) Size() (n int)

func (*LifecycleHook) String added in v1.3.0

func (m *LifecycleHook) String() string

func (LifecycleHook) SwaggerDoc added in v1.1.4

func (LifecycleHook) SwaggerDoc() map[string]string

func (*LifecycleHook) Unmarshal added in v1.3.0

func (m *LifecycleHook) Unmarshal(data []byte) error

type LifecycleHookFailurePolicy

type LifecycleHookFailurePolicy string

LifecycleHookFailurePolicy describes possibles actions to take if a hook fails.

const (
	// LifecycleHookFailurePolicyRetry means retry the hook until it succeeds.
	LifecycleHookFailurePolicyRetry LifecycleHookFailurePolicy = "Retry"
	// LifecycleHookFailurePolicyAbort means abort the deployment (if possible).
	LifecycleHookFailurePolicyAbort LifecycleHookFailurePolicy = "Abort"
	// LifecycleHookFailurePolicyIgnore means ignore failure and continue the deployment.
	LifecycleHookFailurePolicyIgnore LifecycleHookFailurePolicy = "Ignore"
)

type RecreateDeploymentStrategyParams

type RecreateDeploymentStrategyParams struct {
	// TimeoutSeconds is the time to wait for updates before giving up. If the
	// value is nil, a default will be used.
	TimeoutSeconds *int64 `json:"timeoutSeconds,omitempty" protobuf:"varint,1,opt,name=timeoutSeconds"`
	// Pre is a lifecycle hook which is executed before the strategy manipulates
	// the deployment. All LifecycleHookFailurePolicy values are supported.
	Pre *LifecycleHook `json:"pre,omitempty" protobuf:"bytes,2,opt,name=pre"`
	// Mid is a lifecycle hook which is executed while the deployment is scaled down to zero before the first new
	// pod is created. All LifecycleHookFailurePolicy values are supported.
	Mid *LifecycleHook `json:"mid,omitempty" protobuf:"bytes,3,opt,name=mid"`
	// Post is a lifecycle hook which is executed after the strategy has
	// finished all deployment logic. All LifecycleHookFailurePolicy values are supported.
	Post *LifecycleHook `json:"post,omitempty" protobuf:"bytes,4,opt,name=post"`
}

RecreateDeploymentStrategyParams are the input to the Recreate deployment strategy.

func (*RecreateDeploymentStrategyParams) Marshal added in v1.3.0

func (m *RecreateDeploymentStrategyParams) Marshal() (data []byte, err error)

func (*RecreateDeploymentStrategyParams) MarshalTo added in v1.3.0

func (m *RecreateDeploymentStrategyParams) MarshalTo(data []byte) (int, error)

func (*RecreateDeploymentStrategyParams) ProtoMessage added in v1.3.0

func (*RecreateDeploymentStrategyParams) ProtoMessage()

func (*RecreateDeploymentStrategyParams) Reset added in v1.3.0

func (*RecreateDeploymentStrategyParams) Size added in v1.3.0

func (m *RecreateDeploymentStrategyParams) Size() (n int)

func (*RecreateDeploymentStrategyParams) String added in v1.3.0

func (RecreateDeploymentStrategyParams) SwaggerDoc added in v1.1.4

func (*RecreateDeploymentStrategyParams) Unmarshal added in v1.3.0

func (m *RecreateDeploymentStrategyParams) Unmarshal(data []byte) error

type RollingDeploymentStrategyParams

type RollingDeploymentStrategyParams struct {
	// UpdatePeriodSeconds is the time to wait between individual pod updates.
	// If the value is nil, a default will be used.
	UpdatePeriodSeconds *int64 `json:"updatePeriodSeconds,omitempty" protobuf:"varint,1,opt,name=updatePeriodSeconds"`
	// IntervalSeconds is the time to wait between polling deployment status
	// after update. If the value is nil, a default will be used.
	IntervalSeconds *int64 `json:"intervalSeconds,omitempty" protobuf:"varint,2,opt,name=intervalSeconds"`
	// TimeoutSeconds is the time to wait for updates before giving up. If the
	// value is nil, a default will be used.
	TimeoutSeconds *int64 `json:"timeoutSeconds,omitempty" protobuf:"varint,3,opt,name=timeoutSeconds"`
	// MaxUnavailable is the maximum number of pods that can be unavailable
	// during the update. Value can be an absolute number (ex: 5) or a
	// percentage of total pods at the start of update (ex: 10%). Absolute
	// number is calculated from percentage by rounding up.
	//
	// This cannot be 0 if MaxSurge is 0. By default, 25% is used.
	//
	// Example: when this is set to 30%, the old RC can be scaled down by 30%
	// immediately when the rolling update starts. Once new pods are ready, old
	// RC can be scaled down further, followed by scaling up the new RC,
	// ensuring that at least 70% of original number of pods are available at
	// all times during the update.
	MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty" protobuf:"bytes,4,opt,name=maxUnavailable"`
	// MaxSurge is the maximum number of pods that can be scheduled above the
	// original number of pods. Value can be an absolute number (ex: 5) or a
	// percentage of total pods at the start of the update (ex: 10%). Absolute
	// number is calculated from percentage by rounding up.
	//
	// This cannot be 0 if MaxUnavailable is 0. By default, 25% is used.
	//
	// Example: when this is set to 30%, the new RC can be scaled up by 30%
	// immediately when the rolling update starts. Once old pods have been
	// killed, new RC can be scaled up further, ensuring that total number of
	// pods running at any time during the update is atmost 130% of original
	// pods.
	MaxSurge *intstr.IntOrString `json:"maxSurge,omitempty" protobuf:"bytes,5,opt,name=maxSurge"`
	// UpdatePercent is the percentage of replicas to scale up or down each
	// interval. If nil, one replica will be scaled up and down each interval.
	// If negative, the scale order will be down/up instead of up/down.
	// DEPRECATED: Use MaxUnavailable/MaxSurge instead.
	UpdatePercent *int32 `json:"updatePercent,omitempty" protobuf:"varint,6,opt,name=updatePercent"`
	// Pre is a lifecycle hook which is executed before the deployment process
	// begins. All LifecycleHookFailurePolicy values are supported.
	Pre *LifecycleHook `json:"pre,omitempty" protobuf:"bytes,7,opt,name=pre"`
	// Post is a lifecycle hook which is executed after the strategy has
	// finished all deployment logic. The LifecycleHookFailurePolicyAbort policy
	// is NOT supported.
	Post *LifecycleHook `json:"post,omitempty" protobuf:"bytes,8,opt,name=post"`
}

RollingDeploymentStrategyParams are the input to the Rolling deployment strategy.

func (*RollingDeploymentStrategyParams) Marshal added in v1.3.0

func (m *RollingDeploymentStrategyParams) Marshal() (data []byte, err error)

func (*RollingDeploymentStrategyParams) MarshalTo added in v1.3.0

func (m *RollingDeploymentStrategyParams) MarshalTo(data []byte) (int, error)

func (*RollingDeploymentStrategyParams) ProtoMessage added in v1.3.0

func (*RollingDeploymentStrategyParams) ProtoMessage()

func (*RollingDeploymentStrategyParams) Reset added in v1.3.0

func (*RollingDeploymentStrategyParams) Size added in v1.3.0

func (m *RollingDeploymentStrategyParams) Size() (n int)

func (*RollingDeploymentStrategyParams) String added in v1.3.0

func (RollingDeploymentStrategyParams) SwaggerDoc added in v1.1.4

func (*RollingDeploymentStrategyParams) Unmarshal added in v1.3.0

func (m *RollingDeploymentStrategyParams) Unmarshal(data []byte) error

type TagImageHook added in v1.1.3

type TagImageHook struct {
	// ContainerName is the name of a container in the deployment config whose image value will be used as the source of the tag. If there is only a single
	// container this value will be defaulted to the name of that container.
	ContainerName string `json:"containerName" protobuf:"bytes,1,opt,name=containerName"`
	// To is the target ImageStreamTag to set the container's image onto.
	To kapi.ObjectReference `json:"to" protobuf:"bytes,2,opt,name=to"`
}

TagImageHook is a request to tag the image in a particular container onto an ImageStreamTag.

func (*TagImageHook) Marshal added in v1.3.0

func (m *TagImageHook) Marshal() (data []byte, err error)

func (*TagImageHook) MarshalTo added in v1.3.0

func (m *TagImageHook) MarshalTo(data []byte) (int, error)

func (*TagImageHook) ProtoMessage added in v1.3.0

func (*TagImageHook) ProtoMessage()

func (*TagImageHook) Reset added in v1.3.0

func (m *TagImageHook) Reset()

func (*TagImageHook) Size added in v1.3.0

func (m *TagImageHook) Size() (n int)

func (*TagImageHook) String added in v1.3.0

func (m *TagImageHook) String() string

func (TagImageHook) SwaggerDoc added in v1.1.4

func (TagImageHook) SwaggerDoc() map[string]string

func (*TagImageHook) Unmarshal added in v1.3.0

func (m *TagImageHook) Unmarshal(data []byte) error

Jump to

Keyboard shortcuts

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