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

CUE validation/generation, add cli flags, templates, and update README #5

Merged
merged 6 commits into from
Nov 25, 2023

Conversation

santoshkal
Copy link
Collaborator

@santoshkal santoshkal commented Oct 31, 2023

This PR builds upon the existing version 0.0.1 and enhances the functionality of the Genval tool. The following features have been incorporated through this PR:

  • Introduction of CUE for validating Kubernetes and CRDs.
  • Currently, CUE validation/generation is supported for the following technologies:
    • Kubernetes
    • ArgoCD
    • TektonCD
    • Crossplane/Upbound
    • ClusterAPI
  • Removal of policies embedded within the Go binary, allowing users to input policies and data from local files or remote sources like Git repositories.
  • Addition of a mode flag to switch between two workflows: container, which is used for validating and generating Dockerfiles, and cue, which is for handling Kubernetes-related configurations.
  • In container mode, the introduction of CLI flags for specifying input via --reqinput, policies through --inputpolicy, and output policies with --outpolicy. Similarly, in cue mode, the --policy flag has been added.
  • In cue mode, users can now provide multiple CUE schemas for the validation and generation of Kubernetes manifests.

Additionally, this PR includes updates in the form of more unit and integration tests. README has been updated to include instructions for building and using the Genval tool in both cue and container modes.

Note to reviewers:
You may ignore files in the ./cue.mod directory, as these are Cue schemas generated by CUE tool. It has more than 1400 files generated by Cue.

Signed-off-by: santoshkal <ksantosh@intelops.dev>
Signed-off-by: santoshkal <ksantosh@intelops.dev>
Signed-off-by: santoshkal <ksantosh@intelops.dev>
…ow document and link it in README

Signed-off-by: santoshkal <ksantosh@intelops.dev>
Signed-off-by: santoshkal <ksantosh@intelops.dev>
@devopstoday11
Copy link
Contributor

@pratikjagrut @mahendraintelops please review this PR

Signed-off-by: santoshkal <ksantosh@intelops.dev>
@devopstoday11 devopstoday11 merged commit f56003b into main Nov 25, 2023
5 checks passed
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.

2 participants