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.