Skip to content
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

fix: incorrect references DASHBOARD_LINKS_CONFIGMAP env-var #7264

Merged
merged 1 commit into from
May 24, 2024

Conversation

hhk7734
Copy link
Contributor

@hhk7734 hhk7734 commented Sep 6, 2023

fix env name mismatch

const {
DASHBOARD_CONFIGMAP = "centraldashboard-config",
LOGOUT_URL = '/logout'
} = process.env;

const {
DASHBOARD_CONFIGMAP = "centraldashboard-config",
KF_DASHBOARD_BUILD_LABEL = "Build",
KF_DASHBOARD_VERSION = null,
KF_DASHBOARD_BUILD_ID = null,
} = process.env;

@google-cla
Copy link

google-cla bot commented Sep 6, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@kimwnasptd
Copy link
Member

@hhk7734 thanks for the PR!

Looking at this code again, isn't the current DASHBOARD_CONFIGMAP value hardcoded in the backend? This means that even if we change the name of the ENV var in the pod, then this still won't get picked up

@hhk7734
Copy link
Contributor Author

hhk7734 commented Dec 7, 2023

@hhk7734 thanks for the PR!

Looking at this code again, isn't the current DASHBOARD_CONFIGMAP value hardcoded in the backend? This means that even if we change the name of the ENV var in the pod, then this still won't get picked up

@kimwnasptd
Could you let me know where is the hardcoded line?

or, did you point out the below code?

const {
DASHBOARD_CONFIGMAP = "centraldashboard-config",
KF_DASHBOARD_BUILD_LABEL = "Build",
KF_DASHBOARD_VERSION = null,
KF_DASHBOARD_BUILD_ID = null,
} = process.env;

the above code is not hardcoded, just declare default values.

Welcome to Node.js v18.15.0.
Type ".help" for more information.
> process.env
{
  // ...
  SHELL: '/usr/bin/zsh',
  // ...
}
> const { SHELL = "hi" } = process.env
undefined
> SHELL
'/usr/bin/zsh'
> 

@thesuperzapper
Copy link
Member

@kimwnasptd, @hhk7734 is correct, the env var was randomly renamed by #5469 from DASHBOARD_LINKS_CONFIGMAP to DASHBOARD_CONFIGMAP.

So we need to rebase and merge this.

@thesuperzapper thesuperzapper changed the title fix: fix deployments env name mismatch for link configmap fix: incorrect references DASHBOARD_LINKS_CONFIGMAP env-var May 11, 2024
@thesuperzapper thesuperzapper added this to the v1.9.0 milestone May 11, 2024
@hhk7734 hhk7734 force-pushed the fix-env branch 2 times, most recently from 7116549 to d5ad9c6 Compare May 16, 2024 07:26
@thesuperzapper
Copy link
Member

@hhk7734 the failing tests are not related to this PR, once we merge #7578 they should pass (if you rebase).

Signed-off-by: Hyeonki Hong <hhk7734@gmail.com>
@thesuperzapper
Copy link
Member

@hhk7734 thanks so much for this, sorry about the delay.

We will include this in the default manifest for 1.9.0-rc.0.

/lgtm
/approve

Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: thesuperzapper

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-prow google-oss-prow bot merged commit 030760f into kubeflow:master May 24, 2024
6 checks passed
@hhk7734 hhk7734 deleted the fix-env branch May 24, 2024 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants