Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

Commit

Permalink
added entrypoint in workload model and updated tests (#57)
Browse files Browse the repository at this point in the history
* added entrypoint in workload model and updated tests

* Update changelog

Co-authored-by: Wulf-Thilo Schreiter <[email protected]>
  • Loading branch information
mmueller90 and Wulf-Thilo Schreiter authored May 27, 2020
1 parent 1e9b603 commit db2c3fd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ All notable changes to this project will be documented in this file.
* Objects are handled one by one
* First error stops execution
* Empty objects are ignored
* (#56) Add support for defining entrypoints in workloads

### Changed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ spec:
- -Mbignum=bpi
- -wle
- print bpi(2000)
entrypoint:
- /bin/sh
environment:
TEST_VAR: test value
image: perl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ spec:
containers:
- allowPrivilegeEscalation: true
command: [ "perl", "-Mbignum=bpi", "-wle", "print bpi(2000)" ]
entrypoint: [ "/bin/sh" ]
environment:
TEST_VAR: test value
environmentFrom: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ type baseWorkload struct {
type Container struct {
AllowPrivilegeEscalation *bool `json:"allowPrivilegeEscalation,omitempty" yaml:"allowPrivilegeEscalation,omitempty"`
Command []string `json:"command,omitempty" yaml:"command,omitempty"`
Entrypoint []string `json:"entrypoint,omitempty" yaml:"entrypoint,omitempty"`
Environment map[string]string `json:"environment,omitempty" yaml:"environment,omitempty"`
EnvironmentFrom []EnvironmentFrom `json:"environmentFrom,omitempty" yaml:"environmentFrom,omitempty"`
Image string `json:"image,omitempty" yaml:"image,omitempty"`
Expand Down

0 comments on commit db2c3fd

Please sign in to comment.