private String getImagePullPolicy(ResourceConfig resourceConfig, String defaultValue) {
        if(resourceConfig != null) {
            return resourceConfig.getImagePullPolicy() != null ? resourceConfig.getImagePullPolicy() : defaultValue;
        }
        return defaultValue;
    }
private String getImagePullPolicy ( ResourceConfig resourceConfig , String defaultValue ) { if ( resourceConfig != null ) { return resourceConfig . getImagePullPolicy ( ) != null ? resourceConfig . getImagePullPolicy ( ) : defaultValue ; } return defaultValue ; }
This method overrides the ImagePullPolicy value by the value provided in
XML config.

@param resourceConfig
@param defaultValue
@return