new-integration-tests/src/test/java/oracle/weblogic/kubernetes/actions/impl/primitive/Kubernetes.java
public static boolean createClusterRole(V1ClusterRole clusterRole) throws ApiException {
    try {
      V1ClusterRole cr = rbacAuthApi.createClusterRole(
              clusterRole, // cluster role configuration data
              PRETTY, // pretty print output
              null, // indicates that modifications should not be persisted
              null // fieldManager is a name associated with the actor
      );
    } catch (ApiException apex) {
      getLogger().severe(apex.getResponseBody());
      throw apex;
    }

    return true;
  }
/**
   * Create a cluster role.
   * @param clusterRole V1ClusterRole object containing cluster role configuration data
   * @return true if creation is successful, false otherwise
   * @throws ApiException if Kubernetes client API call fails
   */
Create a cluster role.
@param clusterRole V1ClusterRole object containing cluster role configuration data
@return true if creation is successful, false otherwise
@throws ApiException if Kubernetes client API call fails
Create a cluster role . @param clusterRole V1ClusterRole object containing cluster role configuration data @return true if creation is successful false otherwise @throws ApiException if Kubernetes client API call fails
public static boolean createClusterRole(V1ClusterRole clusterRole) throws ApiException {
    try {
      V1ClusterRole cr = rbacAuthApi.createClusterRole(
              clusterRole, 
              PRETTY, 
              null, 
              null 
      );
    } catch (ApiException apex) {
      getLogger().severe(apex.getResponseBody());
      throw apex;
    }
    return true;
  }
public static boolean createClusterRole ( V1ClusterRole clusterRole ) throws ApiException { try { V1ClusterRole cr = rbacAuthApi . createClusterRole ( clusterRole , PRETTY , null , null ) ; } catch ( ApiException apex ) { getLogger ( ) . severe ( apex . getResponseBody ( ) ) ; throw apex ; } return true ; }
Create a cluster role.
Create a cluster role .
// cluster role configuration data // pretty print output // indicates that modifications should not be persisted // fieldManager is a name associated with the actor