fix(argo): remove orphan duplicate value key on spread-ticks parameter

train-template.yaml had a stray `value: "5"` line directly after
`value: "1.0"` under `- name: spread-ticks`. Stricter YAML parsers
(Go go-yaml used by kustomize) reject duplicate mapping keys and bail
out of the entire kustomize bundle with line-52 errors that mislead
diagnosis to unrelated files.

Permissive parsers (kubectl apply -f's path) silently take the last
value, which made the bug invisible until `kubectl apply -k` was
attempted.

The orphan was a leftover from an earlier edit (likely a max-folds=5
or similar parameter that was renamed but not fully removed).
This commit is contained in:
jgrusewski
2026-04-28 22:02:48 +02:00
parent be0588099f
commit 96ef40a7b8

View File

@@ -11,7 +11,6 @@
# argo submit -n foxhunt --from=wftmpl/train
# argo submit -n foxhunt --from=wftmpl/train -p model=ppo -p train-epochs=100
# argo submit -n foxhunt --from=wftmpl/train -p hyperopt-trials=0 # skip hyperopt
---
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
@@ -64,7 +63,6 @@ spec:
value: "0.25"
- name: spread-ticks
value: "1.0"
value: "5"
- name: sanitizer
value: "none" # "none", "memcheck", "racecheck", "synccheck"