johnride
  • Joined on 2024-02-06
johnride pushed to TenantManager_impl_k8s_anywhere at NationTech/harmony 2025-06-04 20:15:02 +00:00
e17ac1af83 Merge remote-tracking branch 'origin/master' into TenantManager_impl_k8s_anywhere
31e59937dc Merge pull request 'feat: Initial setup for monitoring and alerting' (#48) from feat/monitor into master
12eb4ae31f fix: cargo fmt
a2be9457b9 wip: removed AlertReceiverConfig
0d56fbc09d wip: applied comments in pr, changed naming of AlertChannel to AlertReceiver and added rust doc to Monitor for clarity
Compare 11 commits »
johnride suggested changes for NationTech/harmony#50 2025-06-04 18:41:39 +00:00
feat: added the steps to install discord-webhook-receiver for k8s anywhere topology if not already installed

Does this even work? I don't see the binding with the ensure_ready impementation of K8sAnywhere.

johnride commented on pull request NationTech/harmony#50 2025-06-04 18:41:38 +00:00
feat: added the steps to install discord-webhook-receiver for k8s anywhere topology if not already installed

autoloading inventory here is a big smell, you should avoid this as much as possible. What if the used built a custom Inventory and now you're autoloading his production inventory and you start wiping operating systems and network configurations?

johnride commented on pull request NationTech/harmony#50 2025-06-04 18:41:38 +00:00
feat: added the steps to install discord-webhook-receiver for k8s anywhere topology if not already installed

This function looks really weird, I feel like this is a hack to link the config and the dependency together.

johnride commented on pull request NationTech/harmony#50 2025-06-04 18:41:38 +00:00
feat: added the steps to install discord-webhook-receiver for k8s anywhere topology if not already installed

This should not be called deploy as this will not deploy every time it is called. We use "ensure" for this behavior.

johnride commented on pull request NationTech/harmony#50 2025-06-04 18:41:38 +00:00
feat: added the steps to install discord-webhook-receiver for k8s anywhere topology if not already installed

It's a bit weird to use a public raw function like this to initialize a Score, why not just use the usual struct building method?

johnride created pull request NationTech/harmony#51 2025-06-04 18:16:15 +00:00
docs: Introduce project delivery automation ADR. This is still WIP
johnride pushed to adr/project-delivery-automation at NationTech/harmony 2025-06-04 18:15:57 +00:00
a47c1f15fe docs: Introduce project delivery automation ADR. This is still WIP
johnride created branch adr/project-delivery-automation in NationTech/harmony 2025-06-04 18:15:57 +00:00
johnride commented on pull request NationTech/harmony#48 2025-06-02 20:59:15 +00:00
feat: Initial setup for monitoring and alerting

This rustdoc is pretty good to explain the abstraction, but giving a concrete example such as Prometheus would make a complete understanding much easier. Even I still have a bit of trouble to figure it out as-is.

johnride commented on pull request NationTech/harmony#48 2025-06-02 17:30:28 +00:00
feat: Initial setup for monitoring and alerting

You don't have to specify Topology here. I think it's better to keep the trait bindings to the minimum. DiscordWebhookSender should be enough.

johnride suggested changes for NationTech/harmony#48 2025-06-02 17:30:28 +00:00
feat: Initial setup for monitoring and alerting
johnride commented on pull request NationTech/harmony#48 2025-06-02 17:30:28 +00:00
feat: Initial setup for monitoring and alerting

Nice 👍

johnride commented on pull request NationTech/harmony#48 2025-06-02 17:30:28 +00:00
feat: Initial setup for monitoring and alerting

I think this trait is correct but the way it is implemented feels wrong. I understand that you currently only have the discord implementation and you interact directly with it. But I feel like there will be a use case where we will want to have simple getter and setters for common attributes of AlertChannelConfig. I don't see a 100% clear use case right now though.

johnride commented on pull request NationTech/harmony#48 2025-06-02 17:30:27 +00:00
feat: Initial setup for monitoring and alerting

I don't think webhook url deserves to be in this abstract trait. It is possible that the AlertChannel does not have a webhook, such as SMS, phone calls, SMTP.

johnride commented on pull request NationTech/harmony#48 2025-06-02 17:30:27 +00:00
feat: Initial setup for monitoring and alerting

A bit of rustdoc would be relevant here to explain the intended use of this trait.

johnride suggested changes for NationTech/harmony#48 2025-06-02 12:54:31 +00:00
feat: Initial setup for monitoring and alerting
johnride commented on pull request NationTech/harmony#48 2025-06-02 12:54:31 +00:00
feat: Initial setup for monitoring and alerting

SRP problem

johnride commented on pull request NationTech/harmony#48 2025-06-02 12:54:31 +00:00
feat: Initial setup for monitoring and alerting

I think we can solve the dependency issue by introducing a T here :