-
Notifications
You must be signed in to change notification settings - Fork 210
add updateStrategy to daemonSets #1781
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
Conversation
I'd be very careful adding this to the API. Do you think it's useful? Our priority is to make our operator 'full lifecycle' compliant and if adding safe defaults to |
@mythi I think I still have no idea what makes our operator 'full cycle'.. Umm, the point that I do not understand is: |
Ah do you mean...
but didn't do this?
|
the operator uses these as the "skeleton" so changes there will add to operator automatically. See https://github.com/intel/intel-device-plugins-for-kubernetes/blob/main/deployments/daemonsets.go and
|
yes, and the first part needs more thinking if we really want/need to do it. we cannot let users to set |
True. maxSurge should be always 0. Now I see your point.! Then, if we can make users set only maxUnavailable, would it be good? Or, would we not need it since device plugins have already maxUnavailable value as default value (1)? |
my feedback is we don't need it configurable right now but let's prioritize the rest of the capability criteria |
sure, then, let me just add other plugins' yamls with |
Signed-off-by: Hyeongju Johannes Lee <[email protected]>
Signed-off-by: Hyeongju Johannes Lee <[email protected]>
Signed-off-by: Hyeongju Johannes Lee <[email protected]>
Signed-off-by: Hyeongju Johannes Lee <[email protected]>
Signed-off-by: Hyeongju Johannes Lee <[email protected]>
Signed-off-by: Hyeongju Johannes Lee <[email protected]>
Signed-off-by: Hyeongju Johannes Lee <[email protected]>
@mythi anything else to do? |
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.
The values look fine. I hope this is what the operator sdk capability expects. One minor suggestion.
One other thing: I think your repo fork is broken due to the repo incident we had. Maybe you need to create a new fork and re-create the PR from there... let me check on this
maxUnavailable := &intstr.IntOrString{} | ||
maxUnavailable.IntVal = 1 | ||
maxSurge := &intstr.IntOrString{} | ||
maxSurge.IntVal = 0 |
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.
maxUnavailable := &intstr.IntOrString{} | |
maxUnavailable.IntVal = 1 | |
maxSurge := &intstr.IntOrString{} | |
maxSurge.IntVal = 0 | |
maxUnavailable := intstr.FromInt(1) | |
maxSurge := intstr.FromInt(0) |
MaxUnavailable: maxUnavailable, | ||
MaxSurge: maxSurge, |
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.
MaxUnavailable: maxUnavailable, | |
MaxSurge: maxSurge, | |
MaxUnavailable: &maxUnavailable, | |
MaxSurge: &maxSurge, |
closes: #1500