Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
K8s resolver for the gRPC client #4190
K8s resolver for the gRPC client #4190
Changes from 13 commits
f10763a
dc18a10
2c149c6
e85fdb7
000411c
4f69e6e
621ea23
96c662a
1f1f034
aa938d1
fbce105
c1f00d2
5fffa91
5bcd1bf
8bbcd21
c6fbc6b
b0ab79e
6c4dc83
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 558 in flytepropeller/pkg/controller/controller.go
Codecov / codecov/patch
flytepropeller/pkg/controller/controller.go#L557-L558
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.
Nit: I think this is called scheme.
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.
done
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.
Do you want to pass ctx here and use it in .Build() ?
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.
updated it
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.
Should we set namespace to
default
if parts==1 ?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.
it will use the namespace where agent is at if the namespace is None
Check warning on line 93 in flytestdlib/resolver/k8s_resolver.go
Codecov / codecov/patch
flytestdlib/resolver/k8s_resolver.go#L92-L93
Check warning on line 110 in flytestdlib/resolver/k8s_resolver.go
Codecov / codecov/patch
flytestdlib/resolver/k8s_resolver.go#L109-L110
Check warning on line 124 in flytestdlib/resolver/k8s_resolver.go
Codecov / codecov/patch
flytestdlib/resolver/k8s_resolver.go#L124
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.
Is cc.UpdateState thread safe? do we need to lock its usage in someway?
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.
gRPC client uses lock under the hood. https://github.com/grpc/grpc-go/blob/e14d5831b59b0f46853d076640ae85f964164b37/clientconn.go#L829
Check warning on line 149 in flytestdlib/resolver/k8s_resolver.go
Codecov / codecov/patch
flytestdlib/resolver/k8s_resolver.go#L148-L149
Check warning on line 160 in flytestdlib/resolver/k8s_resolver.go
Codecov / codecov/patch
flytestdlib/resolver/k8s_resolver.go#L158-L160
Check warning on line 170 in flytestdlib/resolver/k8s_resolver.go
Codecov / codecov/patch
flytestdlib/resolver/k8s_resolver.go#L168-L170
Check warning on line 172 in flytestdlib/resolver/k8s_resolver.go
Codecov / codecov/patch
flytestdlib/resolver/k8s_resolver.go#L172