-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix for pod condition type too long #1253
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
Hi @sandeepbhojwani. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
Unknown CLA label state. Rechecking for CLA labels. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/assign @M00nF1sh |
@M00nF1sh @devkid @nirnanaaa This fix is critical for using pod readiness gate. Can you have a review on this? |
To use static string as condition Type also make it easier to avoid the following issue |
Hi, thanks for contributing. I think better solution would be
I'm happy to merge this change in, and we can extend the functionality in the future, just want to ensure you aware of the restriction above. /ok-to-test |
I agree with @M00nF1sh. I would suggest to name the condition type something like |
@devkid agree with your idea. I will change the name to |
internal/ingress/backend/endpoint.go
Outdated
@@ -146,7 +146,8 @@ func (resolver *endpointResolver) resolveIP(ingress *extensions.Ingress, backend | |||
} | |||
|
|||
conditionType := api.PodConditionType(fmt.Sprintf("target-health.alb.ingress.k8s.aws/%s_%s_%s", ingress.Name, backend.ServiceName, backend.ServicePort.String())) | |||
|
|||
// new condition type uses a static string | |||
staticConditionType := api.PodConditionType("target-health.alb.ingress.k8s.aws/load-balancer-any-tg-ready") |
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.
Can you please make this a global const like in targethealth.go
?
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.
will do.
i adjust this PR to make this two readinessGate to work together :D |
- existing pod condition type has the format "target-health.alb.ingress.k8s.aws/<INGRESS_NAME>_<SERVICE_NAME>_<SERVICE_PORT>". This can exceed the max. allowed length if the <INGRESS_NAME>_<SERVICE_NAME>_<SERVICE_PORT> part exceeds 63 characters. To work around this problem, added support for static pod condition type string. The string is "target-health.alb.ingress.k8s.aws/load-balancer-tg-ready" - both old and new format are supported. Only one should be used at a time though. Testing done - verified old format still works - verified new format works as well - verified a deployment transition from old format to new format
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: M00nF1sh, sandeepbhojwani The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
fix for pod condition type too long
Testing done
resolves #1217