Skip to content

Commit 3378ee5

Browse files
author
OpenShift Bot
authored
Merge pull request #10038 from php-coder/omit_empty_secrets
Merged by openshift-bot
2 parents d4da022 + 7f52ce2 commit 3378ee5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

api/swagger-spec/oapi-v1.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20051,8 +20051,7 @@
2005120051
"id": "v1.BuildSource",
2005220052
"description": "BuildSource is the SCM used for the build.",
2005320053
"required": [
20054-
"type",
20055-
"secrets"
20054+
"type"
2005620055
],
2005720056
"properties": {
2005820057
"type": {

pkg/build/api/v1/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ type BuildSource struct {
252252

253253
// secrets represents a list of secrets and their destinations that will
254254
// be used only for the build.
255-
Secrets []SecretBuildSource `json:"secrets" protobuf:"bytes,8,rep,name=secrets"`
255+
Secrets []SecretBuildSource `json:"secrets,omitempty" protobuf:"bytes,8,rep,name=secrets"`
256256
}
257257

258258
// ImageSource describes an image that is used as source for the build

0 commit comments

Comments
 (0)