-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add optional api-server prefix #1126
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 2 files at r1.
Reviewable status: 1 of 2 files reviewed, 1 unresolved discussion (waiting on @yehiyam)
core/api-server/config/main/config.base.js, line 56 at r1 (raw file):
path: process.env.BASE_URL_PATH? path.join(config.ingressPrefix, process.env.BASE_URL_PATH): config.ingressPrefix
Writing this is the same?
path: path.join(config.ingressPrefix, process.env.BASE_URL_PATH || '')
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 1 of 3 files reviewed, 1 unresolved discussion (waiting on @nassiharel)
core/api-server/config/main/config.base.js, line 56 at r1 (raw file):
Previously, NassiHarel (Nassi Harel) wrote…
path: process.env.BASE_URL_PATH? path.join(config.ingressPrefix, process.env.BASE_URL_PATH): config.ingressPrefix
Writing this is the same?
path: path.join(config.ingressPrefix, process.env.BASE_URL_PATH || '')
if both ingressPath and BASE_URL are empty your option returns .
and not empty string. Added tests to verify
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 2 files at r1, 1 of 1 files at r2.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @yehiyam)
core/api-server/config/main/config.base.js, line 56 at r1 (raw file):
path.join
Yes
"If the joined path string is a zero-length string then '.' will be returned, representing the current working directory."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @nassiharel)
core/api-server/config/main/config.base.js, line 56 at r1 (raw file):
Previously, NassiHarel (Nassi Harel) wrote…
path.join
Yes
"If the joined path string is a zero-length string then '.' will be returned, representing the current working directory."
Done.
* add optional api-server prefix * add tests .... bump version [skip ci]
* add optional api-server prefix * add tests .... bump version [skip ci]
This change is