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

Document the spec.hubTemplateOptions.serviceAccountName field #239

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

mprahl
Copy link
Member

@mprahl mprahl commented Aug 26, 2024

Comment on lines 70 to 73
// A service account in the same namespace as the policy to use for all hub template lookups. The service account
// must have list and watch permissions on any object the hub templates lookup. If not specified,
// lookups are restricted to namespaced objects in the same namespace as the policy and the ManagedCluster object
// the policy is propagated to.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// A service account in the same namespace as the policy to use for all hub template lookups. The service account
// must have list and watch permissions on any object the hub templates lookup. If not specified,
// lookups are restricted to namespaced objects in the same namespace as the policy and the ManagedCluster object
// the policy is propagated to.
// ServiceAccountName is the name of a service account in the same namespace as the policy to use for all hub template lookups. The service account
// must have list and watch permissions on any object the hub templates look up. If not specified,
// lookups are restricted to namespaced objects in the same namespace as the policy and the `ManagedCluster` object
// the policy is propagated to.

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 clean this up also? I'm not actually sure what the second part of this is saying about the ManagedCluster object. I think this might be clearer?

lookups are restricted to namespaced objects in the same namespace as the policy and to the ManagedCluster object associated with the propagated policy.

@dhaiducek
Copy link
Member

/hold for reviews

@mprahl
Copy link
Member Author

mprahl commented Aug 26, 2024

Thanks @dhaiducek! Your suggestions sound better.

@mprahl mprahl requested a review from dhaiducek August 26, 2024 14:30
Copy link
Member

@dhaiducek dhaiducek left a comment

Choose a reason for hiding this comment

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

Sorry--I missed re-reviewing this one!

Copy link

openshift-ci bot commented Sep 17, 2024

[APPROVALNOTIFIER] This PR is APPROVED

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

/unhold

@openshift-merge-bot openshift-merge-bot bot merged commit 166702f into open-cluster-management-io:main Sep 17, 2024
13 checks passed
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