protected void updateApiVersion(KubernetesResourceList list) {
    String version = getApiVersion();
    if (list != null && version != null && version.length() > 0) {
      List items = list.getItems();
      if (items != null) {
        for (Object item : items) {
          if (item instanceof HasMetadata) {
            updateApiVersion((HasMetadata) item);
          }
        }
      }
    }
  }
protected void updateApiVersion ( KubernetesResourceList list ) { String version = getApiVersion ( ) ; if ( list != null && version != null && version . length ( ) > 0 ) { List items = list . getItems ( ) ; if ( items != null ) { for ( Object item : items ) { if ( item instanceof HasMetadata ) { updateApiVersion ( ( HasMetadata ) item ) ; } } } } }
Updates the list items if they have missing or default apiGroupVersion values and the resource is currently
using API Groups with custom version strings

@param list Kubernetes resource list