-
Notifications
You must be signed in to change notification settings - Fork 12
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
V2: Fixes and improvements to dashboard integration #268
Conversation
Codecov Report
@@ Coverage Diff @@
## v2-master #268 +/- ##
============================================
Coverage ? 53.64%
============================================
Files ? 918
Lines ? 25308
Branches ? 4350
============================================
Hits ? 13576
Misses ? 11732
Partials ? 0 |
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.
- After installing dashboard can immediately go to try to view it... whilst it's still coming up
- Discovered this issue when trying to use Kind - Unable to view kube dashboard in Kind #281
<div *ngIf="kubeDashboardStatus$ | async as status"> | ||
<div class="kubedash__ready" *ngIf="status.service && status.serviceAccount"> | ||
<app-boolean-indicator [showText]="false" [isTrue]="true" type="yes-no"></app-boolean-indicator> | ||
<div>Kubernetes Dashboard is installed and a Service Account exists - you can access the dashboard using the 'View Dashboard' button on the Summary view for this cluster</div> |
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.
Would be nice to offer a link straight there
) { | ||
this.kubeDashboardStatus$ = kubeEndpointService.kubeDashboardStatus$; | ||
// Clear the updatind status when we get back new dashboard status | ||
this.kubeDashboardStatus$.pipe(distinctUntilChanged()).subscribe(status => { |
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.
Subscribe without ubsub/first/etc
} | ||
|
||
private makeRequest(method: string, op: string, busyMsg: string, okMsg: string, errorMsg: string, | ||
busy: BehaviorSubject<boolean>, readyFilter: ReadyFilter, msgUpdater: MessageUpdater) { |
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.
readyFilter is unused
@@ -30,4 +30,32 @@ | |||
&__button { | |||
margin-left: 4px; | |||
} | |||
|
|||
&__dashboard-version { | |||
display: flex; |
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.
Needs a align-items: baseline;
<mat-card-title>Service Account</mat-card-title> | ||
<div class="kubedash__card-icon"> | ||
<app-boolean-indicator *ngIf="status.serviceAccount" [showText]="false" [isTrue]="true" type="yes-no"></app-boolean-indicator> | ||
<mat-icon *ngIf="!status.serviceAccount">warning</mat-icon> |
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.
Should the warning icon for both dashboard and service account be red?
Fixes #271
Fixes #270
Fixes #269