Skip to content

Commit

Permalink
Merge pull request #694 from yuvipanda/server-name
Browse files Browse the repository at this point in the history
Escape pod label `hub.jupyter.org/servername` (pod annotation remains unescaped)
  • Loading branch information
consideRatio committed Jan 12, 2023
2 parents ecac0b0 + 230fd92 commit 8942af4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kubespawner/spawner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1913,7 +1913,9 @@ def _build_pod_labels(self, extra_labels):
labels.update(
{
'component': self.component_label,
'hub.jupyter.org/servername': self.name,
'hub.jupyter.org/servername': escapism.escape(
self.name, safe=self.safe_chars, escape_char='-'
).lower(),
}
)
return labels
Expand Down

0 comments on commit 8942af4

Please sign in to comment.