Skip to content

Commit

Permalink
[CentralDashboard v2] Added env_var for KFAM Server address (kubeflow…
Browse files Browse the repository at this point in the history
…#298)

* Added an environment variable to central dash to target the correct KFAM target

* Addresed PR comments and updated tests
  • Loading branch information
avdaredevil authored and k8s-ci-robot committed Aug 22, 2019
1 parent 6ed96fd commit 2e42975
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/centraldashboard/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,6 @@ spec:
value: $(userid-header)
- name: USERID_PREFIX
value: $(userid-prefix)
- name: PROFILES_KFAM_SERVICE_HOST
value: profiles-kfam.kubeflow
serviceAccountName: centraldashboard
2 changes: 2 additions & 0 deletions tests/centraldashboard-base_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ spec:
value: $(userid-header)
- name: USERID_PREFIX
value: $(userid-prefix)
- name: PROFILES_KFAM_SERVICE_HOST
value: profiles-kfam.kubeflow
serviceAccountName: centraldashboard
`)
th.writeF("/manifests/common/centraldashboard/base/role-binding.yaml", `
Expand Down
2 changes: 2 additions & 0 deletions tests/centraldashboard-overlays-application_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ spec:
value: $(userid-header)
- name: USERID_PREFIX
value: $(userid-prefix)
- name: PROFILES_KFAM_SERVICE_HOST
value: profiles-kfam.kubeflow
serviceAccountName: centraldashboard
`)
th.writeF("/manifests/common/centraldashboard/base/role-binding.yaml", `
Expand Down
2 changes: 2 additions & 0 deletions tests/centraldashboard-overlays-istio_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ spec:
value: $(userid-header)
- name: USERID_PREFIX
value: $(userid-prefix)
- name: PROFILES_KFAM_SERVICE_HOST
value: profiles-kfam.kubeflow
serviceAccountName: centraldashboard
`)
th.writeF("/manifests/common/centraldashboard/base/role-binding.yaml", `
Expand Down

0 comments on commit 2e42975

Please sign in to comment.