Skip to content

Commit

Permalink
[Fix] chaosExperiment Structure Edit : Naming Convention in-sync wit…
Browse files Browse the repository at this point in the history
…h litmuschaos/litmus (#103)

* Added support for GoExecutor

Signed-off-by: Rahul M Chheda <[email protected]>

* DeepCopy Changes Added

Signed-off-by: Rahul M Chheda <[email protected]>

* MakeFile changes

Signed-off-by: Rahul M Chheda <[email protected]>

* Set the image as omitempty

Signed-off-by: Rahul M Chheda <[email protected]>

* [Fix] chaosExperiment Structure Edit : Naming Convention in-sync with litmuschaos/litmus

Signed-off-by: Rahul M Chheda <[email protected]>

* [Feat] chaos-experiment Structure: Added Secrets Support in chaos-operator

Signed-off-by: Rahul M Chheda <[email protected]>

* [Feat] DeepCopy Changes

Signed-off-by: Rahul M Chheda <[email protected]>

* [Fix] Type in chaosexperiment_types.go

Signed-off-by: Rahul M Chheda <[email protected]>
  • Loading branch information
rahulchheda authored and Karthik Satchitanand committed Dec 7, 2019
1 parent 13a36c5 commit 256ec60
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pkg/apis/litmuschaos/v1alpha1/chaosexperiment_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@ type ChaosExperimentStatus struct {
type ConfigMap struct {
Data map[string]string `json:"data,omitempty"`
Name string `json:"name"`
MountPath string `json:"mountpath"`
MountPath string `json:"mountPath"`
}

// Secret is an simpler implementation of corev1.Secret
type Secret struct {
Name string `json:"name"`
MountPath string `json:"mountPath"`
}

// ExperimentDef defines information about nature of chaos & components subjected to it
Expand All @@ -59,6 +65,8 @@ type ExperimentDef struct {
Args []string `json:"args"`
// ConfigMaps contains a list of ConfigMaps
ConfigMaps []ConfigMap `json:"configmaps,omitempty"`
// Secrets contains a list of Secrets
Secrets []Secret `json:"secrets,omitempty"`
}

// ENVPair defines env var list to hold chaos params
Expand Down
21 changes: 21 additions & 0 deletions pkg/apis/litmuschaos/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 256ec60

Please sign in to comment.