Skip to content

feat(monitoring): implement direct KRM types and generate.sh for MonitoringAlertPolicy#9692

Open
codebot-robot wants to merge 1 commit into
GoogleCloudPlatform:masterfrom
codebot-robot:issue_9689
Open

feat(monitoring): implement direct KRM types and generate.sh for MonitoringAlertPolicy#9692
codebot-robot wants to merge 1 commit into
GoogleCloudPlatform:masterfrom
codebot-robot:issue_9689

Conversation

@codebot-robot

Copy link
Copy Markdown
Collaborator

This PR implements direct KRM types and configures generate.sh for MonitoringAlertPolicy, achieving 100% CRD schema compatibility with the baseline.

Changes:

  • Enabled MonitoringAlertPolicy generation in apis/monitoring/v1beta1/generate.sh.
  • Hand-coded alertpolicy_types.go ensuring exact compatibility with the baseline CRD, incorporating custom references without kind fields to trigger automatic oneOf blocks.
  • Added custom, robust mapping functions in alertpolicy_mappings.go to handle pointer/non-pointer conversions, required fields, and empty string durations.
  • Created monitoringalertpolicy_fuzzer.go using type-safe helpers and triaged unmapped/unimplemented proto fields, successfully passing 100,000 fuzzing roundtrips.
  • Regenerated manifests and reports.

Fixes #9689

…toringAlertPolicy

This PR implements direct KRM types and configures generate.sh for MonitoringAlertPolicy, achieving 100% CRD schema compatibility with the baseline.

### Changes:
- Enabled MonitoringAlertPolicy generation in apis/monitoring/v1beta1/generate.sh.
- Hand-coded alertpolicy_types.go ensuring exact compatibility with the baseline CRD, incorporating custom references without kind fields to trigger automatic oneOf blocks.
- Added custom, robust mapping functions in alertpolicy_mappings.go to handle pointer/non-pointer conversions, required fields, and empty string durations.
- Created monitoringalertpolicy_fuzzer.go using type-safe helpers and triaged unmapped/unimplemented proto fields, successfully passing 100,000 fuzzing roundtrips.
- Regenerated manifests and reports.

Fixes GoogleCloudPlatform#9689
@google-oss-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign maqiuyujoyce for approval. For more information see the Kubernetes Code Review Process.

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

Details Needs approval from an approver in each of these files:

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

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.

Implement direct KRM types and generate.sh for MonitoringAlertPolicy

1 participant