open-cluster-management-io / policy-generator-plugin

A Kustomize generator plugin to generate Open Cluster Management policies
Apache License 2.0
29 stars 31 forks source link

Add-support-for-the-metadataComplianceType-field #43

Closed ChunxiAlexLuo closed 2 years ago

ChunxiAlexLuo commented 2 years ago

https://github.com/stolostron/backlog/issues/19517

Signed-off-by: Chunxi Luo chuluo@redhat.com

ChunxiAlexLuo commented 2 years ago

@mprahl So two updates: 1) add metadataComplianceType under policyDefault, 2) only add non empty metadataComplianceType into objTemplate, if all metadataComplianceType fileds are unset, then there is no metadataComplianceType in the final output

updated all test cases for these

openshift-ci[bot] commented 2 years ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ChunxiAlexLuo, mprahl

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](https://github.com/stolostron/policy-generator-plugin/blob/main/OWNERS)~~ [ChunxiAlexLuo,mprahl] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment