Skip to content

poc: add CELLanguage constant to RuleLanguages#170

Closed
Sanchit2662 wants to merge 1 commit into
kubescape:mainfrom
Sanchit2662:poc/cel-language-constant
Closed

poc: add CELLanguage constant to RuleLanguages#170
Sanchit2662 wants to merge 1 commit into
kubescape:mainfrom
Sanchit2662:poc/cel-language-constant

Conversation

@Sanchit2662
Copy link
Copy Markdown
Contributor

so this is a small poc for the CEL engine project I'm working on as part of the LFX mentorship.

the change itself is pretty simple. I just added a new constant CELLanguage = "CEL" to the RuleLanguages type in reporthandling/datastructures.go. right now only RegoLanguage and RegoLanguage2 exist there, and the dispatcher in kubescape's opaprocessor uses this type to decide which evaluator to run. so before we can even think about writing a CEL evaluator, this constant needs to exist.

I also added two tests to make sure the value is correct and that it doesn't accidentally match either of the Rego constants. nothing fancy, just making sure the basics are solid.

this is not production ready at all, just laying the foundation. the actual wiring into the dispatcher and building out the evaluator comes later.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 13, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 4d7cf015-032a-4064-b05b-44ab5dda717f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

1 participant