Fix for deployment config pods param
* To get the depconf params we were fetching the pods
with ownerref to dep conf, but the pods in that case
will be managed by replication controllers like in
case of deployment replicasets.
This change fixes that.
* Re-trigger CI
@@ -358,7 +358,14 @@ func fetchDeploymentConfigParams(ctx context.Context, cli kubernetes.Interface,
PersistentVolumeClaims: make(map[string]map[string]string),
}
- pods, _, err := kube.FetchPods(cli, namespace, dc.UID)
+ // deployment configs are managed by replicationcontrollers not replicaset
+ // get the replication controller of the deploymentconfig
+ rc, err := kube.FetchReplicationController(cli, namespace, dc.UID, dc.Annotations[kube.RevisionAnnotation])
+ if err != nil {
+ return nil, err
+ }
+
+ pods, _, err := kube.FetchPods(cli, namespace, rc.UID)
if err != nil {
return nil, err
}
