-
Notifications
You must be signed in to change notification settings - Fork 880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to select the namespace on a dashboard #1291
Allow to select the namespace on a dashboard #1291
Conversation
PR for the task #1255 |
Codecov Report
@@ Coverage Diff @@
## master #1291 +/- ##
==========================================
+ Coverage 81.41% 81.44% +0.03%
==========================================
Files 106 106
Lines 9702 9702
==========================================
+ Hits 7899 7902 +3
+ Misses 1266 1264 -2
+ Partials 537 536 -1
Continue to review full report at Codecov.
|
1304d4d
to
fc7d8d9
Compare
Could you include a screenshot here of the namespace picker? |
@@ -258,20 +227,27 @@ func (s *ArgoRolloutsServer) WatchRolloutInfo(q *rollout.RolloutInfoQuery, ws ro | |||
return nil | |||
} | |||
|
|||
func (s *ArgoRolloutsServer) ListReplicaSetsAndPods(ctx context.Context) ([]*appsv1.ReplicaSet, []*corev1.Pod, error) { | |||
s.NamespaceVC.Start(ctx) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like NamespaceVC
can be removed from the type ArgoRolloutsServer struct
since we use the KubeClientset.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it's removed from ArgoRolloutsServer
. I guess you're looking at old file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, @perenesenko , sorry, I forgot to refer to the field in the struct
argo-rollouts/server/server.go
Line 73 in 96ba030
NamespaceVC NamespaceViewController |
With the change in this PR, NamespaceVC
seems being used in nowhere, so it could be deleted from the struct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it. Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
f63499c
to
59b20b0
Compare
Signed-off-by: Andrii Perenesenko <[email protected]>
Signed-off-by: Andrii Perenesenko <[email protected]>
…updates in loop Signed-off-by: Andrii Perenesenko <[email protected]>
Signed-off-by: Alexander Matyushentsev <[email protected]> Signed-off-by: Andrii Perenesenko <[email protected]>
…e from the dropdown or from edit box Signed-off-by: Andrii Perenesenko <[email protected]>
…paces list from the rollouts Signed-off-by: Andrii Perenesenko <[email protected]>
…pty availableNamespaces if failed to fetch rollouts Signed-off-by: Andrii Perenesenko <[email protected]>
Signed-off-by: Andrii Perenesenko <[email protected]>
…abel for NS list Signed-off-by: Andrii Perenesenko <[email protected]>
a54110e
to
b7d2491
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Checklist:
"fix(controller): Updates such and such. Fixes #1234"
.