feat: allow use of custom runner and node tags for Codex

This commit is contained in:
gmega 2025-02-20 11:59:24 -03:00
parent a8c19364b7
commit 688091c965
No known key found for this signature in database
GPG Key ID: 6290D34EAD824B18
2 changed files with 8 additions and 3 deletions

View File

@ -63,14 +63,14 @@ app.kubernetes.io/part-of: {{ include "experiment.groupId" . }}
cluster-autoscaler.kubernetes.io/safe-to-evict: "false"
{{- end }}
{{/* Minikube env. */}}
{{/* Image settings. */}}
{{- define "benchmark.harness.image" -}}
{{ .Values.deployment.minikubeEnv | ternary "bittorrent-benchmarks:minikube" "codexstorage/bittorrent-benchmarks:latest" }}
{{ .Values.deployment.minikubeEnv | ternary "bittorrent-benchmarks:minikube" (printf "codexstorage/bittorrent-benchmarks:%s" .Values.deployment.runnerTag) }}
{{- end -}}
{{- define "codex.image" -}}
{{ .Values.deployment.minikubeEnv | ternary "nim-codex:minikube" "codexstorage/nim-codex:latest" }}
{{ .Values.deployment.minikubeEnv | ternary "nim-codex:minikube" (printf "codexstorage/nim-codex:%s" .Values.deployment.nodeTag) }}
{{- end -}}
{{- define "benchmark.harness.imagePullPolicy" -}}

View File

@ -30,6 +30,11 @@ deployment:
# Disables pulling of images and uses :minikube tag for the test runner, agents, and Codex.
minikubeEnv: false
# Allows overriding the tags for non-minikube images. This is useful when you're trying to
# run the experiment in the cluster but off of a Codex or benchmark harness branch.
runnerTag: "latest"
nodeTag: "latest"
# Labels for setting Deluge, tracker, and experiment runner node affinity towards pools.
# Example:
# codexNodePool: