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

V2: Fixes and improvements to dashboard integration #268

Merged
merged 15 commits into from
Jan 22, 2020

Conversation

nwmac
Copy link
Member

@nwmac nwmac commented Jan 21, 2020

Fixes #271
Fixes #270
Fixes #269

@nwmac nwmac added the ready for review Ready for review label Jan 21, 2020
@nwmac nwmac self-assigned this Jan 21, 2020
@codecov-io
Copy link

codecov-io commented Jan 21, 2020

Codecov Report

❗ No coverage uploaded for pull request base (v2-master@0748fef). Click here to learn what that means.
The diff coverage is 47.19%.

@@             Coverage Diff              @@
##             v2-master     #268   +/-   ##
============================================
  Coverage             ?   53.64%           
============================================
  Files                ?      918           
  Lines                ?    25308           
  Branches             ?     4350           
============================================
  Hits                 ?    13576           
  Misses               ?    11732           
  Partials             ?        0

Copy link
Member

@richard-cox richard-cox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<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>
Copy link
Member

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 => {
Copy link
Member

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) {
Copy link
Member

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;
Copy link
Member

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>
Copy link
Member

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?

@nwmac nwmac merged commit b7d5835 into v2-master Jan 22, 2020
@nwmac nwmac deleted the v2-kubedash-updates branch January 22, 2020 20:38
@nwmac nwmac restored the v2-kubedash-updates branch January 23, 2020 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for review Ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants