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

feat: improve k8s resource emulator with schema constraints support #57

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

a-hilaly
Copy link
Member

  • Add handling to skip common Kubernetes top-level fields (apiVersion, kind, metadata)
  • Implement min/max constraints for number and integer field generation
  • Respect minItems/maxItems constraints for array generation
  • Refactor CR generation logic for better clarity and maintainability

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ack-prow ack-prow bot requested review from michaelhtm and TiberiuGC October 23, 2024 02:55
@ack-prow ack-prow bot added the approved label Oct 23, 2024
- Add handling to skip common Kubernetes top-level fields (`apiVersion`,
  `kind`, `metadata`)
- Implement min/max constraints for number and integer field generation
- Respect `minItems`/`maxItems` constraints for array generation
- Refactor CR generation logic for better clarity and maintainability
Copy link
Contributor

@michaelhtm michaelhtm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@ack-prow ack-prow bot added the lgtm label Oct 23, 2024
Copy link

ack-prow bot commented Oct 23, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: a-hilaly, michaelhtm

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [a-hilaly,michaelhtm]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ack-prow ack-prow bot merged commit 0503c42 into main Oct 23, 2024
4 checks passed
@a-hilaly a-hilaly deleted the a-hilaly/emulator branch October 24, 2024 03:56
a-hilaly added a commit that referenced this pull request Nov 12, 2024
)

- Add handling to skip common Kubernetes top-level fields (`apiVersion`, `kind`, `metadata`)
- Implement min/max constraints for number and integer field generation
- Respect `minItems`/`maxItems` constraints for array generation
- Refactor CR generation logic for better clarity and maintainability

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
a-hilaly added a commit that referenced this pull request Nov 12, 2024
)

- Add handling to skip common Kubernetes top-level fields (`apiVersion`, `kind`, `metadata`)
- Implement min/max constraints for number and integer field generation
- Respect `minItems`/`maxItems` constraints for array generation
- Refactor CR generation logic for better clarity and maintainability

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
a-hilaly added a commit that referenced this pull request Nov 12, 2024
)

- Add handling to skip common Kubernetes top-level fields (`apiVersion`, `kind`, `metadata`)
- Implement min/max constraints for number and integer field generation
- Respect `minItems`/`maxItems` constraints for array generation
- Refactor CR generation logic for better clarity and maintainability

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants