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

add validations to crd with enums #100

Merged
merged 2 commits into from
Feb 26, 2025
Merged

Conversation

Maanas-23
Copy link
Collaborator

@Maanas-23 Maanas-23 commented Feb 22, 2025

Description

Added enum validations to the ElastiService CRD:

  • scaleTargetRef.kind: Restricts to "deployments" or "rollouts"
  • autoscaler.type: Restricts to "hpa" or "keda"
  • triggers[].type: Restricts to "prometheus"
  • scaleTargetRef.apiVersion: Restricts to "apps/v1" or "argoproj.io/v1alpha1"

Fixes TT-11339

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.

Checklist:

  • I have performed a self-review of my own code

@Maanas-23 Maanas-23 merged commit 689e0f7 into main Feb 26, 2025
7 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