mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Enforce semicolons in eslint
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
1 parent
0f3f5611ba
commit
1477bb8274
531 files changed
+3979
-3975
No files matched your search
@@ -1,2 +1,2 @@
|
||||
export * from "./statefulsets"
|
||||
export * from "./statefulset-details"
|
||||
export * from "./statefulsets";
|
||||
export * from "./statefulset-details";
|
||||
@@ -42,12 +42,12 @@ export class StatefulSetDetails extends React.Component<Props> {
|
||||
|
||||
render() {
|
||||
const { object: statefulSet } = this.props;
|
||||
if (!statefulSet) return null
|
||||
const images = statefulSet.getImages()
|
||||
const selectors = statefulSet.getSelectors()
|
||||
const nodeSelector = statefulSet.getNodeSelectors()
|
||||
const childPods = statefulSetStore.getChildPods(statefulSet)
|
||||
const metrics = statefulSetStore.metrics
|
||||
if (!statefulSet) return null;
|
||||
const images = statefulSet.getImages();
|
||||
const selectors = statefulSet.getSelectors();
|
||||
const nodeSelector = statefulSet.getNodeSelectors();
|
||||
const childPods = statefulSetStore.getChildPods(statefulSet);
|
||||
const metrics = statefulSetStore.metrics;
|
||||
return (
|
||||
<div className="StatefulSetDetails">
|
||||
{podsStore.isLoaded && (
|
||||
@@ -90,7 +90,7 @@ export class StatefulSetDetails extends React.Component<Props> {
|
||||
<ResourceMetricsText metrics={metrics}/>
|
||||
<PodDetailsList pods={childPods} owner={statefulSet}/>
|
||||
</div>
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ kubeObjectDetailRegistry.add({
|
||||
components: {
|
||||
Details: (props: any) => <StatefulSetDetails {...props} />
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
kubeObjectDetailRegistry.add({
|
||||
kind: "StatefulSet",
|
||||
@@ -110,4 +110,4 @@ kubeObjectDetailRegistry.add({
|
||||
components: {
|
||||
Details: (props: any) => <KubeEventDetails {...props} />
|
||||
}
|
||||
})
|
||||
});
|
||||
@@ -16,24 +16,24 @@ export class StatefulSetStore extends KubeObjectStore<StatefulSet> {
|
||||
}
|
||||
|
||||
getChildPods(statefulSet: StatefulSet) {
|
||||
return podsStore.getPodsByOwner(statefulSet)
|
||||
return podsStore.getPodsByOwner(statefulSet);
|
||||
}
|
||||
|
||||
getStatuses(statefulSets: StatefulSet[]) {
|
||||
const status = { failed: 0, pending: 0, running: 0 }
|
||||
const status = { failed: 0, pending: 0, running: 0 };
|
||||
statefulSets.forEach(statefulSet => {
|
||||
const pods = this.getChildPods(statefulSet)
|
||||
const pods = this.getChildPods(statefulSet);
|
||||
if (pods.some(pod => pod.getStatus() === PodStatus.FAILED)) {
|
||||
status.failed++
|
||||
status.failed++;
|
||||
}
|
||||
else if (pods.some(pod => pod.getStatus() === PodStatus.PENDING)) {
|
||||
status.pending++
|
||||
status.pending++;
|
||||
}
|
||||
else {
|
||||
status.running++
|
||||
status.running++;
|
||||
}
|
||||
})
|
||||
return status
|
||||
});
|
||||
return status;
|
||||
}
|
||||
|
||||
reset() {
|
||||
|
||||
@@ -59,6 +59,6 @@ export class StatefulSets extends React.Component<Props> {
|
||||
statefulSet.getAge(),
|
||||
]}
|
||||
/>
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user