Skip to content

Commit 271efe7

Browse files
author
Alan Christie
committed
feat: Add basic cost variables
1 parent 0fd6fc5 commit 271efe7

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

roles/operator/defaults/main.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,7 @@ jo_pod_node_selector_value: 'yes'
4141

4242
# Apply Priority Class to Pods launched
4343
jo_apply_pod_priority_class: no
44+
45+
# Costing information
46+
jo_cost_cost: '1.0'
47+
jo_cost_period: '1 hour'

roles/operator/templates/configmap-data-manager.yaml.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ data:
2929

3030
[cost]
3131
# Charging configuration
32-
cost = 1
32+
cost = {{ jo_cost_cost }}
33+
period = {{ jo_cost_period }}
3334
unit = PxGi
34-
period = 1 hour
3535
pro rata = yes

0 commit comments

Comments
 (0)