new-integration-tests/src/test/java/oracle/weblogic/kubernetes/assertions/impl/ClusterRoleBinding.java
public static boolean clusterRoleBindingExists(String name) throws ApiException {
    V1ClusterRoleBindingList clusterRoleBindingList = listClusterRoleBindings("");
    List<V1ClusterRoleBinding> clusterRoleBindings = clusterRoleBindingList.getItems();

    for (V1ClusterRoleBinding clusterRoleBinding : clusterRoleBindings) {
      if (clusterRoleBinding.getMetadata() != null && clusterRoleBinding.getMetadata().getName() != null) {
        if (clusterRoleBinding.getMetadata().getName().equals(name)) {
          return true;
        }
      }
    }

    return false;
  }
/**
   * Check whether the specified cluster role binding exists.
   *
   * @param name the name of cluster role binding to check
   * @return true if the cluster role binding exists, false otherwise
   */
Check whether the specified cluster role binding exists.
@param name the name of cluster role binding to check
@return true if the cluster role binding exists, false otherwise
Check whether the specified cluster role binding exists . @param name the name of cluster role binding to check @return true if the cluster role binding exists false otherwise
public static boolean clusterRoleBindingExists(String name) throws ApiException {
    V1ClusterRoleBindingList clusterRoleBindingList = listClusterRoleBindings("");
    List<V1ClusterRoleBinding> clusterRoleBindings = clusterRoleBindingList.getItems();
    for (V1ClusterRoleBinding clusterRoleBinding : clusterRoleBindings) {
      if (clusterRoleBinding.getMetadata() != null && clusterRoleBinding.getMetadata().getName() != null) {
        if (clusterRoleBinding.getMetadata().getName().equals(name)) {
          return true;
        }
      }
    }
    return false;
  }
public static boolean clusterRoleBindingExists ( String name ) throws ApiException { V1ClusterRoleBindingList clusterRoleBindingList = listClusterRoleBindings ( "" ) ; List < V1ClusterRoleBinding > clusterRoleBindings = clusterRoleBindingList . getItems ( ) ; for ( V1ClusterRoleBinding clusterRoleBinding : clusterRoleBindings ) { if ( clusterRoleBinding . getMetadata ( ) != null && clusterRoleBinding . getMetadata ( ) . getName ( ) != null ) { if ( clusterRoleBinding . getMetadata ( ) . getName ( ) . equals ( name ) ) { return true ; } } } return false ; }
Check whether the specified cluster role binding exists.
Check whether the specified cluster role binding exists .