-
Notifications
You must be signed in to change notification settings - Fork 103
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
Chaos AI updates #652
base: main
Are you sure you want to change the base?
Chaos AI updates #652
Conversation
sandeephans
commented
Jun 20, 2024
- Check if cluster is accessible before starting chaos
- Allow multiple namespaces
- Automatically find all pods-labels, if not given by user
@@ -4,3 +4,4 @@ requests | |||
Flask==2.2.5 | |||
Werkzeug==3.0.3 | |||
flasgger==0.9.5 | |||
kubernetes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might want to set the working version of kubernetes to make sure it doesn't break because of any changes in the upcoming versions. Thoughts?
2efcf8b
to
520e82b
Compare
@@ -54,6 +55,8 @@ def startchaos(self, kubeconfigfile, file_id, params): | |||
params['iterations'] = config_params['iterations'] | |||
params['maxfaults'] = config_params['maxfaults'] | |||
# faults = [f + ':' + p for f in params['faults'].split(',') for p in params['podlabels'].split(',')] | |||
if params['podlabels'] is None or params['podlabels'] == '': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @sandeephans pod labels are not being automatically picked up when not defined. Thoughts?
Traceback (most recent call last):
File "/usr/local/lib/python3.9/threading.py", line 980, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.9/threading.py", line 917, in run
self._target(*self._args, **self._kwargs)
File "/app/swagger_api.py", line 58, in startchaos
if params['podlabels'] is None or params['podlabels'] == '':
KeyError: 'podlabels'