1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +02:00

kubernetesDeploy: mark the image parameter as deprecated

Co-authored-by: Johannes Dillmann <j.dillmann@sap.com>
This commit is contained in:
Pavel Busko 2022-06-20 14:43:05 +02:00 committed by Pavel Busko
parent 51138cfb49
commit f12702a885
2 changed files with 8 additions and 7 deletions

View File

@ -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
@ -427,9 +427,10 @@ func kubernetesDeployMetadata() config.StepData {
}, },
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",

View File

@ -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