Skip to content

Commit fad2e49

Browse files
author
rrajashe
committed
chore: update cost management optimization labels
- Updates labels to match changes introduced in cost operator v1.4.0 and later.
1 parent 4189628 commit fad2e49

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

components/policies/development/cost-management/propagate-cost-management-labels/.chainsaw-test/resources/expected-pod-matching.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ metadata:
55
namespace: ($namespace)
66
labels:
77
cost-center: ($cost_center)
8-
insights_cost_management_optimizations: "true"
8+
cost_management_optimizations: "true"

components/policies/development/cost-management/propagate-cost-management-labels/.chainsaw-test/resources/namespace-cost-center.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ metadata:
55
labels:
66
konflux-ci.dev/type: tenant
77
cost-center: ($cost_center)
8-
insights_cost_management_optimizations: "true"
8+
cost_management_optimizations: "true"

components/policies/development/cost-management/propagate-cost-management-labels/propagate-cost-management-labels.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ metadata:
1010
policies.kyverno.io/subject: Pod
1111
policies.kyverno.io/description: >-
1212
Propagates the `cost-center` label from non-managed tenant namespaces to pods,
13-
and sets the `insights_cost_management_optimizations` label to `true` on those pods.
13+
and sets the `cost_management_optimizations` label to `true` on those pods.
1414
spec:
1515
webhookConfiguration:
1616
failurePolicy: Ignore
@@ -53,4 +53,4 @@ spec:
5353
metadata:
5454
labels:
5555
cost-center: "{{ costcenterLabel }}"
56-
insights_cost_management_optimizations: "true"
56+
cost_management_optimizations: "true"

components/policies/staging/base/cost-management/validate-cost-management-labels/.chainsaw-test/resources/namespace-cost-center.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ metadata:
55
labels:
66
konflux-ci.dev/type: tenant
77
cost-center: ($cost_center)
8-
insights_cost_management_optimizations: "true"
8+
cost_management_optimizations: "true"

components/policies/staging/base/cost-management/validate-cost-management-labels/.chainsaw-test/resources/namespace-empty-cost-center.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ metadata:
55
labels:
66
konflux-ci.dev/type: tenant
77
cost-center: ""
8-
insights_cost_management_optimizations: "true"
8+
cost_management_optimizations: "true"

0 commit comments

Comments
 (0)