Skip to content

Commit 95da3fb

Browse files
feat(pv): pv删除nodeAffinity
1 parent a06d092 commit 95da3fb

File tree

1 file changed

+1
-1
lines changed
  • web/dashboard/src/business/storage/pv/create

1 file changed

+1
-1
lines changed

web/dashboard/src/business/storage/pv/create/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ export default {
213213
} else {
214214
data = this.transformYaml()
215215
}
216-
if (data.spec.nodeAffinity?.required?.nodeSelectorTerms?.length === 0) {
216+
if (!data.spec.nodeAffinity?.required?.nodeSelectorTerms?.length > 0) {
217217
delete data.spec.nodeAffinity
218218
}
219219
this.loading = true

0 commit comments

Comments
 (0)