-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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] - Make deployer controller to respect 3 laws of controllers #17499
[WIP] - Make deployer controller to respect 3 laws of controllers #17499
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: tnozicka Assign the PR to them by writing The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
@tnozicka: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
return err | ||
} | ||
|
||
{ |
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.
why is this block?
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.
to scope variables and not to leak names since this is to be removed after the interim
@@ -375,6 +389,7 @@ func (c *DeploymentController) makeDeployerPod(deployment *v1.ReplicationControl | |||
|
|||
gracePeriod := int64(10) | |||
|
|||
t := true |
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.
I wish there is BoolPtr() helper ;-)
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.
Please create one and don't use t
as a variable name, it's hard to follow what's it's about.
@@ -384,6 +384,7 @@ func makeHookPod(hook *deployapi.LifecycleHook, rc *kapi.ReplicationController, | |||
podSecurityContextCopy := rc.Spec.Template.Spec.SecurityContext.DeepCopy() | |||
securityContextCopy := baseContainer.SecurityContext.DeepCopy() | |||
|
|||
t := true |
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.
Same here.
@tnozicka PR needs rebase |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
We could potentially delete wrong deployer pods if the same DC is deleted and recreated.
/cc @mfojtik
(needs tests)