Skip to content

Commit

Permalink
Change cluster role name
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Sep 23, 2024
1 parent 3c421af commit 9a8d253
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/controllers/prometheus/prometheus_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ import (
const (
portPrometheus = "http-web"
saTrickster = "trickster"
crTrickster = "appscode:trickster:proxy"

registeredKey = mona.GroupName + "/registered"
tokenIDKey = mona.GroupName + "/token-id"
Expand Down Expand Up @@ -246,7 +247,7 @@ func (r *PrometheusReconciler) SetupClusterForPrometheus(ctx context.Context, pr

cr := rbac.ClusterRole{
ObjectMeta: metav1.ObjectMeta{
Name: saTrickster,
Name: crTrickster,
},
}
crvt, err := cu.CreateOrPatch(context.TODO(), r.kc, &cr, func(in client.Object, createOp bool) client.Object {
Expand All @@ -269,7 +270,7 @@ func (r *PrometheusReconciler) SetupClusterForPrometheus(ctx context.Context, pr

rb := rbac.RoleBinding{
ObjectMeta: metav1.ObjectMeta{
Name: saTrickster,
Name: crTrickster,
Namespace: key.Namespace,
},
}
Expand Down

0 comments on commit 9a8d253

Please sign in to comment.