-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
crds(feat): add gateway grpcroute
crd
#12507
Merged
olix0r
merged 39 commits into
linkerd:main
from
the-wondersmith:crds-feat-add-gateway-grpcroute
May 6, 2024
Merged
crds(feat): add gateway grpcroute
crd
#12507
olix0r
merged 39 commits into
linkerd:main
from
the-wondersmith:crds-feat-add-gateway-grpcroute
May 6, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
the-wondersmith
force-pushed
the
crds-feat-add-gateway-grpcroute
branch
from
April 25, 2024 21:30
40651f3
to
aa8b52d
Compare
olix0r
reviewed
Apr 26, 2024
Signed-off-by: Mark S <[email protected]>
Signed-off-by: Mark S <[email protected]>
Signed-off-by: Mark S <[email protected]>
…erd#12503) Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4.1.6 to 4.1.7. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](actions/download-artifact@9c19ed7...65a9edc) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Mark S <[email protected]>
Bumps [zeroize](https://github.com/RustCrypto/utils) from 1.7.0 to 1.8.0. - [Commits](RustCrypto/utils@zeroize-v1.7.0...zeroize-v1.8.0) --- updated-dependencies: - dependency-name: zeroize dependency-type: indirect update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Mark S <[email protected]>
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.3 to 4.1.4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@1d96c77...0ad4b8f) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Mark S <[email protected]>
Signed-off-by: Mark S <[email protected]>
Bumps [lock_api](https://github.com/Amanieu/parking_lot) from 0.4.11 to 0.4.12. - [Changelog](https://github.com/Amanieu/parking_lot/blob/master/CHANGELOG.md) - [Commits](Amanieu/parking_lot@lock_api-0.4.11...lock_api-0.4.12) --- updated-dependencies: - dependency-name: lock_api dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Mark S <[email protected]>
Bumps [parking_lot](https://github.com/Amanieu/parking_lot) from 0.12.1 to 0.12.2. - [Changelog](https://github.com/Amanieu/parking_lot/blob/master/CHANGELOG.md) - [Commits](Amanieu/parking_lot@0.12.1...0.12.2) --- updated-dependencies: - dependency-name: parking_lot dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Mark S <[email protected]>
…inkerd#12500) Subject Fixes a bug where headless endpoint mirrors get cleaned up during GC Problem When GC is triggered (which also happens at startup or when the link watch disconnects), the service mirror controller attempts to look for services that can be GC'ed. This is done by looping through the local mirrored services on the cluster, then extracting the name of the original service in the remote (by dropping the target name suffix). However, this check doesn't account for the headless endpoint service mirrors (the per pod cluster IP services). For example, if you have nginx-svc in the west cluster and two replicas, the source cluster will end up with nginx-svc-west, nginx-set-0-west and nginx-set-1-west. The logic would then parse the resource name for the latter two services as nginx-set-0 and nginx-set-1 which won't exist on the remote and ends up deleting them as part of GC. The next sync would recreate those mirrors but you end up with downtime. Solution For those cases, instead of parsing the remote resource from the local service name, retrieve the info from the `mirror.linkerd.io/headless-mirror-svc-name` label. Validation Unit tests Fixes linkerd#12499 Signed-off-by: Marwan Ahmed <[email protected]> Signed-off-by: Mark S <[email protected]>
Closes linkerd#12395 Failing to iterate over init containers as well as regular containers for finding the proxy in various parts of the code when the proxy is injected as a native sidecar resulted in: - `Get` Destination API failing in the presence of opaque ports - Failure having the injector detecting already injected pods - Various CLI issues This PR is split into the following commits addressing each issue separately: a8ebe76 - Fix injection check for existing sidecars 44e9625 - Fix 'linkerd uninject' 6269496 - Fix 'linkerd version --proxy' 42dbdad - Fix 'linkerd identity' 39db823 - Fix 'linkerd check' 7359f37 - Fix 'linkerd dg proxy-metrics' f8f73c4 - Fix destination controller Signed-off-by: Mark S <[email protected]>
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.198 to 1.0.199. - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](serde-rs/serde@v1.0.198...v1.0.199) --- updated-dependencies: - dependency-name: serde dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Mark S <[email protected]>
Bumps [rustls](https://github.com/rustls/rustls) from 0.21.11 to 0.21.12. - [Release notes](https://github.com/rustls/rustls/releases) - [Changelog](https://github.com/rustls/rustls/blob/main/CHANGELOG.md) - [Commits](rustls/rustls@v/0.21.11...v/0.21.12) --- updated-dependencies: - dependency-name: rustls dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Mark S <[email protected]>
Bumps [schemars](https://github.com/GREsau/schemars) from 0.8.16 to 0.8.17. - [Release notes](https://github.com/GREsau/schemars/releases) - [Changelog](https://github.com/GREsau/schemars/blob/master/CHANGELOG.md) - [Commits](GREsau/schemars@v0.8.16...v0.8.17) --- updated-dependencies: - dependency-name: schemars dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Mark S <[email protected]>
Bumps [parking_lot_core](https://github.com/Amanieu/parking_lot) from 0.9.9 to 0.9.10. - [Changelog](https://github.com/Amanieu/parking_lot/blob/master/CHANGELOG.md) - [Commits](Amanieu/parking_lot@core-0.9.9...core-0.9.10) --- updated-dependencies: - dependency-name: parking_lot_core dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Mark S <[email protected]>
Signed-off-by: Mark S <[email protected]>
the-wondersmith
force-pushed
the
crds-feat-add-gateway-grpcroute
branch
from
April 29, 2024 13:24
91dc03e
to
65bc2b1
Compare
Signed-off-by: Mark S <[email protected]>
Signed-off-by: Mark S <[email protected]>
Signed-off-by: Mark S <[email protected]>
olix0r
reviewed
May 3, 2024
Signed-off-by: Mark S <[email protected]>
the-wondersmith
force-pushed
the
crds-feat-add-gateway-grpcroute
branch
from
May 3, 2024 19:33
0463918
to
f986037
Compare
olix0r
reviewed
May 3, 2024
olix0r
previously approved these changes
May 3, 2024
olix0r
reviewed
May 3, 2024
charts/linkerd-crds/templates/gateway.networking.k8s.io_grpcroutes.yaml
Outdated
Show resolved
Hide resolved
Signed-off-by: Mark S <[email protected]>
Signed-off-by: Mark S <[email protected]>
adleong
approved these changes
May 6, 2024
olix0r
approved these changes
May 6, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Subject
Kubernetes Gateway API CRDs
Problem
In order to support driving traffic via Gateway
GRPCRoute
resources, the requisite CRD needs to be added to the linkerd-crds.
Solution
HTTPRoute
GRPCRoute
CRD to thelinkerd-crds
templatesUse helm'slookup
function to ensure that installation oflinkerd-crds
does not fail due to pre-existing installation of Gateway API CRDs or cause pre-existing Gateway API CRDs to be "absorbed" into alinkerd-crds
installationValidation
helm install
works as expectedhelm upgrade
works as expectedbin/linkerd install --crds --set enableGrpcRoutes=true
outputs the grpcroute CRD manifestensure bin/linkerd install --crds --set endableGrpcRoutes=true | kubectl apply -f -
correctly installs the grpcroute CRD onto the clustergo test ./... --update
to automatically update any test fixtures that need to be updatedgo test ./...
passesScreenshots
FixesPartially Addresses