Skip to content

Commit

Permalink
[FIX]: project list display perses/perses#2372 (comment)
Browse files Browse the repository at this point in the history
Signed-off-by: Akshay Iyyadurai Balasundaram <[email protected]>
  • Loading branch information
ibakshay committed Nov 28, 2024
1 parent dbed4cf commit 02100e9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
"github.com/perses/perses-operator/internal/subreconciler"
"github.com/perses/perses/pkg/client/perseshttp"
persesv1 "github.com/perses/perses/pkg/model/api/v1"
"github.com/perses/perses/pkg/model/api/v1/common"
logger "github.com/sirupsen/logrus"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
Expand Down Expand Up @@ -79,6 +80,11 @@ func (r *PersesDashboardReconciler) syncPersesDashboard(ctx context.Context, per
Metadata: persesv1.Metadata{
Name: dashboard.Namespace,
},
Spec: persesv1.ProjectSpec{
Display: &common.Display{
Name: dashboard.Namespace,
},
},
})

if err != nil {
Expand Down
6 changes: 6 additions & 0 deletions controllers/datasources/datasource_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
"github.com/perses/perses-operator/internal/subreconciler"
"github.com/perses/perses/pkg/client/perseshttp"
persesv1 "github.com/perses/perses/pkg/model/api/v1"
"github.com/perses/perses/pkg/model/api/v1/common"
logger "github.com/sirupsen/logrus"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
Expand Down Expand Up @@ -79,6 +80,11 @@ func (r *PersesDatasourceReconciler) syncPersesDatasource(ctx context.Context, p
Metadata: persesv1.Metadata{
Name: datasource.Namespace,
},
Spec: persesv1.ProjectSpec{
Display: &common.Display{
Name: datasource.Namespace,
},
},
})

if err != nil {
Expand Down

0 comments on commit 02100e9

Please sign in to comment.