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

fix: port in probe url now gets parsed properly #501

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

ffforest
Copy link
Contributor

@ffforest ffforest commented Aug 30, 2023

What type of PR is this?

/kind bug

What this PR does / why we need it:

The URL in Probe model gets parsed and put into the corev1.Probe object.
The port gets parsed by intstr.FromString(u.Port()) which ends up being a string in the rendered yaml:
image
This is rejected by Kubernetes because for a string port (as the port name) it expects at least one letter in it:
image
intstr.Parse() will attempt to convert the string to an int first which is what we want.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?


Additional documentation e.g., design docs, usage docs, etc.:


@ffforest ffforest added the kind/bug Something isn't working label Aug 30, 2023
@ffforest ffforest requested a review from adohe August 30, 2023 08:09
Copy link
Contributor

@adohe adohe left a comment

Choose a reason for hiding this comment

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

/lgtm

@adohe adohe merged commit bc00ce0 into KusionStack:main Aug 30, 2023
8 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Aug 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants