node/src/main/java/io/fabric8/jube/local/NodeHelper.java
public static String createMissingContainers(final ProcessManager processManager, final KubernetesModel model, final Pod pod,
                                                 final PodState currentState, List<Container> containers) throws Exception {
        Map<String, ContainerStatus> currentContainers = KubernetesHelper.getCurrentContainers(currentState);

        for (final Container container : containers) {
            // lets update the pod model if we update the ports
            podTransaction(model, pod, new Callable<Void>() {
                @Override
                public Void call() throws Exception {
                    createContainer(processManager, model, container, pod, currentState);
                    return null;
                }
            });
        }

        return null;
    }
/**
     * Creates any missing containers; updating the currentState with the new values.
     */
Creates any missing containers; updating the currentState with the new values.
Creates any missing containers ; updating the currentState with the new values .
public static String createMissingContainers(final ProcessManager processManager, final KubernetesModel model, final Pod pod,
                                                 final PodState currentState, List<Container> containers) throws Exception {
        Map<String, ContainerStatus> currentContainers = KubernetesHelper.getCurrentContainers(currentState);
        for (final Container container : containers) {
            podTransaction(model, pod, new Callable<Void>() {
                @Override
                public Void call() throws Exception {
                    createContainer(processManager, model, container, pod, currentState);
                    return null;
                }
            });
        }
        return null;
    }
public static String createMissingContainers ( final ProcessManager processManager , final KubernetesModel model , final Pod pod , final PodState currentState , List < Container > containers ) throws Exception { Map < String , ContainerStatus > currentContainers = KubernetesHelper . getCurrentContainers ( currentState ) ; for ( final Container container : containers ) { podTransaction ( model , pod , new Callable < Void > ( ) { @ Override public Void call ( ) throws Exception { createContainer ( processManager , model , container , pod , currentState ) ; return null ; } } ) ; } return null ; }
Creates any missing containers; updating the currentState with the new values.
Creates any missing containers ; updating the currentState with the new values .
// lets update the pod model if we update the ports