Skip to content

Commit

Permalink
Merge pull request #63 from flanksource/optional-name
Browse files Browse the repository at this point in the history
chore: make 'name' in EnvVar optional
  • Loading branch information
moshloop authored Aug 4, 2021
2 parents c1656e5 + 4e8dc87 commit e01dd0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ type RuntimeObjectWithMetadata interface {

// +kubebuilder:object:generate=true
type EnvVar struct {
Name string `json:"name" yaml:"name" protobuf:"bytes,1,opt,name=name"`
Name string `json:"name,omitempty" yaml:"name,omitempty" protobuf:"bytes,1,opt,name=name"`
Value string `json:"value,omitempty" yaml:"value,omitempty" protobuf:"bytes,2,opt,name=value"`
ValueFrom *EnvVarSource `json:"valueFrom,omitempty" yaml:"valueFrom,omitempty" protobuf:"bytes,3,opt,name=valueFrom"`
}
Expand Down

0 comments on commit e01dd0f

Please sign in to comment.