core/src/main/java/io/fabric8/maven/core/service/ApplyService.java
public void apply(Object dto, String sourceName) throws Exception {
        if (dto instanceof List) {
            List list = (List) dto;
            for (Object element : list) {
                if (dto == element) {
                    log.warn("Found recursive nested object for " + dto + " of class: " + dto.getClass().getName());
                    continue;
                }
                apply(element, sourceName);
            }
        } else if (dto instanceof KubernetesList) {
            applyList((KubernetesList) dto, sourceName);
        } else if (dto != null) {
            applyEntity(dto, sourceName);
        }
    }
public void apply(Object dto, String sourceName) throws Exception {
        if (dto instanceof List) {
            List list = (List) dto;
            for (Object element : list) {
                if (dto == element) {
                    log.warn("Found recursive nested object for " + dto + " of class: " + dto.getClass().getName());
                    continue;
                }
                apply(element, sourceName);
            }
        } else if (dto instanceof KubernetesList) {
            applyList((KubernetesList) dto, sourceName);
        } else if (dto != null) {
            applyEntity(dto, sourceName);
        }
    }
public void apply ( Object dto , String sourceName ) throws Exception { if ( dto instanceof List ) { List list = ( List ) dto ; for ( Object element : list ) { if ( dto == element ) { log . warn ( "Found recursive nested object for " + dto + " of class: " + dto . getClass ( ) . getName ( ) ) ; continue ; } apply ( element , sourceName ) ; } } else if ( dto instanceof KubernetesList ) { applyList ( ( KubernetesList ) dto , sourceName ) ; } else if ( dto != null ) { applyEntity ( dto , sourceName ) ; } }
Applies the given DTOs onto the Kubernetes master
Applies the given DTOs onto the Kubernetes master