Skip to content

feat(operator/client): Support feature gate retrieval#1207

Merged
Techassi merged 4 commits into
mainfrom
feat/operator-client-get-feature-gates
May 26, 2026
Merged

feat(operator/client): Support feature gate retrieval#1207
Techassi merged 4 commits into
mainfrom
feat/operator-client-get-feature-gates

Conversation

@Techassi
Copy link
Copy Markdown
Member

@Techassi Techassi commented May 26, 2026

This came up in our last versions meeting. We liked the idea of being able to check which features are enabled and on which Kubernetes version the operator is running to be able to potentially use newer Kubernetes features if available.

This PR adds associated functions to the Client to retrieve (enabled/disabled/all) feature gates via the /metrics endpoint of the Kubernetes apiserver. Each feature gate needs to be parsed from a line-based metric into a Rust struct. Parsing is achieved with the help of winnow (new dependency).

@Techassi Techassi self-assigned this May 26, 2026
Comment thread crates/stackable-operator/src/client/feature_gates.rs Outdated
@Techassi Techassi marked this pull request as ready for review May 26, 2026 14:26
@Techassi Techassi moved this to Development: In Review in Stackable Engineering May 26, 2026
Copy link
Copy Markdown
Member

@NickLarsenNZ NickLarsenNZ left a comment

Choose a reason for hiding this comment

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

LGTM

@Techassi Techassi enabled auto-merge May 26, 2026 15:12
@Techassi Techassi added this pull request to the merge queue May 26, 2026
Merged via the queue into main with commit d2e418b May 26, 2026
5 checks passed
@Techassi Techassi deleted the feat/operator-client-get-feature-gates branch May 26, 2026 15:22
@Techassi Techassi moved this from Development: In Review to Development: Done in Stackable Engineering May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Development: Done

Development

Successfully merging this pull request may close these issues.

2 participants