Skip to content

Commit

Permalink
Update deployment service
Browse files Browse the repository at this point in the history
- The deployment service was updated to properly
  handle null and empty values, specifically when
  the environment variable is set as a value inside
  the deployment configuration and not through
  environment variables
  • Loading branch information
oshalygin committed Jul 31, 2017
1 parent 6c3eacc commit 1965526
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG → CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.1.0 (July 30, 2017)

- Updated deployment service to now properly handle null and zero values with `omitempty`.

## 1.0.2 (July 30, 2017)

- Updated deployment test file which includes a strict `value` instead of pulling from configuration
Expand Down
3 changes: 2 additions & 1 deletion models/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ type Container struct {
VolumeMounts `yaml:"volumeMounts"`
Env []struct {
Name string
ValueFrom `yaml:"valueFrom"`
ValueFrom `yaml:"valueFrom,omitempty"`
Value string `yaml:"value,omitempty"`
}
ImagePullPolicy string `yaml:"imagePullPolicy"`
Ports []struct {
Expand Down

0 comments on commit 1965526

Please sign in to comment.