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: 2 additions & 0 deletions charts/openab/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
openab {{ .Chart.AppVersion }} has been installed!

💡 Agent images without an explicit tag (no ":") auto-append {{ .Chart.AppVersion }}.

⚠️ Channel/user IDs must be set with --set-string (not --set) to avoid float64 precision loss.

Agents deployed:
Expand Down
8 changes: 7 additions & 1 deletion charts/openab/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,17 @@ app.kubernetes.io/component: {{ .agent }}
{{- printf "%s-%s" (include "openab.fullname" .ctx) .agent | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/* Resolve image: agent-level string override → global default (repository:tag, tag defaults to appVersion) */}}
{{/* Resolve image: agent-level string override → global default (repository:tag, tag defaults to appVersion).
Caveat: "contains :" treats registry ports (e.g. my-registry:5000/img) as tagged.
Not an issue for ghcr.io / Docker Hub; revisit if custom registries with ports are needed. */}}
{{- define "openab.agentImage" -}}
{{- if and .cfg.image (kindIs "string" .cfg.image) (ne .cfg.image "") }}
{{- if contains ":" .cfg.image }}
{{- .cfg.image }}
{{- else }}
{{- printf "%s:%s" .cfg.image (default .ctx.Chart.AppVersion .ctx.Values.image.tag) }}
{{- end }}
{{- else }}
{{- $tag := default .ctx.Chart.AppVersion .ctx.Values.image.tag }}
{{- printf "%s:%s" .ctx.Values.image.repository $tag }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion charts/openab/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ agents:
# nodeSelector: {}
# tolerations: []
# affinity: {}
# image: "ghcr.io/openabdev/openab-claude:latest"
# image: "ghcr.io/openabdev/openab-claude" # tag omitted → auto-appends appVersion
# opencode:
# command: opencode
# args:
Expand Down
Loading