new-integration-tests/src/test/java/oracle/weblogic/kubernetes/actions/impl/primitive/Kubernetes.java
public static boolean createNamespacedRoleBinding(String namespace, V1RoleBinding roleBinding) throws ApiException {
    try {
      V1RoleBinding crb = rbacAuthApi.createNamespacedRoleBinding(
              namespace, // namespace where this role binding is created
              roleBinding, // role binding 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 role binding in the specified namespace.
   *
   * @param namespace the namespace in which the role binding to be created
   * @param roleBinding V1RoleBinding object containing role binding configuration data
   * @return true if the creation succeeds, false otherwise
   * @throws ApiException if Kubernetes client call fails
   */
Create a role binding in the specified namespace.
@param namespace the namespace in which the role binding to be created
@param roleBinding V1RoleBinding object containing role binding configuration data
@return true if the creation succeeds, false otherwise
@throws ApiException if Kubernetes client call fails
Create a role binding in the specified namespace . @param namespace the namespace in which the role binding to be created @param roleBinding V1RoleBinding object containing role binding configuration data @return true if the creation succeeds false otherwise @throws ApiException if Kubernetes client call fails
public static boolean createNamespacedRoleBinding(String namespace, V1RoleBinding roleBinding) throws ApiException {
    try {
      V1RoleBinding crb = rbacAuthApi.createNamespacedRoleBinding(
              namespace, 
              roleBinding, 
              PRETTY, 
              null, 
              null 
      );
    } catch (ApiException apex) {
      getLogger().severe(apex.getResponseBody());
      throw apex;
    }
    return true;
  }
public static boolean createNamespacedRoleBinding ( String namespace , V1RoleBinding roleBinding ) throws ApiException { try { V1RoleBinding crb = rbacAuthApi . createNamespacedRoleBinding ( namespace , roleBinding , PRETTY , null , null ) ; } catch ( ApiException apex ) { getLogger ( ) . severe ( apex . getResponseBody ( ) ) ; throw apex ; } return true ; }
Create a role binding in the specified namespace.
Create a role binding in the specified namespace .
// namespace where this role binding is created // role binding configuration data // pretty print output // indicates that modifications should not be persisted // fieldManager is a name associated with the actor