Skip to content

feat(vector): add ability to provide a digest for haproxy#524

Open
LaurentGoderre wants to merge 3 commits into
vectordotdev:developfrom
LaurentGoderre:haproxy-image-digest
Open

feat(vector): add ability to provide a digest for haproxy#524
LaurentGoderre wants to merge 3 commits into
vectordotdev:developfrom
LaurentGoderre:haproxy-image-digest

Conversation

@LaurentGoderre
Copy link
Copy Markdown

This follows the same pattern as the image syntax for the vector container

@pront
Copy link
Copy Markdown
Member

pront commented Apr 9, 2026

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f2d51f79e0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread charts/vector/templates/haproxy/_helpers.tpl
This follows the same pattern as the image syntax for the vector container
@LaurentGoderre
Copy link
Copy Markdown
Author

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9a1802e68f

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread charts/vector/templates/haproxy/_helpers.tpl
Without `| default ""`, setting `haproxy.image.tag: null` (a common
pattern when overriding with a digest-only image) makes `trim` receive
nil and aborts template rendering before the digest branches run.
Matches the `| default ""` guard already used by `vector.image`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@pront pront changed the title add ability to provide a digest for haproxy feat(vector): add ability to provide a digest for haproxy May 13, 2026
@pront pront enabled auto-merge (squash) May 13, 2026 21:09
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c5cd6535fb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +42 to +46
{{- else if hasPrefix "sha256:" $tag -}}
{{- printf "%s@%s" $repo $tag -}}

{{- /* Case 3: tag@digest combined syntax */ -}}
{{- else if contains "@sha256:" $tag -}}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Avoid digest-valued tags in the version label

When HAProxy users set haproxy.image.tag to one of the newly supported digest forms (sha256:... here, or tag@sha256:... in the next branch), the image renders correctly but haproxy.labels still emits app.kubernetes.io/version: {{ .Values.haproxy.image.tag | quote }}. Kubernetes label values may not contain : or @, so these advertised inputs make the Deployment metadata invalid whenever HAProxy is enabled; either avoid supporting digest syntax in tag or sanitize/omit the label for those cases.

Useful? React with 👍 / 👎.

@pront pront disabled auto-merge May 13, 2026 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants