wmedvede commented on code in PR #392:
URL: 
https://github.com/apache/incubator-kie-kogito-serverless-operator/pull/392#discussion_r1486807085


##########
utils/kubernetes/volumes.go:
##########
@@ -101,38 +101,53 @@ func VolumeMountAdd(volumeMount []corev1.VolumeMount, 
name, mountPath string) []
 // AddOrReplaceVolume adds or removes the given volumes to the PodSpec.
 // If there's already a volume with the same name, it's replaced.
 func AddOrReplaceVolume(podSpec *corev1.PodSpec, volumes ...corev1.Volume) {

Review Comment:
   @ricardozanini finally the issue was that old map based 
iteration/costruction didn't preserve the order of the elements, this was 
interpreted as a change in the resource on each reconciliation, and thus, 
produced a different ReplicaSet, and each of these ReplicaSets produced more 
pods, producing the pods spawning.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to