Documentation
¶
Index ¶
Constants ¶
View Source
const ( LastAppliedAnnotationKey = "kubectl.kubernetes.io/last-applied-configuration" GeneratedByAnnotationKey = "openshift.io/generated-by" DeploymentConfigPodLabel = "deploymentconfig" DeploymentPodLabel = "deployment" )
Variables ¶
View Source
var ( OwnerReferenceWarning = &Warning{ Name: "OwnerReference", Path: "metadata.ownerReferences", Description: "DeploymentConfigs with OwnerReferences set are managed by another process.", } UnsupportedFeatureTestWarning = &Warning{ Name: "UnsupportedFeature - Test", Path: "spec.test", Description: "The test feature is not supported on Deployments.", } UnsupportedFeatureCustomWarning = &Warning{ Name: "UnsupportedFeature - Custom Strategy", Path: "spec.strategy.type", Description: "The custom deployment strategy is not supported on Deployments.", } UnsupportedFeatureHooksWarning = &Warning{ Name: "UnsupportedFeature - Lifecycle Hooks", Path: "spec.strategy.*Params.['pre','mid','post']", Description: "The LifeCycleHooks are not supported on Deployments.", } UnsupportedFeatureRollingIntervalSecondsWarning = &Warning{ Name: "UnsupportedFeature - Rolling IntervalSeconds ", Path: "spec.strategy.RollingParams.IntervalSeconds", Description: "The IntervalSeconds setting is not supported on Deployments.", } UnsupportedFeatureRollingUpdatePeriodSecondsWarning = &Warning{ Name: "UnsupportedFeature - Rolling UpdatePeriodSeconds ", Path: "spec.strategy.RollingParams.UpdatePeriodSeconds", Description: "The UpdatePeriodSeconds setting is not supported on Deployments.", } ChangedLabelWarning = &Warning{ Name: "Selector Labels Changed", Path: "spec.selector", Description: "The Selector label 'deploymentconfig' will be changed to 'deployment'.", } )
View Source
var ( StripAnnotations = [2]string{LastAppliedAnnotationKey, GeneratedByAnnotationKey} ReplaceLabels = map[string]string{ DeploymentConfigPodLabel: DeploymentPodLabel, } )
Functions ¶
func ToDeploy ¶
func ToDeploy(orig *ocappsv1.DeploymentConfig) (*appsv1.Deployment, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.