Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Add events page #13

Merged
merged 5 commits into from
Mar 15, 2021
Merged

Add events page #13

merged 5 commits into from
Mar 15, 2021

Conversation

jpellizzari
Copy link
Collaborator

Adds a basic events page to help with troubleshooting.

Screenshot from 2021-03-12 14-08-22

Signed-off-by: Jordan Pellizzari <jordan@weave.works>
Signed-off-by: Jordan Pellizzari <jordan@weave.works>
@jpellizzari jpellizzari requested a review from bia March 12, 2021 22:09
Signed-off-by: Jordan Pellizzari <jordan@weave.works>
Copy link

@bia bia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is helpful!
Thought some of these 'Reason's don't semantically fit the category name 'Reason'?
Screenshot 2021-03-13 at 22 37 48

Also, this may be user error, but this branch for some reason has trouble fetching Contexts for me :
Screenshot 2021-03-13 at 22 34 32

Signed-off-by: Jordan Pellizzari <jordan@weave.works>
Signed-off-by: Jordan Pellizzari <jordan@weave.works>
@jpellizzari
Copy link
Collaborator Author

This is helpful!
Thought some of these 'Reason's don't semantically fit the category name 'Reason'?

Not sure what's going on with that. That is what the API response returns.

@jpellizzari jpellizzari merged commit 73f084e into main Mar 15, 2021
@jpellizzari jpellizzari deleted the show-events branch March 15, 2021 19:31
@bia
Copy link

bia commented Mar 16, 2021

Not sure what's going on with that. That is what the API response returns.

I understand, but in that case should the column be titled 'Reason' or something else like 'Type'?

@hiddeco
Copy link
Member

hiddeco commented Mar 16, 2021

This needs to be normalized from our point (as in: the controllers that emit the events) to meet the K8s standards, see: fluxcd/pkg#56 (comment)

@jpellizzari
Copy link
Collaborator Author

Not sure what's going on with that. That is what the API response returns.

I understand, but in that case should the column be titled 'Reason' or something else like 'Type'?

There is another field called "type", and the "Reason" field is returning those "LeaderElection" values. I think @hiddeco 's comment speaks to that discrepancy

@jpellizzari
Copy link
Collaborator Author

This needs to be normalized from our point (as in: the controllers that emit the events) to meet the K8s standards, see: fluxcd/pkg#56 (comment)

Is there something I need to change in this PR?

@hiddeco
Copy link
Member

hiddeco commented Mar 16, 2021

No, nothing to be done here. We need to address this in fluxcd/pkg and implement it in the controllers, once that's done it will show up correctly and make sense again in the UI.

hiddeco added a commit to fluxcd/pkg that referenced this pull request Apr 14, 2021
This commit adds support for providing a reason to the Event method,
and maps the severity of an event to a K8s core event type. This makes
the emitted events in-line with Kubernetes standards, and is beneficial
to the Flux UI: fluxcd/webui#13

The reason to not fully depend on the K8s event type and drop the
severity is because there have been reports from users wanting to have
access to "debug" events, a type not known to Kubernetes.

Signed-off-by: Hidde Beydals <hello@hidde.co>
hiddeco added a commit to fluxcd/pkg that referenced this pull request May 1, 2021
This commit adds support for providing a reason to the Event method,
and maps the severity of an event to a K8s core event type. This makes
the emitted events in-line with Kubernetes standards, and is beneficial
to the Flux UI: fluxcd/webui#13

The reason to not fully depend on the K8s event type and drop the
severity is because there have been reports from users wanting to have
access to "debug" events, a type not known to Kubernetes.

Signed-off-by: Hidde Beydals <hello@hidde.co>
hiddeco added a commit to fluxcd/pkg that referenced this pull request May 12, 2021
This commit adds support for providing a reason to the Event method,
and maps the severity of an event to a K8s core event type. This makes
the emitted events in-line with Kubernetes standards, and is beneficial
to the Flux UI: fluxcd/webui#13

The reason to not fully depend on the K8s event type and drop the
severity is because there have been reports from users wanting to have
access to "debug" events, a type not known to Kubernetes.

Signed-off-by: Hidde Beydals <hello@hidde.co>
hiddeco added a commit to fluxcd/pkg that referenced this pull request May 14, 2021
This commit adds support for providing a reason to the Event method,
and maps the severity of an event to a K8s core event type. This makes
the emitted events in-line with Kubernetes standards, and is beneficial
to the Flux UI: fluxcd/webui#13

The reason to not fully depend on the K8s event type and drop the
severity is because there have been reports from users wanting to have
access to "debug" events, a type not known to Kubernetes.

Signed-off-by: Hidde Beydals <hello@hidde.co>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants