Skip to content

xDS interop: Handle the edge case when rand deployment_id is all nums#30901

Merged
sergiitk merged 1 commit intogrpc:masterfrom
sergiitk:xds-interop-deployment-id-fun
Sep 8, 2022
Merged

xDS interop: Handle the edge case when rand deployment_id is all nums#30901
sergiitk merged 1 commit intogrpc:masterfrom
sergiitk:xds-interop-deployment-id-fun

Conversation

@sergiitk
Copy link
Copy Markdown
Member

@sergiitk sergiitk commented Sep 8, 2022

Fun edge case: when rand_string() happen to generate numbers only, yaml interprets deployment_id label value as an integer, but k8s expects label values to be strings.

K8s responds with a barely readable 400 Bad Request error: ReadString: expects \" or n, but found 9, error found in #10 byte of ...|ent_id.

Prepending deployment name forces deployment_id into a string, as well as it's just a better description.

ref b/245709149

cc @zasweq

Fun edge case: when `rand_string()` happen to generate numbers only,
yaml interprets `deployment_id` label value as an integer,
but k8s expects label values to be strings.

K8s responds with a barely readable 400 Bad Request error:
`ReadString: expects \" or n, but found 9, error found in #10 byte of ...|ent_id`.

Prepending deployment name forces deployment_id into a string,
as well as it's just a better description.
@sergiitk sergiitk added release notes: no Indicates if PR should not be in release notes area/psm interop labels Sep 8, 2022
@sergiitk sergiitk requested a review from gnossen September 8, 2022 19:31
@sergiitk
Copy link
Copy Markdown
Member Author

sergiitk commented Sep 8, 2022

@sergiitk sergiitk merged commit 326a88a into grpc:master Sep 8, 2022
@sergiitk sergiitk deleted the xds-interop-deployment-id-fun branch September 8, 2022 20:45
@copybara-service copybara-service bot added the imported Specifies if the PR has been imported to the internal repository label Sep 9, 2022
sergiitk added a commit to sergiitk/grpc that referenced this pull request Dec 8, 2023
…grpc#30901)

Fun edge case: when `rand_string()` happen to generate numbers only,
yaml interprets `deployment_id` label value as an integer,
but k8s expects label values to be strings.

K8s responds with a barely readable 400 Bad Request error:
`ReadString: expects \" or n, but found 9, error found in #10 byte of ...|ent_id`.

Prepending deployment name forces deployment_id into a string,
as well as it's just a better description.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/psm interop imported Specifies if the PR has been imported to the internal repository release notes: no Indicates if PR should not be in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants