Skip to content

Commit

Permalink
RBAC custom privilege group
Browse files Browse the repository at this point in the history
Signed-off-by: shaoting-huang <[email protected]>
  • Loading branch information
shaoting-huang committed Oct 23, 2024
1 parent 370e705 commit 893ad2d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -274,3 +274,5 @@ replace (
)

exclude github.com/apache/pulsar-client-go/oauth2 v0.0.0-20211108044248-fe3b7c4e445b

replace github.com/milvus-io/milvus-proto/go-api/v2 => /home/shaoting/workspace/milvus-proto/go-api
2 changes: 2 additions & 0 deletions pkg/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -194,3 +194,5 @@ replace (
)

exclude github.com/apache/pulsar-client-go/oauth2 v0.0.0-20211108044248-fe3b7c4e445b

replace github.com/milvus-io/milvus-proto/go-api/v2 => /home/shaoting/workspace/milvus-proto/go-api
9 changes: 9 additions & 0 deletions pkg/metrics/rootcoord_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,15 @@ var (
Help: "The number of roles",
})

// RootCoordNumOfPrivilegeGroups counts the number of credentials.
RootCoordNumOfPrivilegeGroups = prometheus.NewGauge(
prometheus.GaugeOpts{
Namespace: milvusNamespace,
Subsystem: typeutil.RootCoordRole,
Name: "num_of_privilege_groups",
Help: "The number of privilege groups",
})

// RootCoordTtDelay records the max time tick delay of flow graphs in DataNodes and QueryNodes.
RootCoordTtDelay = prometheus.NewGaugeVec(
prometheus.GaugeOpts{
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate_proto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ done
ROOT_DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"

PROTO_DIR=$ROOT_DIR/internal/proto/
API_PROTO_DIR=$ROOT_DIR/cmake_build/thirdparty/milvus-proto/proto
API_PROTO_DIR=/home/shaoting/workspace/milvus-proto/proto
CPP_SRC_DIR=$ROOT_DIR/internal/core
PROTOC_BIN=$ROOT_DIR/cmake_build/bin/protoc

Expand Down

0 comments on commit 893ad2d

Please sign in to comment.