From 31d7a9518a390ce9871e77c5283926ae398a1a3c Mon Sep 17 00:00:00 2001 From: Spolti Date: Mon, 4 Sep 2023 11:27:56 -0300 Subject: [PATCH] reviews fix and promote the no webhooks operator.yaml file Signed-off-by: Spolti --- .ci/jenkins/Jenkinsfile.promote | 1 + api/v1alpha08/sonataflow_webhook.go | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.ci/jenkins/Jenkinsfile.promote b/.ci/jenkins/Jenkinsfile.promote index 5e240a458..4c6f03641 100644 --- a/.ci/jenkins/Jenkinsfile.promote +++ b/.ci/jenkins/Jenkinsfile.promote @@ -126,6 +126,7 @@ pipeline { withCredentials([usernamePassword(credentialsId: helper.getGitAuthorCredsID(), usernameVariable: 'GH_USER', passwordVariable: 'GH_TOKEN')]) { sh """ gh release upload ${helper.getGitTag()} "operator.yaml" + gh release upload ${helper.getGitTag()} "operator-no-webhooks.yaml" """ } } diff --git a/api/v1alpha08/sonataflow_webhook.go b/api/v1alpha08/sonataflow_webhook.go index 51e101e20..b61e67967 100644 --- a/api/v1alpha08/sonataflow_webhook.go +++ b/api/v1alpha08/sonataflow_webhook.go @@ -47,9 +47,6 @@ func (s *SonataFlow) Default() { if len(s.ObjectMeta.Annotations[metadata.Version]) == 0 { s.ObjectMeta.Annotations[metadata.Version] = "0.0.1" } - if len(s.ObjectMeta.Annotations[metadata.SpecVersion]) == 0 { - s.ObjectMeta.Annotations[metadata.SpecVersion] = metadata.SpecVersion - } } // change verbs to "verbs=create;update;delete" if you want to enable deletion validation.