@hashgraph/solo
    Preparing search index...

    Interface for RBAC operations

    interface Rbacs {
        clusterRoleBindingExists(name: string): Promise<boolean>;
        clusterRoleExists(name: string): Promise<boolean>;
        createClusterRole(
            name: string,
            rules: { apiGroups: string[]; resources: string[]; verbs: string[] }[],
            labels?: Record<string, string>,
        ): Promise<void>;
        deleteClusterRole(name: string): Promise<void>;
        deleteClusterRoleBinding(name: string): Promise<void>;
        setHelmOwnership(
            name: string,
            releaseName: string,
            releaseNamespace: string,
        ): Promise<void>;
    }

    Implemented by

    Index

    Methods

    • Check if a ClusterRoleBinding exists

      Parameters

      • name: string

        The name of the cluster role binding

      Returns Promise<boolean>

      True if the cluster role binding exists, false otherwise

    • Check if a ClusterRole exists

      Parameters

      • name: string

        The name of the cluster role

      Returns Promise<boolean>

      True if the cluster role exists, false otherwise

    • Create a ClusterRole

      Parameters

      • name: string

        The name of the cluster role

      • rules: { apiGroups: string[]; resources: string[]; verbs: string[] }[]

        The rules of the cluster role

      • Optionallabels: Record<string, string>

        The labels of the cluster role

      Returns Promise<void>

    • Ensure an existing ClusterRole/ClusterRoleBinding carries Helm ownership metadata for the provided release. This is a no-op when a resource with the provided name does not exist.

      Parameters

      • name: string

        Resource name (applies to both ClusterRole and ClusterRoleBinding)

      • releaseName: string

        Helm release name

      • releaseNamespace: string

        Helm release namespace

      Returns Promise<void>