@@ -22,9 +22,9 @@ const deploymentReader: IWorkloadReaderFunc = async (workloadName, namespace) =>
2222 kind : WorkloadKind . Deployment ,
2323 objectMeta : deployment . metadata ,
2424 specMeta : deployment . spec . template . metadata ,
25- containers : deployment . spec . template . spec . containers ,
2625 ownerRefs : deployment . metadata . ownerReferences ,
2726 revision : deployment . status . observedGeneration ,
27+ podSpec : deployment . spec . template . spec ,
2828 } ;
2929} ;
3030
@@ -43,9 +43,9 @@ const replicaSetReader: IWorkloadReaderFunc = async (workloadName, namespace) =>
4343 kind : WorkloadKind . ReplicaSet ,
4444 objectMeta : replicaSet . metadata ,
4545 specMeta : replicaSet . spec . template . metadata ,
46- containers : replicaSet . spec . template . spec . containers ,
4746 ownerRefs : replicaSet . metadata . ownerReferences ,
4847 revision : replicaSet . status . observedGeneration ,
48+ podSpec : replicaSet . spec . template . spec ,
4949 } ;
5050} ;
5151
@@ -64,9 +64,9 @@ const statefulSetReader: IWorkloadReaderFunc = async (workloadName, namespace) =
6464 kind : WorkloadKind . StatefulSet ,
6565 objectMeta : statefulSet . metadata ,
6666 specMeta : statefulSet . spec . template . metadata ,
67- containers : statefulSet . spec . template . spec . containers ,
6867 ownerRefs : statefulSet . metadata . ownerReferences ,
6968 revision : statefulSet . status . observedGeneration ,
69+ podSpec : statefulSet . spec . template . spec ,
7070 } ;
7171} ;
7272
@@ -85,9 +85,9 @@ const daemonSetReader: IWorkloadReaderFunc = async (workloadName, namespace) =>
8585 kind : WorkloadKind . DaemonSet ,
8686 objectMeta : daemonSet . metadata ,
8787 specMeta : daemonSet . spec . template . metadata ,
88- containers : daemonSet . spec . template . spec . containers ,
8988 ownerRefs : daemonSet . metadata . ownerReferences ,
9089 revision : daemonSet . status . observedGeneration ,
90+ podSpec : daemonSet . spec . template . spec ,
9191 } ;
9292} ;
9393
@@ -105,8 +105,8 @@ const jobReader: IWorkloadReaderFunc = async (workloadName, namespace) => {
105105 kind : WorkloadKind . Job ,
106106 objectMeta : job . metadata ,
107107 specMeta : job . spec . template . metadata ,
108- containers : job . spec . template . spec . containers ,
109108 ownerRefs : job . metadata . ownerReferences ,
109+ podSpec : job . spec . template . spec ,
110110 } ;
111111} ;
112112
@@ -128,8 +128,8 @@ const cronJobReader: IWorkloadReaderFunc = async (workloadName, namespace) => {
128128 kind : WorkloadKind . CronJob ,
129129 objectMeta : cronJob . metadata ,
130130 specMeta : cronJob . spec . jobTemplate . metadata ,
131- containers : cronJob . spec . jobTemplate . spec . template . spec . containers ,
132131 ownerRefs : cronJob . metadata . ownerReferences ,
132+ podSpec : cronJob . spec . jobTemplate . spec . template . spec ,
133133 } ;
134134} ;
135135
@@ -149,9 +149,9 @@ const replicationControllerReader: IWorkloadReaderFunc = async (workloadName, na
149149 kind : WorkloadKind . ReplicationController ,
150150 objectMeta : replicationController . metadata ,
151151 specMeta : replicationController . spec . template . metadata ,
152- containers : replicationController . spec . template . spec . containers ,
153152 ownerRefs : replicationController . metadata . ownerReferences ,
154153 revision : replicationController . status . observedGeneration ,
154+ podSpec : replicationController . spec . template . spec ,
155155 } ;
156156} ;
157157
0 commit comments