mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
fix(k8s) Adding a Kube app does not allow Global to be set after removing persisted folder EE-563 (#5143)
Co-authored-by: Simon Meng <simon.meng@portainer.io>
This commit is contained in:
parent
d7bc4f9b96
commit
296ecc5960
1 changed files with 1 additions and 1 deletions
|
@ -480,7 +480,7 @@ class KubernetesCreateApplicationController {
|
||||||
const hasRWOOnly = KubernetesApplicationHelper.hasRWOOnly(this.formValues);
|
const hasRWOOnly = KubernetesApplicationHelper.hasRWOOnly(this.formValues);
|
||||||
const isIsolated = this.formValues.DataAccessPolicy === this.ApplicationDataAccessPolicies.ISOLATED;
|
const isIsolated = this.formValues.DataAccessPolicy === this.ApplicationDataAccessPolicies.ISOLATED;
|
||||||
|
|
||||||
if ((hasFolders && hasRWOOnly) || isIsolated) {
|
if (hasFolders && (hasRWOOnly || isIsolated)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue