Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
BuildSource: mark secrets field as omitempty.
  • Loading branch information
Slava Semushin committed Jul 27, 2016
commit 7f52ce2fd8b8a32b1b7de571ec57c392f4ed521a
3 changes: 1 addition & 2 deletions api/swagger-spec/oapi-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -20051,8 +20051,7 @@
"id": "v1.BuildSource",
"description": "BuildSource is the SCM used for the build.",
"required": [
"type",
"secrets"
"type"
],
"properties": {
"type": {
Expand Down
2 changes: 1 addition & 1 deletion pkg/build/api/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ type BuildSource struct {

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

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