-
Notifications
You must be signed in to change notification settings - Fork 344
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
Make JaegerSpec.Strategy a type #137
Comments
I'm planning to give this issue a try :) |
Go ahead! If you need any help, let me know. |
What tests should I care about to be sure I'm not breaking anything? Should unit tests be enough or will I need to run full e2e tests? I just created a |
Unit tests should be enough. Then, you can run the operator in a |
I've created the PR. I used I also ran unit tests and everything passes, except for Another concern is that, after implementing my changes, I found this code. Seems something was already implemented. Does this refer to the same strategy "concept"? |
Are they passing for you before you apply your changes? If they are failing even before you apply your changes, please create an issue so that we can track the problem. The code you found is talking about the same strategies, but in a different level. Yours is about the value from the CR, and this is the strategy that is derived from the CR value. You can unify them, removing the existing one, keeping yours. Your change has probably more impact than the existing constant. |
They were failing before I changed anything, that's why I think they are flaky. I've already created a new issue for this.
Great, I've pushed a commit unifying them :) |
Strategy is defined as string, it makes it harder to find out what values are correct. It can be defined as a separate type e.g.
type DeploymentStrategy string
and valid values can be defined as constants.The text was updated successfully, but these errors were encountered: