Skip to content

Commit

Permalink
reviews fix and promote the no webhooks operator.yaml file
Browse files Browse the repository at this point in the history
Signed-off-by: Spolti <[email protected]>
  • Loading branch information
spolti committed Sep 21, 2023
1 parent decc9a9 commit 31d7a95
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions .ci/jenkins/Jenkinsfile.promote
Original file line number Diff line number Diff line change
Expand Up @@ -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"
"""
}
}
Expand Down
3 changes: 0 additions & 3 deletions api/v1alpha08/sonataflow_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 31d7a95

Please sign in to comment.