frontend: Add feature to view deploy/rs/ds logs#2581
Conversation
d9de25c to
d542f04
Compare
|
So weird, I ran the tests locally, updated snapshots, wonder why it is still failing 🤔 |
|
Changing some UX for this |
d542f04 to
b2cf8f3
Compare
|
Updated, please review |
46a12fb to
7daec5f
Compare
7848c4f to
016f070
Compare
There was a problem hiding this comment.
Copilot reviewed 41 out of 57 changed files in this pull request and generated no comments.
Files not reviewed (16)
- frontend/src/components/common/Resource/MainInfoSection/snapshots/MainInfoSection.Normal.stories.storyshot: Language not supported
- frontend/src/components/common/Resource/MainInfoSection/snapshots/MainInfoSection.NullBacklink.stories.storyshot: Language not supported
- frontend/src/components/configmap/snapshots/Details.Empty.stories.storyshot: Language not supported
- frontend/src/components/configmap/snapshots/Details.WithBase.stories.storyshot: Language not supported
- frontend/src/components/crd/snapshots/CustomResourceDefinition.Details.stories.storyshot: Language not supported
- frontend/src/components/crd/snapshots/CustomResourceDetails.NoError.stories.storyshot: Language not supported
- frontend/src/components/cronjob/snapshots/CronJobDetails.EveryAst.stories.storyshot: Language not supported
- frontend/src/components/cronjob/snapshots/CronJobDetails.EveryMinute.stories.storyshot: Language not supported
- frontend/src/components/endpoints/snapshots/EndpointDetails.Default.stories.storyshot: Language not supported
- frontend/src/components/endpoints/snapshots/EndpointDetails.Error.stories.storyshot: Language not supported
- frontend/src/components/horizontalPodAutoscaler/snapshots/HPADetails.Default.stories.storyshot: Language not supported
- frontend/src/components/horizontalPodAutoscaler/snapshots/HPADetails.Error.stories.storyshot: Language not supported
- frontend/src/components/ingress/snapshots/ClassDetails.Basic.stories.storyshot: Language not supported
- frontend/src/components/ingress/snapshots/ClassDetails.WithDefault.stories.storyshot: Language not supported
- frontend/src/components/ingress/snapshots/Details.WithResource.stories.storyshot: Language not supported
- frontend/src/components/ingress/snapshots/Details.WithTLS.stories.storyshot: Language not supported
016f070 to
bbf2d1c
Compare
There was a problem hiding this comment.
I think this will be a very useful feature for people. It's very often the case I've personally wanted to look at all the logs in a deployment rather than ones from just one pod.
I think the error states could be added for if any request fails. Left a couple of notes in the spots I think they could be handled.
Maybe not in this PR... but it would probably good to add a loading state? I'm not sure if the logs already have a loading state? (I didn't look).
Adding some states into a LogsButton.stories.tsx would be nice to have.
bbf2d1c to
b8779b6
Compare
|
Updated the PR, please review |
I checked and can confirm that there isn't currently any loading state implemented for the logs
You're right - it would be good to add loading states for:
But I guess we can do it in a separate PR. WDYT? |
d8e8756 to
ae23695
Compare
ae23695 to
84766c1
Compare
frontend/src/components/common/Resource/MainInfoSection/MainInfoSectionHeader.tsx
Outdated
Show resolved
Hide resolved
84766c1 to
7eb9a87
Compare
b88a765 to
0cff437
Compare
This adds feature to view all the pods of pods in deploy, replicaSet, daemonSet rather than a specific pod. Fixes: #2552 Signed-off-by: Kautilya Tripathi <ktripathi@microsoft.com>
0cff437 to
d2c216a
Compare
|
Nice work. I think we can iterate later to add things like showing all containers' logs too. |
This adds feature to view all the pods of pods in a deployment/ReplicaSet/DaemonSet rather than going to a specific pod.
Fixes: #2552
Testing
kubectl create deployment nginx --image=nginx --replicas=3Screenshots