Skip to content

have generator support schema validation #56

@rfuwa14

Description

@rfuwa14

/pkgs/generators/k8s/k8s.nix barely supports the JsonSchema validation (only required field is parsed). While the k8s native schema doesn't add that much of validation in their schema (as of v1.34.0), some CRDs define these validation values. It is nice nixidy support these and integrated into the module.

NOTE

I wonder if /pkgs/generators/k8s/k8s.nix and /pkgs/generators/crd/jsonschema.nix can be merged into a single generator. Major of their logic is shared. And at this point, I think it is easier to manage the generator code in another language like python.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions