Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type: application
# name. Without it a setting the executor binary reads but the chart does not
# model is unreachable — a values key the template ignores is a silent no-op,
# and an operator edit to the live Deployment is dropped by the next apply.
version: 0.23.20
version: 0.23.21
# Default image tag for the framework components when values don't override.
appVersion: "0.3.1"
home: https://github.com/bborbe/agent
Expand Down
5 changes: 5 additions & 0 deletions helm/crds/config-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ spec:
# spawned Job's start. 0 means no separate budget. When both this and
# zombieJobTimeoutSeconds are set, the smaller deadline wins.
runBudgetSeconds: {type: integer, minimum: 0}
# Optional; caps the tokens the agent may spend across its runs in one
# run window. Unset or 0 means no ceiling. Declared here because this
# CRD sets preserveUnknownFields: false — an undeclared spec.tokenCeiling
# would be pruned and the ceiling silently never fire.
tokenCeiling: {type: integer, minimum: 0}
# Optional; restricts the hours in which this agent's Jobs may be
# spawned. Unset means no window. A spawn outside the window is
# deferred and re-driven when it opens, never dropped. Declared here
Expand Down
3 changes: 3 additions & 0 deletions helm/templates/agents.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ spec:
{{- if $agent.runBudgetSeconds }}
runBudgetSeconds: {{ $agent.runBudgetSeconds }}
{{- end }}
{{- if $agent.tokenCeiling }}
tokenCeiling: {{ $agent.tokenCeiling }}
{{- end }}
{{- with $agent.runWindow }}
runWindow:
{{- with .timezone }}
Expand Down
Loading