Injection status when container does not exist #752
Replies: 5 comments
-
I'll take a look today! |
Beta Was this translation helpful? Give feedback.
-
While we can just add a redundant statusUpdate that will do so, I'm looking into why we aren't notifying the user of this error, and running into a more complex situation than expected. Seems our unwrapping of the type DisruptionError doesn't work as expected |
Beta Was this translation helpful? Give feedback.
-
I've resolved the issue we had with notifying the user, but we're still discussing if we'd prefer to solve this with an extra update of the status, or just by defaulting to NotInjected as soon as the disruption is created |
Beta Was this translation helpful? Give feedback.
-
Thank you Philip!! |
Beta Was this translation helpful? Give feedback.
-
Hi team!
Just wanted to share an issue we face with how we implement the controller. This particular scenario happens if we input a manifest that specifies a container name that does not exist in that pod.
The experiment is defined as the following:
When running this we are inspecting the
injectionStatus
field to determine the status of the experiment and when the experiment ends. This is used in our CI/CD platform and helps us feedback to the user. However, this field does not exist at the start of the experiment and still does not exist when the experiment duration completes, which is leaving us in a waiting state for the injectionStatus to update.(start)
![image](https://private-user-images.githubusercontent.com/93604675/258454706-9f60f235-f04d-4dfe-9bbd-654af72562fd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk4ODc4MTUsIm5iZiI6MTczOTg4NzUxNSwicGF0aCI6Ii85MzYwNDY3NS8yNTg0NTQ3MDYtOWY2MGYyMzUtZjA0ZC00ZGZlLTliYmQtNjU0YWY3MjU2MmZkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE4VDE0MDUxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUwZWYyNGMzOTg3MjM0NmE5YzlhOTVkOGFjN2MyZGEzNGU5YzU3ZDAzNDQxYjNmOGY3ZTM4MmZhNDBiYjQ1NWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.QsSGAwhyLNAsThSkx9CCwIESwZjl1ct3IyVZMXxg-Hg)
![image](https://private-user-images.githubusercontent.com/93604675/258454734-105ea3de-4443-4054-9599-f2016ead27fb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk4ODc4MTUsIm5iZiI6MTczOTg4NzUxNSwicGF0aCI6Ii85MzYwNDY3NS8yNTg0NTQ3MzQtMTA1ZWEzZGUtNDQ0My00MDU0LTk1OTktZjIwMTZlYWQyN2ZiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE4VDE0MDUxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY4YmMzN2EyMzRhMDdmNzliOTRiNDc0NGE0YTZiZmI4NDI4OTJhYTM3MzEyMzU2ODhmYjUwZjllZGUxNzEwOTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.MABY3CitfAKMQgx3ug7NLAw_8gIg9JYMnRHEg3kuNyY)
(end)
For reference, this is the behaviour of 7.13.1, where at the start of the experiment the field does not exist, and at the end of the experiment the field does exist and states
PreviouslyInjected
which at least allows us to determine the end of the disruption(start)
![image](https://private-user-images.githubusercontent.com/93604675/258455051-13b629d0-e38a-49b7-8750-3182f6270730.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVC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glMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE4VDE0MDUxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUzY2QyODNlNTYxZWQ4ZDJhNTliOTYzOGVjNDJiYWYwZWU4ZmIzMzYyOTYwOWU0MDE4YWUxODkzMTk2N2UwYjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.jZ8ScCWfOUT13G3-U3m-xa2JYnNuFBPovjVV90_OXTs)
(end)
Ideally, we would like this field to be initialised in a NotInjected state, or any other suggestions are welcome.
Beta Was this translation helpful? Give feedback.
All reactions