We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d63949c commit 2c33591Copy full SHA for 2c33591
pkg/controller/registry/reconciler/grpc.go
@@ -209,6 +209,12 @@ func (c *GrpcRegistryReconciler) currentPodsWithCorrectImageAndSpec(source grpcC
209
210
func correctImages(source grpcCatalogSourceDecorator, pod *corev1.Pod) bool {
211
if source.CatalogSource.Spec.GrpcPodConfig != nil && source.CatalogSource.Spec.GrpcPodConfig.ExtractContent != nil {
212
+ if len(pod.Spec.InitContainers) != 2 {
213
+ return false
214
+ }
215
+ if len(pod.Spec.Containers) != 1 {
216
217
218
return pod.Spec.InitContainers[0].Image == source.utilImage &&
219
pod.Spec.InitContainers[1].Image == source.CatalogSource.Spec.Image &&
220
pod.Spec.Containers[0].Image == source.opmImage
0 commit comments