Skip to content
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

Bugfix: IntegrationTest TestRestartController #1313

Merged
merged 4 commits into from
Jan 28, 2020

Conversation

kensipe
Copy link
Member

@kensipe kensipe commented Jan 25, 2020

  • added required phases to test plans
  • made lastFinishedRun a ptr so that it can be nil

Fixes #1312

Signed-off-by: Ken Sipe kensipe@gmail.com

@@ -72,7 +72,7 @@ type PlanStatus struct {
Status ExecutionStatus `json:"status,omitempty"`
Message string `json:"message,omitempty"` // more verbose explanation of the status, e.g. a detailed error message
// +nullable
LastFinishedRun metav1.Time `json:"lastFinishedRun,omitempty"`
LastFinishedRun *metav1.Time `json:"lastFinishedRun,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this can now be nil, we should have checks for nil in places where this field is used, right?

I.e. in instance_types_helpers.go wasRunAfter and plan_history.go planHistory

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep other than this it lgtm

@runyontr runyontr self-requested a review January 27, 2020 16:20
…that it can be nil

Signed-off-by: Ken Sipe <kensipe@gmail.com>
Signed-off-by: Ken Sipe <kensipe@gmail.com>
Signed-off-by: Ken Sipe <kensipe@gmail.com>
…ullable but now actually is

Signed-off-by: Ken Sipe <kensipe@gmail.com>
@kensipe kensipe merged commit 8df525a into master Jan 28, 2020
@kensipe kensipe deleted the ken/controller-restart-fix branch January 28, 2020 21:24
ANeumann82 pushed a commit that referenced this pull request Feb 13, 2020
Signed-off-by: Ken Sipe <kensipe@gmail.com>
Signed-off-by: Andreas Neumann <aneumann@mesosphere.com>
runyontr pushed a commit that referenced this pull request Mar 11, 2020
Signed-off-by: Ken Sipe <kensipe@gmail.com>
Signed-off-by: Thomas Runyon <runyontr@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integration Test Failure: TestRestartController
3 participants