Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vm-import-controller Change StorageClassName to StorageClass #1008

Open
wants to merge 1 commit into
base: release-harvester-v1.2.2-rc1
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const VALUES_YAML_KEYS = [
'resources.limits.memory',
'pvcClaim.enabled',
'pvcClaim.size',
'pvcClaim.storageClassName',
'pvcClaim.storageClass',
];

const DEFAULT_VALUES = {
Expand All @@ -28,7 +28,7 @@ const DEFAULT_VALUES = {
'resources.limits.memory': '4Gi',
'pvcClaim.enabled': false,
'pvcClaim.size': '200Gi',
'pvcClaim.storageClassName': '',
'pvcClaim.storageClass': '',
};

export default {
Expand Down Expand Up @@ -108,7 +108,7 @@ export default {
const inStore = this.$store.getters['currentProduct'].inStore;
const defaultStorage = this.$store.getters[`${ inStore }/all`](STORAGE_CLASS).find( s => s.isDefault);

this.$set(this.valuesContent.pvcClaim, 'storageClassName', this.valuesContent?.pvcClaim?.storageClassName || defaultStorage?.metadata?.name || 'longhorn');
this.$set(this.valuesContent.pvcClaim, 'storageClass', this.valuesContent?.pvcClaim?.storageClass || defaultStorage?.metadata?.name || 'longhorn');

this.update();
},
Expand Down Expand Up @@ -208,7 +208,7 @@ export default {
</div>
<div class="col span-6">
<LabeledSelect
v-model="valuesContent.pvcClaim.storageClassName"
v-model="valuesContent.pvcClaim.storageClass"
:options="storageClassOptions"
:label="t('harvester.storage.storageClass.label')"
:mode="mode"
Expand Down
Loading