Skip to content

Conversation

Pokom
Copy link
Contributor

@Pokom Pokom commented Oct 6, 2025

Following a similar path as limits to pull cost attribution labels for
tenants. Adds a new internal library cals/tenant.go that provides an
interface that wraps the TenantProvider client. Updates all of the
wiring from Updated => Scraper to pass along the new cal client.

Starts the process of using the library in scraper.go, which right now
finds the cost attribution labels for a specific tenant. Returns an
empty slice if nothing is found.

This will be dependent upon the API changes being released to get cost
attribution labels defined at the tenant level.

Pokom added 3 commits October 6, 2025 12:52
⚠️ This is based upon the feedback from @ka3de in #1655 ⚠️

Update the protobuf definition to have cost attribution labels
associated with tenants instead of directly on checks.
This allows the api to pick up the changes and test out propogated cal's
from the api to checks.
Following a similar path as limits to pull cost attribution labels for
tenants. Adds a new internal library `cals/tenant.go` that provides an
interface that wraps the `TenantProvider` client. Updates all of the
wiring from Updated => Scraper to pass along the new cal client.

Starts the process of using the library in `scraper.go`, which right now
finds the cost attribution labels for a specific tenant. Returns an
empty slice if nothing is found.

This will be dependant upon the API changes being released to get cost
attribution labels defined at the tenant level.
Add a `testCalTenants` interface to mock out the cost attribution label
servce. This fixes the tests that were failing on the latest commits to
main.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant