open-cluster-management-io / addon-framework

addon apis
Apache License 2.0
23 stars 40 forks source link

add a helper func for setting agent install namespace from addon deployment config #205

Closed zhujian7 closed 1 year ago

zhujian7 commented 1 year ago

Add a helper func for setting the registrationOption.AgentInstallNamespace, This helper func will try to get the namespace from the addon deployment config. If the addon does not support addon deployment config or there is no matched addon deployment config, it will return an empty string.

zhujian7 commented 1 year ago

/cc @qiujian16

openshift-ci[bot] commented 1 year ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: qiujian16, zhujian7

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/open-cluster-management-io/addon-framework/blob/main/OWNERS)~~ [qiujian16] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment