Skip to content

Commit

Permalink
Merge pull request #873 from manics/delete-named-pvc
Browse files Browse the repository at this point in the history
Delete named PVCs if they contain `{user_server}`
  • Loading branch information
consideRatio authored Nov 15, 2024
2 parents d20a65f + d11546e commit 5ac45e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kubespawner/spawner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 5ac45e9

Please sign in to comment.