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

Allow changing the k8s target version in Cargo #4166

Merged
merged 3 commits into from
Jan 27, 2022

Conversation

antgamdia
Copy link
Contributor

Description of the change

This trivial PR just extracts the version used in the k8s-openapi dependency apart into a Cargo feature. This way any piece of code depending on pinniped-proxy can modify the target k8s platform simply compiling it with a feature.
Defaulting to the same value it has.

Benefits

Pinniped-proxy will be simpler to configure when used as a dependency.

Possible drawbacks

N/A

Applicable issues

N/A

Additional information

I've added also a note in the release docs talking about then kubernetes-related deps.

Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
Comment on lines +47 to +48
> **NOTE**: at least one of those `GKE_STABLE_VERSION_XX` or `GKE_REGULAR_VERSION_XX` versions _must_ match the Kubernetes-related dependencies in [Go](../../go.mod) and [Rust](../../cmd/pinniped-proxy/Cargo.toml).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We aren't actually following this recommendation indeed (we already had the v1.22 in some places, so as soon as GKE bumps it up as well, we will comply again)

cmd/pinniped-proxy/Cargo.toml Show resolved Hide resolved
Co-authored-by: Michael Nelson <absoludity@gmail.com>
@antgamdia antgamdia merged commit cc99cfd into vmware-tanzu:main Jan 27, 2022
@antgamdia antgamdia deleted the cargoFeatures branch January 27, 2022 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants