mirror of
https://github.com/portainer/portainer.git
synced 2025-07-28 17:59:45 +02:00
fix(volumes): update external labels CE [r8s-108] (#7)
This commit is contained in:
parent
57e10dc911
commit
fd0bc652a9
8 changed files with 10 additions and 8 deletions
|
@ -6,7 +6,7 @@ import KubernetesEventHelper from 'Kubernetes/helpers/eventHelper';
|
|||
import { KubernetesStorageClassAccessPolicies } from 'Kubernetes/models/storage-class/models';
|
||||
import KubernetesNamespaceHelper from 'Kubernetes/helpers/namespaceHelper';
|
||||
import { confirmRedeploy } from '@/react/kubernetes/volumes/ItemView/ConfirmRedeployModal';
|
||||
import { isVolumeUsed, isVolumeExternal } from '@/react/kubernetes/volumes/utils';
|
||||
import { isVolumeUsed } from '@/react/kubernetes/volumes/utils';
|
||||
|
||||
class KubernetesVolumeController {
|
||||
/* @ngInject */
|
||||
|
@ -50,7 +50,7 @@ class KubernetesVolumeController {
|
|||
}
|
||||
|
||||
isExternalVolume() {
|
||||
return isVolumeExternal(this.volume);
|
||||
return !this.volume.PersistentVolumeClaim.ApplicationOwner;
|
||||
}
|
||||
|
||||
isSystemNamespace() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue