Skip to content
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

[Bug] Product filled with weird values #3578

Open
2 tasks done
KulykDmytro opened this issue Aug 9, 2024 · 4 comments
Open
2 tasks done

[Bug] Product filled with weird values #3578

KulykDmytro opened this issue Aug 9, 2024 · 4 comments
Labels
bug Something isn't working needs-triage

Comments

@KulykDmytro
Copy link

Kubecost Helm Chart Version

2.3.4

Kubernetes Version

1.30

Kubernetes Platform

EKS

Description

Have kubecostProductConfigs.labelMappingConfigs set

      labelMappingConfigs:
        enabled: true
        owner_label: owner
        team_label: team
        department_label: stream
        product_label: product
        environment_label: env

As result have Product in Allocations split by weird values (presumably with controller)

Steps to reproduce

Expected behavior

costs need to honor label config and be split by Product correctly

Impact

No response

Screenshots

image
image

Logs

No response

Slack discussion

No response

Troubleshooting

  • I have read and followed the issue guidelines and this is a bug impacting only the Helm chart.
  • I have searched other issues in this repository and mine is not recorded.
@KulykDmytro KulykDmytro added bug Something isn't working needs-triage labels Aug 9, 2024
@KulykDmytro KulykDmytro changed the title [Bug] Product filled with weird values [Bug] Product filled with weird values Aug 9, 2024
@AjayTripathy
Copy link
Contributor

@LastJedionEarth @jessegoodier do we have a test that can repro this? If not can we get one set up?

@jessegoodier
Copy link
Collaborator

@KulykDmytro
I was not able to reproduce this issue. All of our results match exactly. Can you confirm your yaml is formatted like this?
If you look at the bug report, you will see:

kubecostProductConfigs:
      labelMappingConfigs:
        enabled: true
        owner_label: owner
        team_label: team
        department_label: stream
        product_label: product
        environment_label: env

you can verify the setting is picked up in helmValues:
/model/helmValues

   "kubecostProductConfigs": {
        "carbonEstimates": true,
        "cloudIntegrationSecret": "cloud-integration",
        "clusterName": "kubecost-xxx",
        "labelMappingConfigs": {
            "department_external_label": "cost_info_business_category",
            "department_label": "cost_info_business_category",
            "enabled": true,
            "environment_label": "env",
            "owner_external_label": "cost_info_owner",
            "owner_label": "cost_info_owner",
            "product_external_label": "cost_info_product",
            "product_label": "cost_ask_info_product",
            "team_external_label": "cost_info_department",
            "team_label": "cost_info_department"
        },
...

@jessegoodier
Copy link
Collaborator

can you confirm what you have for /model/helmValues?

@chipzoller
Copy link
Collaborator

Bump on the request for repro here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage
Projects
None yet
Development

No branches or pull requests

4 participants