mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-01 03:36:04 +08:00
feat: add Insecure Skip TLS Verify checkbox in cluster-registration-url setting (#716)
* feat: add Insecure Skip TLS Verify checkbox Signed-off-by: Andy Lee <andy.lee@suse.com> * refactor: set insecureSkipTLSVerify default to false Signed-off-by: Andy Lee <andy.lee@suse.com> * fix: conflict Signed-off-by: Andy Lee <andy.lee@suse.com> * refactor: remove unneeded change Signed-off-by: Andy Lee <andy.lee@suse.com> * fix: get the feature flag in data() Signed-off-by: Andy Lee <andy.lee@suse.com> * refactor: make data logic simpler Signed-off-by: Andy Lee <andy.lee@suse.com> * refactor: put tip in info banner Signed-off-by: Andy Lee <andy.lee@suse.com> --------- Signed-off-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
@@ -52,11 +52,19 @@ export default class HciSetting extends HarvesterResource {
|
||||
});
|
||||
}
|
||||
|
||||
get clusterRegistrationTLSVerifyFeatureEnabled() {
|
||||
return this.$rootGetters['harvester-common/getFeatureEnabled']('clusterRegistrationTLSVerify');
|
||||
}
|
||||
|
||||
get customValue() {
|
||||
if (this.metadata.name === HCI_SETTING.STORAGE_NETWORK) {
|
||||
try {
|
||||
return JSON.stringify(JSON.parse(this.value), null, 2);
|
||||
} catch (e) {}
|
||||
} else if (this.metadata.name === HCI_SETTING.CLUSTER_REGISTRATION_URL) {
|
||||
try {
|
||||
return this.clusterRegistrationTLSVerifyFeatureEnabled ? JSON.stringify(JSON.parse(this.value), null, 2) : this.value;
|
||||
} catch (e) {}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user