-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
WIP: Refactor how cloud options are specified #2965
Conversation
inside `ext` rather than just `cloud`. Signed-off-by: chaosinthecrd <thomas.meadows@jetstack.io>
Signed-off-by: chaosinthecrd <thomas.meadows@jetstack.io>
Signed-off-by: chaosinthecrd <thomas.meadows@jetstack.io>
Codecov Report
@@ Coverage Diff @@
## master #2965 +/- ##
==========================================
- Coverage 76.84% 76.77% -0.07%
==========================================
Files 229 227 -2
Lines 16924 16934 +10
==========================================
- Hits 13005 13001 -4
- Misses 3077 3085 +8
- Partials 842 848 +6
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Hi @ChaosInTheCRD, Unfortunately, this is not as easy as we reported in the issue. This is not only around the k6 open source code but has several implications for the entire Grafana k6 platform. It requires some decisions for the product and the code architecture because it impacts the Cloud and how we must maintain them in the future. I would suggest picking an issue where the scope and the requirements are better defined and it isn't so dependent on internal knowledge. In this way, you may experience better collaboration. Remember that it generally helps if you ask for quick feedback on your solution's idea in the issue before starting work on it. |
Hi @codebien That's absolutely no problem. Sorry for not voicing ideas first, I just fancied having a crack at writing some code for the project to see how I would get on. I then felt there wouldn't be any harm in putting the PR forward, even if it doesn't get used. When I get some more time in the future I'll raise thoughts and ideas in issues before proceeding. In the meantime though, I guess the PR can be closed and the code can stay put for anyone looking to implement this when the time comes! Thanks, |
Hi There! 👋
I am new around here, so this is my first interaction with the project 😃
I fancied trying to address issue #1155 and submit a PR for it, and this one was of interest to many people so I decided to go for it.
Keeping both options certainly makes things a bit messy. Having
options.cloud
andoptions.ext.loadimpact
accepted into the same function seemed to remove the ability to pass them into theGetConsolidatedConfig
function as the same variable (one is a map and the other is just a JSON raw message). Instead I had to add an extra parameter and put the decision logic of whether it wascloud
orloadimpact
outside of theMergeFromExternal
function. I am new around here, so I am unsure whether the way I have tried to add the warning tocloud.go
makes sense. But I figured that would be easy for someone to recommend an alternative in the PR if it is wrong 😄 .I have tried to mark
TODO:
's wherever the temporaryloadimpact
'ness is still lying around, so it will be easy to remove it when the time comes.The only other thing is that one unit test was failing on my machine. This is cert related, and I decided to wait before deciding to debug. I figured it might be something to do with my local machine. I can work on this a bit more to address if need be 😄:
I hope this was in some way helpful 😄 I am going to try and manually test my changes out, as I still haven't had time to do that. If this doesn't solve the problem and is off the mark, please let me know and I will try and find some time to move it towards done.