Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(pod-delete): Adding target details inside chaosresult #336

Merged
merged 7 commits into from
Jun 11, 2021

Conversation

ispeakc0de
Copy link
Member

@ispeakc0de ispeakc0de commented Apr 22, 2021

Signed-off-by: shubhamchaudhary shubham@chaosnative.com

  • Adding the target details inside chaosresult for the pod-delete and pod-autoscaler experiment
  • It will add three attributes:
    • name: name of the application(parent resource or pod name)
    • kind: kind of application i.e deployment
    • chaosStatus: status of chaos[injected, reverted, targeted]

Tested:

  • pod-delete with annotationCheck: true, single and multiple deployments ✔️
  • pod-delete with annotationCheck: false, single and multiple deployments ✔️
  • pod-autoscaler with single deployments ✔️
  • pod-autoscaler with multiple deployments ✔️

@ispeakc0de
Copy link
Member Author

Name:         helloservice-pod-delete1-pod-delete
Namespace:    shubham
Labels:       chaosUID=7dca27f2-6617-4df5-8b95-19862f4e7a3c
              controller-uid=122a87d5-9716-47e0-9cf1-12e20f6b2f27
              job-name=pod-delete-shfp38
              name=helloservice-pod-delete1-pod-delete
Annotations:  <none>
API Version:  litmuschaos.io/v1alpha1
Kind:         ChaosResult
Metadata:
  Creation Timestamp:  2021-04-22T07:59:27Z
  Generation:          8
  Managed Fields:
    API Version:  litmuschaos.io/v1alpha1
    Fields Type:  FieldsV1
    fieldsV1:
      f:metadata:
        f:labels:
          .:
          f:chaosUID:
          f:controller-uid:
          f:job-name:
          f:name:
      f:spec:
        .:
        f:engine:
        f:experiment:
      f:status:
        .:
        f:experimentStatus:
          .:
          f:failStep:
          f:phase:
          f:probeSuccessPercentage:
          f:verdict:
        f:history:
          .:
          f:failedRuns:
          f:passedRuns:
          f:stoppedRuns:
          f:targets:
    Manager:         experiments
    Operation:       Update
    Time:            2021-04-22T08:22:31Z
  Resource Version:  11075
  Self Link:         /apis/litmuschaos.io/v1alpha1/namespaces/shubham/chaosresults/helloservice-pod-delete1-pod-delete
  UID:               ce44c22e-1097-4d61-b8ad-601a081e34c1
Spec:
  Engine:      helloservice-pod-delete1
  Experiment:  pod-delete
Status:
  Experiment Status:
    Fail Step:                 N/A
    Phase:                     Completed
    Probe Success Percentage:  100
    Verdict:                   Pass
  History:
    Failed Runs:   0
    Passed Runs:   4
    Stopped Runs:  0
    Targets:
      Chaos Status:  N/A
      Kind:          deployment
      Target:        nginx
Events:
  Type    Reason   Age    From                     Message
  ----    ------   ----   ----                     -------
  Normal  Awaited  24m    pod-delete-5jbuyr-2fllk  experiment: pod-delete, Result: Awaited
  Normal  Pass     23m    pod-delete-5jbuyr-2fllk  experiment: pod-delete, Result: Pass

Signed-off-by: shubhamchaudhary <shubham@chaosnative.com>
@ispeakc0de
Copy link
Member Author

Name:         helloservice-pod-delete1-pod-autoscaler
Namespace:    shubham
Labels:       chaosUID=14d7f2b1-f782-46ad-9403-dda46d86da0b
              controller-uid=a6c854ef-a23d-437c-802e-42a5b47250c6
              job-name=pod-autoscaler-mfh2d5
              name=helloservice-pod-delete1-pod-autoscaler
Annotations:  <none>
API Version:  litmuschaos.io/v1alpha1
Kind:         ChaosResult
Metadata:
  Creation Timestamp:  2021-04-25T18:05:13Z
  Generation:          2
  Managed Fields:
    API Version:  litmuschaos.io/v1alpha1
    Fields Type:  FieldsV1
    fieldsV1:
      f:metadata:
        f:labels:
          .:
          f:chaosUID:
          f:controller-uid:
          f:job-name:
          f:name:
      f:spec:
        .:
        f:engine:
        f:experiment:
      f:status:
        .:
        f:experimentStatus:
          .:
          f:failStep:
          f:phase:
          f:probeSuccessPercentage:
          f:verdict:
        f:history:
          .:
          f:failedRuns:
          f:passedRuns:
          f:stoppedRuns:
          f:targets:
    Manager:         experiments
    Operation:       Update
    Time:            2021-04-25T18:05:55Z
  Resource Version:  15184
  Self Link:         /apis/litmuschaos.io/v1alpha1/namespaces/shubham/chaosresults/helloservice-pod-delete1-pod-autoscaler
  UID:               33087d98-fc29-411c-a57a-4f646e494f84
Spec:
  Engine:      helloservice-pod-delete1
  Experiment:  pod-autoscaler
Status:
  Experiment Status:
    Fail Step:                 N/A
    Phase:                     Completed
    Probe Success Percentage:  100
    Verdict:                   Pass
  History:
    Failed Runs:   0
    Passed Runs:   1
    Stopped Runs:  0
    Targets:
      Chaos Status:  recovered
      Kind:          deployment
      Target:        nginx
      Chaos Status:  recovered
      Kind:          deployment
      Target:        nginx1
Events:
  Type    Reason   Age   From                         Message
  ----    ------   ----  ----                         -------
  Normal  Awaited  50s   pod-autoscaler-mfh2d5-b9qb8  experiment: pod-autoscaler, Result: Awaited
  Normal  Pass     8s    pod-autoscaler-mfh2d5-b9qb8  experiment: pod-autoscaler, Result: Pass

…utoscaler

Signed-off-by: shubhamchaudhary <shubham@chaosnative.com>
Signed-off-by: shubhamchaudhary <shubham@chaosnative.com>
shubhamchaudhary added 2 commits May 11, 2021 14:06
Signed-off-by: shubhamchaudhary <shubham@chaosnative.com>
Signed-off-by: shubhamchaudhary <shubham@chaosnative.com>
Signed-off-by: shubhamchaudhary <shubham@chaosnative.com>
ksatchit
ksatchit previously approved these changes Jun 10, 2021
Signed-off-by: shubhamchaudhary <shubham@chaosnative.com>
@ksatchit
Copy link
Member

@ispeakc0de can we change the snippets in the description based on the new changes to schema

@ksatchit ksatchit merged commit 51c3574 into litmuschaos:master Jun 11, 2021
ispeakc0de added a commit to ispeakc0de/litmus-go that referenced this pull request Jun 15, 2021
…aos#336)

* chore(pod-delete): Adding target details inside chaosresult

Signed-off-by: shubhamchaudhary <shubham@chaosnative.com>

* chore(pod-delete): Adding target details inside chaosresult for pod-autoscaler

Signed-off-by: shubhamchaudhary <shubham@chaosnative.com>
ksatchit pushed a commit that referenced this pull request Jun 15, 2021
* chore(dns): adding spoofmap env in helper pod (#363)

Signed-off-by: shubhamchaudhary <shubham@chaosnative.com>

* Fix sequence env in kafka broker pod experiment (#369)

* Fix sequence env in kafka broker pod experiment

Signed-off-by: uditgaurav <udit@chaosnative.com>

* add pod affected percentage env

Signed-off-by: uditgaurav <udit@chaosnative.com>

* chore(contribution): Adding contribution guide, bch check, issue & PR templates (#367)

Signed-off-by: shubhamchaudhary <shubham@chaosnative.com>

* fix: vendor/golang.org/x/net/http2/Dockerfile to reduce vulnerabilities (#361)

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-UBUNTU1404-OPENSSL-1049144
- https://snyk.io/vuln/SNYK-UBUNTU1404-SUDO-1065770
- https://snyk.io/vuln/SNYK-UBUNTU1404-SUDO-406981
- https://snyk.io/vuln/SNYK-UBUNTU1404-SUDO-473059
- https://snyk.io/vuln/SNYK-UBUNTU1404-SUDO-546522

Co-authored-by: Karthik Satchitanand <karthik.s@mayadata.io>

* fix: vendor/golang.org/x/net/http2/Dockerfile to reduce vulnerabilities (#364)

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-UBUNTU1404-OPENSSL-1049144
- https://snyk.io/vuln/SNYK-UBUNTU1404-SUDO-1065770
- https://snyk.io/vuln/SNYK-UBUNTU1404-SUDO-406981
- https://snyk.io/vuln/SNYK-UBUNTU1404-SUDO-473059
- https://snyk.io/vuln/SNYK-UBUNTU1404-SUDO-546522

Co-authored-by: Karthik Satchitanand <karthik.s@mayadata.io>

* chore(env): : updated the env setter function (#365)

Signed-off-by: shubhamchaudhary <shubham@chaosnative.com>

* rm(vendor): removing the vendor directory from litmus-go (#366)

Signed-off-by: shubhamchaudhary <shubham@chaosnative.com>

* chore(image): reduce the go-runner image size (#371)

Signed-off-by: shubhamchaudhary <shubham@chaosnative.com>

* Chore(e2e): Update e2e workflows and add more node level tests (#372)

* Chore(e2e): Update e2e workflows and add more node level tests

Signed-off-by: uditgaurav <udit@chaosnative.com>

* add kind config

Signed-off-by: uditgaurav <udit@chaosnative.com>

* chore(probe): adding probe abort (#370)

Signed-off-by: shubhamchaudhary <shubham@chaosnative.com>

* chore(helper): Adding statusCheckTimeouts for the helper status check (#373)

Signed-off-by: shubhamchaudhary <shubham@chaosnative.com>

* chore(chaosresult): updating verdict and status in chaosengine and chaosresult (#375)

Signed-off-by: shubhamchaudhary <shubham@chaosnative.com>

* chore(sdk): updating sdk (#378)

* chore(sdk): updating sdk

Signed-off-by: shubhamchaudhary <shubham@chaosnative.com>

* chore(pod-delete): Adding target details inside chaosresult (#336)

* chore(pod-delete): Adding target details inside chaosresult

Signed-off-by: shubhamchaudhary <shubham@chaosnative.com>

* chore(pod-delete): Adding target details inside chaosresult for pod-autoscaler

Signed-off-by: shubhamchaudhary <shubham@chaosnative.com>

* chore(experiment): Adding target details inside chaosresult for the experiments which contains helper pod (#342)

Signed-off-by: shubhamchaudhary <shubham@chaosnative.com>

* chore(experiment): Adding target details inside chaosresult for the experiments which doesn't contain helper pod (#341)

* chore(experiment): Adding target details inside chaosresult for the experiments which doesn't contain helper pod

Signed-off-by: shubhamchaudhary <shubham@chaosnative.com>

* chore(experiment): Adding target details inside chaosresult for the pumba helper

Signed-off-by: shubhamchaudhary <shubham@chaosnative.com>

* Added docker-service-kill experiment implementation in litmus-go. (#379)

* Added docker-svc-kill implementation in litmus-go.

Signed-off-by: Jonsy13 <vedant.shrotria@chaosnative.com>

* Chore(Dockerfile): Update Dockerfile to take binaries from test-tool release build (#380)

Signed-off-by: udit <udit@chaosnative.com>

* chore(1.13.x): updating branch to 1.13.x in github actions

Signed-off-by: shubhamchaudhary <shubham@chaosnative.com>

Co-authored-by: Udit Gaurav <35391335+uditgaurav@users.noreply.github.com>
Co-authored-by: Snyk bot <github+bot@snyk.io>
Co-authored-by: Karthik Satchitanand <karthik.s@mayadata.io>
Co-authored-by: VEDANT SHROTRIA <40681425+Jonsy13@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants