[Fix] chaosExperiment Structure Edit : Naming Convention in-sync with litmuschaos/litmus (#103)
* Added support for GoExecutor Signed-off-by: Rahul M Chheda <rahul.chheda@mayadata.io> * DeepCopy Changes Added Signed-off-by: Rahul M Chheda <rahul.chheda@mayadata.io> * MakeFile changes Signed-off-by: Rahul M Chheda <rahul.chheda@mayadata.io> * Set the image as omitempty Signed-off-by: Rahul M Chheda <rahul.chheda@mayadata.io> * [Fix] chaosExperiment Structure Edit : Naming Convention in-sync with litmuschaos/litmus Signed-off-by: Rahul M Chheda <rahul.chheda@mayadata.io> * [Feat] chaos-experiment Structure: Added Secrets Support in chaos-operator Signed-off-by: Rahul M Chheda <rahul.chheda@mayadata.io> * [Feat] DeepCopy Changes Signed-off-by: Rahul M Chheda <rahul.chheda@mayadata.io> * [Fix] Type in chaosexperiment_types.go Signed-off-by: Rahul M Chheda <rahul.chheda@mayadata.io>
This commit is contained in:
parent
13a36c5cfb
commit
256ec605bf
|
|
@ -41,7 +41,13 @@ type ChaosExperimentStatus struct {
|
||||||
type ConfigMap struct {
|
type ConfigMap struct {
|
||||||
Data map[string]string `json:"data,omitempty"`
|
Data map[string]string `json:"data,omitempty"`
|
||||||
Name string `json:"name"`
|
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
|
// ExperimentDef defines information about nature of chaos & components subjected to it
|
||||||
|
|
@ -59,6 +65,8 @@ type ExperimentDef struct {
|
||||||
Args []string `json:"args"`
|
Args []string `json:"args"`
|
||||||
// ConfigMaps contains a list of ConfigMaps
|
// ConfigMaps contains a list of ConfigMaps
|
||||||
ConfigMaps []ConfigMap `json:"configmaps,omitempty"`
|
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
|
// ENVPair defines env var list to hold chaos params
|
||||||
|
|
|
||||||
|
|
@ -431,6 +431,11 @@ func (in *ExperimentDef) DeepCopyInto(out *ExperimentDef) {
|
||||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if in.Secrets != nil {
|
||||||
|
in, out := &in.Secrets, &out.Secrets
|
||||||
|
*out = make([]Secret, len(*in))
|
||||||
|
copy(*out, *in)
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -526,6 +531,22 @@ func (in *RunnerInfo) DeepCopy() *RunnerInfo {
|
||||||
return out
|
return out
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
|
func (in *Secret) DeepCopyInto(out *Secret) {
|
||||||
|
*out = *in
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Secret.
|
||||||
|
func (in *Secret) DeepCopy() *Secret {
|
||||||
|
if in == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
out := new(Secret)
|
||||||
|
in.DeepCopyInto(out)
|
||||||
|
return out
|
||||||
|
}
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
func (in *TestStatus) DeepCopyInto(out *TestStatus) {
|
func (in *TestStatus) DeepCopyInto(out *TestStatus) {
|
||||||
*out = *in
|
*out = *in
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue