Merge pull request #904 from openkitchen/statefulset_fix
FIX: PVC's "Usedby" list irrelavant statefulsets if they are using the same volumeclaimtemplates namemine
commit
8b9b9083b3
|
|
@ -201,7 +201,7 @@ func (s *StatefulSet) Scan(ctx context.Context, gvr, fqn string, wait bool) (Ref
|
|||
})
|
||||
case "v1/persistentvolumeclaims":
|
||||
for _, v := range sts.Spec.VolumeClaimTemplates {
|
||||
if !strings.HasPrefix(n, v.Name) {
|
||||
if !strings.HasPrefix(n, v.Name+"-"+sts.Name) {
|
||||
continue
|
||||
}
|
||||
refs = append(refs, Ref{
|
||||
|
|
|
|||
Loading…
Reference in New Issue