1515import kubernetes .config
1616from kubernetes import client , watch
1717from tornado .log import app_log
18- from traitlets import Any , Bool , Dict , Integer , Unicode , default
18+ from traitlets import Any , Bool , CUnicode , Dict , Integer , Unicode , default
1919from traitlets .config import LoggingConfigurable
2020
2121from .utils import KUBE_REQUEST_TIMEOUT , rendezvous_rank
@@ -58,7 +58,6 @@ class BuildExecutor(LoggingConfigurable):
5858 """
5959
6060 q = Any (
61- allow_none = True ,
6261 help = "Queue that receives progress events after the build has been submitted" ,
6362 )
6463
@@ -75,7 +74,8 @@ class BuildExecutor(LoggingConfigurable):
7574
7675 image_name = Unicode (help = "Full name of the image to build. Includes the tag." )
7776
78- git_credentials = Any (
77+ git_credentials = CUnicode (
78+ "" ,
7979 allow_none = True ,
8080 help = (
8181 "Git credentials to use when cloning the repository, passed via the GIT_CREDENTIAL_ENV environment variable."
@@ -86,8 +86,9 @@ class BuildExecutor(LoggingConfigurable):
8686 )
8787
8888 push_secret = Unicode (
89+ "" ,
8990 allow_none = True ,
90- help = "Implementation dependent name of a secret for pushing image to a registry." ,
91+ help = "Implementation dependent secret for pushing image to a registry." ,
9192 config = True ,
9293 )
9394
@@ -96,7 +97,7 @@ class BuildExecutor(LoggingConfigurable):
9697 )
9798
9899 appendix = Unicode (
99- allow_none = True ,
100+ "" ,
100101 help = "Appendix to be added at the end of the Dockerfile used by repo2docker." ,
101102 config = True ,
102103 )
0 commit comments