@@ -22,9 +22,9 @@ const deploymentReader: IWorkloadReaderFunc = async (workloadName, namespace) =>
22
22
kind : WorkloadKind . Deployment ,
23
23
objectMeta : deployment . metadata ,
24
24
specMeta : deployment . spec . template . metadata ,
25
- containers : deployment . spec . template . spec . containers ,
26
25
ownerRefs : deployment . metadata . ownerReferences ,
27
26
revision : deployment . status . observedGeneration ,
27
+ podSpec : deployment . spec . template . spec ,
28
28
} ;
29
29
} ;
30
30
@@ -43,9 +43,9 @@ const replicaSetReader: IWorkloadReaderFunc = async (workloadName, namespace) =>
43
43
kind : WorkloadKind . ReplicaSet ,
44
44
objectMeta : replicaSet . metadata ,
45
45
specMeta : replicaSet . spec . template . metadata ,
46
- containers : replicaSet . spec . template . spec . containers ,
47
46
ownerRefs : replicaSet . metadata . ownerReferences ,
48
47
revision : replicaSet . status . observedGeneration ,
48
+ podSpec : replicaSet . spec . template . spec ,
49
49
} ;
50
50
} ;
51
51
@@ -64,9 +64,9 @@ const statefulSetReader: IWorkloadReaderFunc = async (workloadName, namespace) =
64
64
kind : WorkloadKind . StatefulSet ,
65
65
objectMeta : statefulSet . metadata ,
66
66
specMeta : statefulSet . spec . template . metadata ,
67
- containers : statefulSet . spec . template . spec . containers ,
68
67
ownerRefs : statefulSet . metadata . ownerReferences ,
69
68
revision : statefulSet . status . observedGeneration ,
69
+ podSpec : statefulSet . spec . template . spec ,
70
70
} ;
71
71
} ;
72
72
@@ -85,9 +85,9 @@ const daemonSetReader: IWorkloadReaderFunc = async (workloadName, namespace) =>
85
85
kind : WorkloadKind . DaemonSet ,
86
86
objectMeta : daemonSet . metadata ,
87
87
specMeta : daemonSet . spec . template . metadata ,
88
- containers : daemonSet . spec . template . spec . containers ,
89
88
ownerRefs : daemonSet . metadata . ownerReferences ,
90
89
revision : daemonSet . status . observedGeneration ,
90
+ podSpec : daemonSet . spec . template . spec ,
91
91
} ;
92
92
} ;
93
93
@@ -105,8 +105,8 @@ const jobReader: IWorkloadReaderFunc = async (workloadName, namespace) => {
105
105
kind : WorkloadKind . Job ,
106
106
objectMeta : job . metadata ,
107
107
specMeta : job . spec . template . metadata ,
108
- containers : job . spec . template . spec . containers ,
109
108
ownerRefs : job . metadata . ownerReferences ,
109
+ podSpec : job . spec . template . spec ,
110
110
} ;
111
111
} ;
112
112
@@ -128,8 +128,8 @@ const cronJobReader: IWorkloadReaderFunc = async (workloadName, namespace) => {
128
128
kind : WorkloadKind . CronJob ,
129
129
objectMeta : cronJob . metadata ,
130
130
specMeta : cronJob . spec . jobTemplate . metadata ,
131
- containers : cronJob . spec . jobTemplate . spec . template . spec . containers ,
132
131
ownerRefs : cronJob . metadata . ownerReferences ,
132
+ podSpec : cronJob . spec . jobTemplate . spec . template . spec ,
133
133
} ;
134
134
} ;
135
135
@@ -149,9 +149,9 @@ const replicationControllerReader: IWorkloadReaderFunc = async (workloadName, na
149
149
kind : WorkloadKind . ReplicationController ,
150
150
objectMeta : replicationController . metadata ,
151
151
specMeta : replicationController . spec . template . metadata ,
152
- containers : replicationController . spec . template . spec . containers ,
153
152
ownerRefs : replicationController . metadata . ownerReferences ,
154
153
revision : replicationController . status . observedGeneration ,
154
+ podSpec : replicationController . spec . template . spec ,
155
155
} ;
156
156
} ;
157
157
0 commit comments