Skip to content

Commit

Permalink
Merge pull request #468 from ispeakc0de/k8s-group
Browse files Browse the repository at this point in the history
Group should be optional incase of k8s probes
  • Loading branch information
Jonsy13 committed Jun 2, 2023
2 parents 06ff37d + ed08995 commit d019f63
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion api/litmuschaos/v1alpha1/chaosengine_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ type ProbeAttributes struct {
// K8sProbeInputs contains all the inputs required for k8s probe
type K8sProbeInputs struct {
// group of the resource
Group string `json:"group"`
Group string `json:"group,omitempty"`
// apiversion of the resource
Version string `json:"version"`
// kind of resource
Expand Down
8 changes: 6 additions & 2 deletions api/litmuschaos/v1alpha1/zz_generated.deepcopy.go

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

1 change: 0 additions & 1 deletion deploy/chaos_crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,6 @@ spec:
k8sProbe/inputs:
type: object
required:
- group
- version
- resource
- operation
Expand Down
1 change: 0 additions & 1 deletion deploy/crds/chaosengine_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,6 @@ spec:
k8sProbe/inputs:
type: object
required:
- group
- version
- resource
- operation
Expand Down

0 comments on commit d019f63

Please sign in to comment.