aboutsummaryrefslogtreecommitdiffstats
path: root/src/monitor/pkg/controller/resourcebundlestate/pod_controller.go
diff options
context:
space:
mode:
authorRitu Sood <Ritu.Sood@intel.com>2020-09-01 21:18:45 +0000
committerGerrit Code Review <gerrit@onap.org>2020-09-01 21:18:45 +0000
commite6277404b61f508d6af11b3e8bb067d716ba21c0 (patch)
treef146afe803c008576b07ea353a5bc05541e663db /src/monitor/pkg/controller/resourcebundlestate/pod_controller.go
parent65e4059d86a5f0dda682ebd879f409be18afa5b0 (diff)
parent645c6a331cd00043fcf9f567f5f261a9db070918 (diff)
Merge "Enhance the status query API"
Diffstat (limited to 'src/monitor/pkg/controller/resourcebundlestate/pod_controller.go')
-rw-r--r--src/monitor/pkg/controller/resourcebundlestate/pod_controller.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/monitor/pkg/controller/resourcebundlestate/pod_controller.go b/src/monitor/pkg/controller/resourcebundlestate/pod_controller.go
index 65a324db..0f7ce47e 100644
--- a/src/monitor/pkg/controller/resourcebundlestate/pod_controller.go
+++ b/src/monitor/pkg/controller/resourcebundlestate/pod_controller.go
@@ -136,7 +136,7 @@ func (r *podReconciler) deleteFromSingleCR(cr *v1alpha1.ResourceBundleState, nam
if rstatus.Name == name {
//Delete that status from the array
cr.Status.PodStatuses[i] = cr.Status.PodStatuses[length-1]
- cr.Status.PodStatuses[length-1] = v1alpha1.PodStatus{}
+ cr.Status.PodStatuses[length-1] = corev1.Pod{}
cr.Status.PodStatuses = cr.Status.PodStatuses[:length-1]
return nil
}
@@ -167,9 +167,9 @@ func (r *podReconciler) updateSingleCR(cr *v1alpha1.ResourceBundleState, pod *co
cr.Status.ResourceCount++
// Add it to CR
- cr.Status.PodStatuses = append(cr.Status.PodStatuses, v1alpha1.PodStatus{
+ cr.Status.PodStatuses = append(cr.Status.PodStatuses, corev1.Pod{
+ TypeMeta: pod.TypeMeta,
ObjectMeta: pod.ObjectMeta,
- Ready: false,
Status: pod.Status,
})