Skip to content

Commit

Permalink
[UI] Display 'RESCAN' button for k8s cluster with ON power status
Browse files Browse the repository at this point in the history
VBV-2274 Clicking rescan on a PROVISIONING or UNREACHABLE pks cluster does not
send any request to the PKS endpoint -> the UI actually triggers data collection
which does not make sense for clusters in UNREACHABLE, PROVISIONING, etc. states.

Change-Id: I054fd33d38c0faacaf99912ef7374ff5fa4e3b6b
Reviewed-on: https://bellevue-ci.eng.vmware.com:8080/46827
Closures-Verified: jenkins <[email protected]>
Upgrade-Verified: jenkins <[email protected]>
Bellevue-Verified: jenkins <[email protected]>
PG-Verified: jenkins <[email protected]>
CS-Verified: jenkins <[email protected]>
Reviewed-by: Lazarin Lazarov <[email protected]>
  • Loading branch information
mshipkovenski committed Oct 18, 2018
1 parent f2bdf61 commit 97406aa
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,8 @@ export class KubernetesClustersComponent extends AutoRefreshComponent {
&& clusterStatus !== Constants.clusters.status.DESTROYING
&& clusterStatus !== Constants.clusters.status.UNREACHABLE
&& isClusterOwnedByCurrentUser;
} else if (op === 'RESCAN') {
return clusterStatus === Constants.clusters.status.ON;
} else if (op === 'REMOVE') {
return isClusterOwnedByCurrentUser;
}
Expand Down

0 comments on commit 97406aa

Please sign in to comment.