mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-13 13:11:43 +00:00
feat: add feature flag
Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com>
This commit is contained in:
parent
375127a78a
commit
72c6741af1
@ -71,6 +71,10 @@ export default {
|
||||
return this.$store.getters['harvester/schemaFor'](HCI.UPGRADE_LOG);
|
||||
},
|
||||
|
||||
skipSingleReplicaDetachedVolFeatureEnabled() {
|
||||
return this.$store.getters['harvester-common/getFeatureEnabled']('skipSingleReplicaDetachedVol');
|
||||
},
|
||||
|
||||
releaseLink() {
|
||||
return `https://github.com/harvester/harvester/releases/tag/${ this.version }`;
|
||||
}
|
||||
@ -107,7 +111,7 @@ export default {
|
||||
spec: { version: this.version }
|
||||
};
|
||||
|
||||
if (this.skipSingleReplicaDetachedVol) {
|
||||
if (this.skipSingleReplicaDetachedVolFeatureEnabled && this.skipSingleReplicaDetachedVol) {
|
||||
upgradeValue.metadata.annotations =
|
||||
{ [HCI_ANNOTATIONS.SKIP_SINGLE_REPLICA_DETACHED_VOL]: JSON.stringify(this.skipSingleReplicaDetachedVol) };
|
||||
}
|
||||
@ -198,7 +202,10 @@ export default {
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="mb-5">
|
||||
<div
|
||||
v-if="skipSingleReplicaDetachedVolFeatureEnabled"
|
||||
class="mb-5"
|
||||
>
|
||||
<Checkbox
|
||||
v-model:value="skipSingleReplicaDetachedVol"
|
||||
class="check"
|
||||
|
||||
@ -48,7 +48,8 @@ const featuresV142 = [
|
||||
// TODO: add v1.5.0 official release note
|
||||
const featuresV150 = [
|
||||
...featuresV142,
|
||||
'tpmPersistentState'
|
||||
'tpmPersistentState',
|
||||
'skipSingleReplicaDetachedVol'
|
||||
];
|
||||
|
||||
export const RELEASE_FEATURES = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user