Skip to content

Chaos Checker Container resources Section Gets Overwritten in UI Changes #5231

@saireddyb

Description

@saireddyb

What happened:
Some fields (container resources) are getting overridden
In my case resource section is always getting removed with default resources: {} after selecting pods from UI
and this is happening only for this section

      container:
        name: ""
        image: docker.io/litmuschaos/litmus-checker:2.11.0
        args:
          - -file=/tmp/chaosengine-run-chaos.yaml
          - -saveName=/tmp/engine-name

I have given resources for every pod in install fault and some section of run chaos it is working

                  experiments:
                    - name: pod-dns-error
                      spec:
                        components:
                          env:
                            - name: CONTAINER_RUNTIME
                              value: containerd
                            - name: SOCKET_PATH
                              value: /run/containerd/containerd.sock
                            - name: TOTAL_CHAOS_DURATION
                              value: "60"
                          resources:
                            requests:
                              cpu: 10m
                              memory: 25Mi
                            limits:
                              cpu: 200m
                              memory: 500Mi
                  components:
                    runner:
                      resources:
                        requests:
                          cpu: 100m
                          memory: 250Mi
                        limits:
                          cpu: 200m
                          memory: 500Mi

here it is working but in chaos checker resource section is getting removed after making any changes in container selector or probes change etc.
How to know why it is getting overridden
What you expected to happen:
Understand why some field are getting overridden from the workflow yaml that I have created apart from the changes I do in litmus UI
Where can this issue be corrected? (optional)

How to reproduce it (as minimally and precisely as possible):
https://docs.litmuschaos.io/docs/concepts/chaos-workflow
Used this experiment and only changes it renamed all the docker images with internal self hosted registry and given resources: to all pods
Anything else we need to know?:

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions