Conversation
Add a --kubernetes-version command-line option and pass the selected version to both built-in and CRD detectors. Document the option and its required upstream registry format so editor configurations can target a specific Kubernetes release.
Update the built-in Kubernetes schema release to v1.36.0. Keep the CLI help and usage examples aligned with the default, which is available in the upstream strict standalone schema registry.
Add --schema-dir for downloaded and user-provided schema files while keeping generated composite and CRD wrapper files in the platform cache. Cover both lookup and composite generation so local schemas remain reusable without generated artifacts being written beside them.
Add --offline to prohibit schema downloads while continuing to use local schemas and generated composite cache files. Return a distinct missing-local-schema error so Kubernetes detectors can emit explicit warnings and leave only unavailable resources unmapped. Document the expected local registry layout and warning behavior.
This file contains hidden or 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
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.
Hi, thanks for this project! Great idea, solves a very painful problem.
I started to incorporate it into my Nix config, where I already have all my schemas tracked as flake inputs, so I made a few changes that I thought might be useful to others - let me know what you think.
--kubernetes-version--schema-dir--offlineflag to disable downloads and only use local schemasMain motivation here is supporting hermetic schema inputs, and increasing flexibility without needing code changes.