-
Notifications
You must be signed in to change notification settings - Fork 40
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
Status checks if resource was upgraded #268
base: master
Are you sure you want to change the base?
Conversation
2b5706a
to
704d7ce
Compare
The commit mostly looks good. The problem is that it adds new status and functionality which is not used by deployment engine (scheduler). Thus it is not clear, how it is going to be used. At least it should be reflected in commit message. Without understanding the purpose it is hard to review the code. My guess is that from now on definitions are going to be the single point of truth and if, for example, I want to set resource label I need to modify definition and rerun the graph rather than doing it through kubectl, as usual Review status: 0 of 30 files reviewed at latest revision, 2 unresolved discussions, some commit checks failed. pkg/interfaces/interfaces.go, line 43 at r1 (raw file):
Shouldn't it be EqualsToDefinition? pkg/resources/configmap.go, line 102 at r1 (raw file):
Here and in other resources: why it it error? Usually it is either result and nil error, or nil and non-nil error. If there is a special status for this then resource being in that status is not an error condition. Error is when you cannot get the status, for example Comments from Reviewable |
Seems like some of the scheduling code got lost during rebase (it was long and painful). Will fix. Thanks for the feedback, will try to fix. |
All resources now have a Definition to which they need to conform in order to make an actual status check
704d7ce
to
b4e665b
Compare
Review status: 0 of 28 files reviewed at latest revision, 2 unresolved discussions. pkg/interfaces/interfaces.go, line 43 at r1 (raw file): Previously, istalker2 (Stan Lagun) wrote…
Done. pkg/resources/configmap.go, line 102 at r1 (raw file): Previously, istalker2 (Stan Lagun) wrote…
Done. Comments from Reviewable |
All resources now have a Definition to which they need to conform in
order to make an actual status check
This change is![Reviewable](https://camo.githubusercontent.com/23b05f5fb48215c989e92cc44cf6512512d083132bd3daf689867c8d9d386888/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)