diff --git a/kubespawner/spawner.py b/kubespawner/spawner.py index d0dee0af..585b52b1 100644 --- a/kubespawner/spawner.py +++ b/kubespawner/spawner.py @@ -3807,7 +3807,7 @@ async def delete_forever(self): self.log.info(f"Not deleting pvc for {log_name}: {self.pvc_name}") return - if self.name and '{servername}' not in self.pvc_name_template: + if self.name and '{user_server}' not in self.pvc_name_template: # named server has the same PVC as the default server # don't delete the default server's PVC! self.log.info(