Skip to content

Commit

Permalink
[Feat.] Add JobCleanUpPolicy field in ChaosEngine schema (#73)
Browse files Browse the repository at this point in the history
* JobCleanUpPolicy field in chaosengine_types.go
* Executed the script ./hack/update-codegen.sh

Signed-off-by: Rahul M Chheda <rahul.chheda@mayadata.io>
  • Loading branch information
rahulchheda authored and Chandan Kumar committed Oct 21, 2019
1 parent 779da8b commit 69e4880
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hack/update-codegen.sh
Expand Up @@ -4,7 +4,7 @@ set -o errexit
set -o nounset
set -o pipefail

${GOPATH}/src/k8s.io/code-generator/generate-groups.sh client,lister,informer \
${GOPATH}/src/github.com/litmuschaos/chaos-operator/vendor/k8s.io/code-generator/generate-groups.sh client,lister,informer \
github.com/litmuschaos/chaos-operator/pkg/client github.com/litmuschaos/chaos-operator/pkg/apis \
litmuschaos:v1alpha1

2 changes: 2 additions & 0 deletions pkg/apis/litmuschaos/v1alpha1/chaosengine_types.go
Expand Up @@ -17,6 +17,8 @@ type ChaosEngineSpec struct {
Experiments []ExperimentList `json:"experiments"`
//Monitor Enable Status
Monitoring bool `json:"monitoring,omitempty"`
//JobCleanUpPolicy decides to retain or delete the jobs
JobCleanUpPolicy string `json:"jobCleanUpPolicy,omitempty"`
}

// ChaosEngineStatus defines the observed state of ChaosEngine
Expand Down

0 comments on commit 69e4880

Please sign in to comment.