In #657 a change with saving and restoring the namespace was added to KubeSpawner, to avoid some issues caused by Jupyterhub restart.
But namespace is substituted in dns_name_template, so dns_name should be saved and restored as well.
Other options in __init__ support only hubnamespace substutution, not pod namespace, so there is no need to preserve it between restart.
In #657 a change with saving and restoring the namespace was added to KubeSpawner, to avoid some issues caused by Jupyterhub restart. But
namespace
is substituted indns_name_template
, sodns_name
should be saved and restored as well.Other options in
__init__
support onlyhubnamespace
substutution, not pod namespace, so there is no need to preserve it between restart.