new-integration-tests/src/test/java/oracle/weblogic/kubernetes/assertions/impl/RoleBinding.java
public static boolean roleBindingExists(String name, String namespace) throws ApiException {
    V1RoleBindingList roleBindingList = listNamespacedRoleBinding(namespace);
    List<V1RoleBinding> roleBindings = roleBindingList.getItems();

    for (V1RoleBinding roleBinding : roleBindings) {
      if (roleBinding.getMetadata() != null && roleBinding.getMetadata().getName() != null) {
        if (roleBinding.getMetadata().getName().equals(name)) {
          return true;
        }
      }
    }

    return false;
  }
/**
   * Check whether the role binding exists in the specified namespace.
   *
   * @param name name of the role binding to check
   * @param namespace the namespace in which to check the role binding existence
   * @return true if the role binding exists, false otherwise
   * @throws ApiException if Kubernetes client API call fails
   */
Check whether the role binding exists in the specified namespace.
@param name name of the role binding to check
@param namespace the namespace in which to check the role binding existence
@return true if the role binding exists, false otherwise
@throws ApiException if Kubernetes client API call fails
Check whether the role binding exists in the specified namespace . @param name name of the role binding to check @param namespace the namespace in which to check the role binding existence @return true if the role binding exists false otherwise @throws ApiException if Kubernetes client API call fails
public static boolean roleBindingExists(String name, String namespace) throws ApiException {
    V1RoleBindingList roleBindingList = listNamespacedRoleBinding(namespace);
    List<V1RoleBinding> roleBindings = roleBindingList.getItems();
    for (V1RoleBinding roleBinding : roleBindings) {
      if (roleBinding.getMetadata() != null && roleBinding.getMetadata().getName() != null) {
        if (roleBinding.getMetadata().getName().equals(name)) {
          return true;
        }
      }
    }
    return false;
  }
public static boolean roleBindingExists ( String name , String namespace ) throws ApiException { V1RoleBindingList roleBindingList = listNamespacedRoleBinding ( namespace ) ; List < V1RoleBinding > roleBindings = roleBindingList . getItems ( ) ; for ( V1RoleBinding roleBinding : roleBindings ) { if ( roleBinding . getMetadata ( ) != null && roleBinding . getMetadata ( ) . getName ( ) != null ) { if ( roleBinding . getMetadata ( ) . getName ( ) . equals ( name ) ) { return true ; } } } return false ; }
Check whether the role binding exists in the specified namespace.
Check whether the role binding exists in the specified namespace .