-
Notifications
You must be signed in to change notification settings - Fork 100
Description
We are using chaos operator v3.19.0 and our application pods are controlled by CRD.
In ChaosEngine, if we set applabel but left appkind empty, the litmus operator reported below error, incomplete appinfo, provide appkind and applabel both. In the old 2.x version, this could work.
appinfo:
applabel: 'chaos-pod-network-partition=test-5'
appkind: ''
2025-06-20T09:17:32Z ERROR Reconciler error {"controller": "chaosengine", "controllerGroup": "litmuschaos.io", "controllerKind": "ChaosEngine", "ChaosEngine": {"name":"pod-network-partition-chaos","namespace":"pcc"}, "namespace": "pcc", "name": "pod-network-partition-chaos", "reconcileID": "74d7c4f8-2eb2-42e4-bab2-b6fdbcdfbc3a", "error": "incomplete appinfo, provide appkind and applabel both"}
The documentation supports non-empty applabel and empty appkind it as stated in
https://github.com/litmuschaos/litmus/blob/0183efd7a6199404a36bd53d536baba8b2365b50/mkdocs/docs/experiments/faq/experiments.md?plain=1#L224
- provide labels and namespace at spec.appinfo.applabelandspec.appinfo.appnsrespectively and providespec.appinfo.appkind` as empty.
- provide pod names at
TARGET_PODSENV and providespec.appinfoas nil`
Looks like this code line change submitted in 3.x brought the issue.
| if (engine.AppInfo.AppKind != "") != (engine.AppInfo.Applabel != "") { |