mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-12 10:55:20 +02:00
kubernetesDeploy: mark the image parameter as deprecated
Co-authored-by: Johannes Dillmann <j.dillmann@sap.com>
This commit is contained in:
parent
51138cfb49
commit
f12702a885
@ -200,7 +200,7 @@ func addKubernetesDeployFlags(cmd *cobra.Command, stepConfig *kubernetesDeployOp
|
|||||||
|
|
||||||
cmd.MarkFlagRequired("containerRegistryUrl")
|
cmd.MarkFlagRequired("containerRegistryUrl")
|
||||||
cmd.MarkFlagRequired("deployTool")
|
cmd.MarkFlagRequired("deployTool")
|
||||||
cmd.MarkFlagRequired("image")
|
cmd.Flags().MarkDeprecated("image", "This parameter is deprecated, please use [containerImageName](#containerimagename) and [containerImageTag](#containerimagetag)")
|
||||||
}
|
}
|
||||||
|
|
||||||
// retrieve step metadata
|
// retrieve step metadata
|
||||||
@ -425,11 +425,12 @@ func kubernetesDeployMetadata() config.StepData {
|
|||||||
Param: "container/imageNameTag",
|
Param: "container/imageNameTag",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||||
Type: "string",
|
Type: "string",
|
||||||
Mandatory: true,
|
Mandatory: false,
|
||||||
Aliases: []config.Alias{{Name: "deployImage"}},
|
Aliases: []config.Alias{{Name: "deployImage"}},
|
||||||
Default: os.Getenv("PIPER_image"),
|
Default: os.Getenv("PIPER_image"),
|
||||||
|
DeprecationMessage: "This parameter is deprecated, please use [containerImageName](#containerimagename) and [containerImageTag](#containerimagetag)",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "imageNames",
|
Name: "imageNames",
|
||||||
|
@ -299,10 +299,10 @@ spec:
|
|||||||
- name: deployImage
|
- name: deployImage
|
||||||
type: string
|
type: string
|
||||||
description: Full name of the image to be deployed.
|
description: Full name of the image to be deployed.
|
||||||
|
deprecationMessage: This parameter is deprecated, please use [containerImageName](#containerimagename) and [containerImageTag](#containerimagetag)
|
||||||
resourceRef:
|
resourceRef:
|
||||||
- name: commonPipelineEnvironment
|
- name: commonPipelineEnvironment
|
||||||
param: container/imageNameTag
|
param: container/imageNameTag
|
||||||
mandatory: true
|
|
||||||
scope:
|
scope:
|
||||||
- PARAMETERS
|
- PARAMETERS
|
||||||
- STAGES
|
- STAGES
|
||||||
|
Loading…
Reference in New Issue
Block a user