-
Notifications
You must be signed in to change notification settings - Fork 549
[Marketplace] Simplify marketplace setting #5283
[Marketplace] Simplify marketplace setting #5283
Conversation
… auto use config from their prerequisite services
@@ -91,7 +91,24 @@ spec: | |||
- name: WEBPORTAL_PLUGINS | |||
# A raw JSON formatted value is required here. | |||
value: | | |||
{{ cluster_cfg['webportal']['plugins'] }} | |||
[ | |||
{% if cluster_cfg['cluster']['common']['marketplace'] == "true" %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if:
1. The admin deploys marketplace in a previous version of PAI
2. He upgrades PAI to `v1.6.0`
Will there be two duplicate marketplace entries here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, if the old webportal-plugin still in services-configurations.yaml, there will be two duplicate marketplace entries here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I add an optional config to disable the auto-added marketplace-plugin in webportal.
The admin can avoid the duplicate marketplace entries by it.
@@ -7,6 +7,7 @@ cluster: | |||
data-path: "/datastorage" | |||
qos-switch: "{{ env["cfg"]["qos-switch"] | default('false') }}" | |||
docker-data-root: "{{ env['cfg']['docker_data_root'] | default('/mnt/docker') }}" | |||
marketplace: "true" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe marketplace: "false"
?
Or we can turn on marketplace by default, but notify all PAI devs in advance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, set to "false" by default, and add enable_marketplace: false
to config.yaml.
cluster.common.marketplace = "true"
cluster.common.marketplace = "true"
Related issue & test cases: microsoft/openpaimarketplace#209 (comment)