From cd330ba15f0c874d82d23fcba99a98a7a81c4074 Mon Sep 17 00:00:00 2001 From: dekiel Date: Thu, 27 Jun 2024 11:37:23 +0200 Subject: [PATCH] Remove EncodedTags parameter from ADO package. --- pkg/azuredevops/pipelines/templatesParams.go | 4 ---- pkg/azuredevops/pipelines/templatesParams_test.go | 5 ----- 2 files changed, 9 deletions(-) diff --git a/pkg/azuredevops/pipelines/templatesParams.go b/pkg/azuredevops/pipelines/templatesParams.go index 21d827693ba7..aa1bb9269496 100644 --- a/pkg/azuredevops/pipelines/templatesParams.go +++ b/pkg/azuredevops/pipelines/templatesParams.go @@ -110,10 +110,6 @@ func (p OCIImageBuilderTemplateParams) SetImageTags(tags string) { p["Tags"] = encodedTags } -func (p OCIImageBuilderTemplateParams) SetEncodedTags(encodedTags bool) { - p["EncodedTags"] = strconv.FormatBool(encodedTags) -} - // SetUseKanikoConfigFromPR sets optional parameter UseKanikoConfigFromPR. // If true, ADO pipeline will use a Kaniko config from PR. // This is used for testing purposes. diff --git a/pkg/azuredevops/pipelines/templatesParams_test.go b/pkg/azuredevops/pipelines/templatesParams_test.go index 094dc4378edc..c185c54f0a5f 100644 --- a/pkg/azuredevops/pipelines/templatesParams_test.go +++ b/pkg/azuredevops/pipelines/templatesParams_test.go @@ -82,11 +82,6 @@ var _ = Describe("Test OCIImageBuilderTemplateParams", func() { Expect(params["Tags"]).To(Equal(expected)) }) - It("sets the correct EncodedTags", func() { - params.SetEncodedTags(true) - Expect(params["EncodedTags"]).To(Equal("true")) - }) - It("sets the correct UseKanikoConfigFromPR", func() { params.SetUseKanikoConfigFromPR(true) Expect(params["UseKanikoConfigFromPR"]).To(Equal("true"))