Closed zhujian7 closed 1 year ago
/hold
/unhold /assign @zhiweiyin318 /cc @qiujian16
/lgtm
/approve /lgtm
[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
Make the addon framework support override addon agents' images by the cluster's annotation. If the managedCluster has annotation
open-cluster-management.io/image-registries
in format:For example:
If the addon manager uses the GetAgentImageValues func in the addon manager like:
and use the "global.imageOverrides.helloWorldHelm" placeholder in the agent manifests yaml like:
The image will be overridden to "quay.io/ocm/addon-examples"
Note: if the addon is also configured by the addonDeploymentConfig to override the image, the addonDeploymentConfig will take precedence over this annotation.