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 fields to the Policy CRD for policy ordering #49

Conversation

JustinKuli
Copy link
Member

@JustinKuli JustinKuli commented Oct 13, 2022

ObjectDefinition runtime.RawExtension `json:"objectDefinition"`
ObjectDefinition runtime.RawExtension `json:"objectDefinition"`
ExtraDependencies []PolicyDependency `json:"extraDependencies,omitempty"`
IgnorePending bool `json:"ignorePending,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

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

Could you document this field so it shows up in the CRD?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for catching that! I also added some more comments for other fields, somewhat based on the doc at https://access.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.6/html/governance/governance#policy-yaml-structure

api/v1/policy_types.go Outdated Show resolved Hide resolved
api/v1/policy_types.go Outdated Show resolved Hide resolved
@mprahl
Copy link
Member

mprahl commented Oct 14, 2022

This looks great! Just a few nitpicks.

@openshift-ci
Copy link

openshift-ci bot commented Oct 14, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JustinKuli, 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:

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

@dhaiducek
Copy link
Member

@JustinKuli Please also update the CRD in the addon controller, as the sync is currently failing:
https://github.com/open-cluster-management-io/governance-policy-addon-controller/actions/runs/3261608536/jobs/5356888725

JustinKuli added a commit to JustinKuli/governance-policy-addon-controller-1 that referenced this pull request Oct 17, 2022
openshift-merge-robot pushed a commit to open-cluster-management-io/governance-policy-addon-controller that referenced this pull request Oct 17, 2022
magic-mirror-bot bot pushed a commit to stolostron/governance-policy-addon-controller that referenced this pull request Oct 17, 2022
Refs:
 - open-cluster-management-io/governance-policy-propagator#49

Signed-off-by: Justin Kulikauskas <[email protected]>
(cherry picked from commit e62c392d021408d4c50e955ec4bd33bf5002339f)
magic-mirror-bot bot pushed a commit to stolostron/governance-policy-addon-controller that referenced this pull request Oct 17, 2022
Refs:
 - open-cluster-management-io/governance-policy-propagator#49

Signed-off-by: Justin Kulikauskas <[email protected]>
(cherry picked from commit e62c392d021408d4c50e955ec4bd33bf5002339f)
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.

4 participants