private void updateContainers(KubernetesListBuilder builder) {
        builder.accept(new TypedVisitor<PodTemplateSpecBuilder>() {
            @Override
            public void visit(PodTemplateSpecBuilder templateBuilder) {
                PodTemplateSpecFluent.SpecNested<PodTemplateSpecBuilder> podSpec =
                    templateBuilder.getSpec() == null ? templateBuilder.withNewSpec() : templateBuilder.editSpec();

                List<Container> containers = podSpec.getContainers();
                if (containers == null) {
                    containers = new ArrayList<Container>();
                }
                mergeImageConfigurationWithContainerSpec(containers);
                podSpec.withContainers(containers).endSpec();
            }
        });
    }
private void updateContainers(KubernetesListBuilder builder) {
        builder.accept(new TypedVisitor<PodTemplateSpecBuilder>() {
            @Override
            public void visit(PodTemplateSpecBuilder templateBuilder) {
                PodTemplateSpecFluent.SpecNested<PodTemplateSpecBuilder> podSpec =
                    templateBuilder.getSpec() == null ? templateBuilder.withNewSpec() : templateBuilder.editSpec();

                List<Container> containers = podSpec.getContainers();
                if (containers == null) {
                    containers = new ArrayList<Container>();
                }
                mergeImageConfigurationWithContainerSpec(containers);
                podSpec.withContainers(containers).endSpec();
            }
        });
    }
private void updateContainers ( KubernetesListBuilder builder ) { builder . accept ( new TypedVisitor < PodTemplateSpecBuilder > ( ) { @ Override public void visit ( PodTemplateSpecBuilder templateBuilder ) { PodTemplateSpecFluent . SpecNested < PodTemplateSpecBuilder > podSpec = templateBuilder . getSpec ( ) == null ? templateBuilder . withNewSpec ( ) : templateBuilder . editSpec ( ) ; List < Container > containers = podSpec . getContainers ( ) ; if ( containers == null ) { containers = new ArrayList < Container > ( ) ; } mergeImageConfigurationWithContainerSpec ( containers ) ; podSpec . withContainers ( containers ) . endSpec ( ) ; } } ) ; }
============================================================================================================
============================================================================================================