reuse PVC protection admission plugin for PV protection

This commit is contained in:
NickrenREN
2018-01-24 18:21:35 +08:00
parent 2a2f88b939
commit cbfa0cc85a
10 changed files with 219 additions and 125 deletions

View File

@@ -19,4 +19,7 @@ package util
const (
// Name of finalizer on PVCs that have a running pod.
PVCProtectionFinalizer = "kubernetes.io/pvc-protection"
// Name of finalizer on PVs that are bound by PVCs
PVProtectionFinalizer = "kubernetes.io/pv-protection"
)