@@ -200,6 +200,9 @@ func (d *ProjectStatusDescriber) Describe(namespace, name string) (string, error
200
200
standaloneDCs , coveredByDCs := graphview .AllDeploymentConfigPipelines (g , coveredNodes )
201
201
coveredNodes .Insert (coveredByDCs .List ()... )
202
202
203
+ standaloneDeployments , coveredByDeployments := graphview .AllDeployments (g , coveredNodes )
204
+ coveredNodes .Insert (coveredByDeployments .List ()... )
205
+
203
206
standaloneRCs , coveredByRCs := graphview .AllReplicationControllers (g , coveredNodes )
204
207
coveredNodes .Insert (coveredByRCs .List ()... )
205
208
@@ -300,6 +303,12 @@ func (d *ProjectStatusDescriber) Describe(namespace, name string) (string, error
300
303
return graphview .MaxRecentContainerRestartsForRC (g , rc )
301
304
})... )
302
305
}
306
+ for _ , standaloneDeployment := range standaloneDeployments {
307
+ fmt .Fprintln (out )
308
+ printLines (out , indent , 0 , describeDeploymentInServiceGroup (f , standaloneDeployment , func (rs * kubegraph.ReplicaSetNode ) int32 {
309
+ return graphview .MaxRecentContainerRestartsForRS (g , rs )
310
+ })... )
311
+ }
303
312
304
313
for _ , standaloneImage := range standaloneImages {
305
314
fmt .Fprintln (out )
@@ -312,6 +321,7 @@ func (d *ProjectStatusDescriber) Describe(namespace, name string) (string, error
312
321
fmt .Fprintln (out )
313
322
printLines (out , indent , 0 , describeRCInServiceGroup (f , standaloneRC .RC )... )
314
323
}
324
+
315
325
for _ , standaloneRS := range standaloneRSs {
316
326
fmt .Fprintln (out )
317
327
printLines (out , indent , 0 , describeRSInServiceGroup (f , standaloneRS .RS )... )
@@ -550,7 +560,7 @@ func (f namespacedFormatter) ResourceName(obj interface{}) string {
550
560
case * kubegraph.ReplicationControllerNode :
551
561
return namespaceNameWithType ("rc" , t .ReplicationController .Name , t .ReplicationController .Namespace , f .currentNamespace , f .hideNamespace )
552
562
case * kubegraph.ReplicaSetNode :
553
- return namespaceNameWithType ("rc " , t .ReplicaSet .Name , t .ReplicaSet .Namespace , f .currentNamespace , f .hideNamespace )
563
+ return namespaceNameWithType ("rs " , t .ReplicaSet .Name , t .ReplicaSet .Namespace , f .currentNamespace , f .hideNamespace )
554
564
case * kubegraph.HorizontalPodAutoscalerNode :
555
565
return namespaceNameWithType ("hpa" , t .HorizontalPodAutoscaler .Name , t .HorizontalPodAutoscaler .Namespace , f .currentNamespace , f .hideNamespace )
556
566
case * kubegraph.StatefulSetNode :
0 commit comments