warnning on relaim policy when it is Recycle
This commit is contained in:
@@ -174,6 +174,17 @@ func TestWarnings(t *testing.T) {
|
||||
`spec.nodeAffinity.required.nodeSelectorTerms[0].matchExpressions[0].key: beta.kubernetes.io/os is deprecated since v1.14; use "kubernetes.io/os" instead`,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "PersistentVolumeReclaimRecycle deprecation warning",
|
||||
template: &api.PersistentVolume{
|
||||
Spec: api.PersistentVolumeSpec{
|
||||
PersistentVolumeReclaimPolicy: api.PersistentVolumeReclaimRecycle,
|
||||
},
|
||||
},
|
||||
expected: []string{
|
||||
`spec.persistentVolumeReclaimPolicy: The Recycle reclaim policy is deprecated. Instead, the recommended approach is to use dynamic provisioning.`,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "PV CephFS deprecation warning",
|
||||
template: &api.PersistentVolume{
|
||||
|
Reference in New Issue
Block a user