Skip to content

fix(chart): default agent and operator images to ghcr.io - #2591

Open
Rémi BUISSON (darkweaver87) wants to merge 4 commits into
microsoft:mainfrom
darkweaver87:fix/default-agent-operator-images-to-ghcr
Open

fix(chart): default agent and operator images to ghcr.io#2591
Rémi BUISSON (darkweaver87) wants to merge 4 commits into
microsoft:mainfrom
darkweaver87:fix/default-agent-operator-images-to-ghcr

Conversation

@darkweaver87

@darkweaver87 Rémi BUISSON (darkweaver87) commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Motivation

The retina-hubble chart defaults the agent and operator images to acndev.azurecr.io, an internal registry that isn't reachable outside Microsoft, so a stock helm install of the published chart lands in ImagePullBackOff. The retina-init image, and the standard chart's agent/operator, already default to ghcr.io/microsoft/retina/*; this aligns the hubble chart with them. Only the two default repositories change — rendered output is otherwise identical.

repository: acndev.azurecr.io/retina-operator
repository: ghcr.io/microsoft/retina/retina-operator
pullPolicy: Always
tag: "latest"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think we've ever published latest tags for any images, we should pin this to a released version tag

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good catch — done. The three Retina image tags now default to .Chart.Version (the released chart version, e.g. v1.2.3) when left empty, instead of latest; --set <image>.tag=… still overrides. Verified with helm package --version + helm template — which is exactly what release-charts.yaml (L55-56) does, so the published chart's .Chart.Version is the release tag.

@nddq Quang Nguyen (nddq) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should expand this fix to the default charts as well, since they are being hardcoded to v0.0.2.

pullPolicy: Always
tag: "latest"
# -- Image tag; when empty, defaults to the chart version (the released version).
tag: ""

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: .Chart.Version is only the release tag for the packaged chart, since we don't update those, from a source-tree install it is still 0.0.1, so helm install ./deploy/hubble/... renders retina-agent:0.0.1. I'd say "the chart version" and drop the parenthetical.

repository: acndev.azurecr.io/retina-agent
tag: "latest"
repository: ghcr.io/microsoft/retina/retina-agent
tag: ""

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we can mirror the comments for the retina-operator's tag here as well + agent-init

enabled: true
name: retina-agent-init
repository: ghcr.io/microsoft/retina/retina-init

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

drop this whitespace

enabled: true
name: retina-agent-init
repository: ghcr.io/microsoft/retina/retina-init

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change

@darkweaver87
Rémi BUISSON (darkweaver87) force-pushed the fix/default-agent-operator-images-to-ghcr branch from 1f76919 to 6047ab3 Compare August 26, 2026 05:40
@darkweaver87

Copy link
Copy Markdown
Contributor Author

Quang Nguyen (@nddq) thanks for your review. I addressed your comments :-)

Signed-off-by: darkweaver87 <remi-buisson@orange.fr>
… latest

Signed-off-by: darkweaver87 <remi-buisson@orange.fr>
Signed-off-by: darkweaver87 <remi-buisson@orange.fr>
Signed-off-by: darkweaver87 <remi-buisson@orange.fr>
@darkweaver87
Rémi BUISSON (darkweaver87) force-pushed the fix/default-agent-operator-images-to-ghcr branch from 6047ab3 to ccb0e59 Compare August 31, 2026 07:34
# Overrides the image tag whose default is the chart appVersion.
tag: "v0.0.2"
# -- Image tag; when empty, defaults to the chart version.
tag: ""

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This regresses the source-tree install. Chart.yaml is still 0.0.1, so helm install retina ./deploy/standard/manifests/controller/helm/retina/ renders retina-agent:0.0.1. The registry returns 404 for that tag and 200 for v0.0.2. docs/04-Captures/04-managed-storage-account.md L59 uses that local path with no tag override, so it now ends in ImagePullBackOff.

Let's point it at the published chart instead:

-helm upgrade --install retina ./deploy/standard/manifests/controller/helm/retina/ \
+VERSION=$( curl -sL https://api.github.com/repos/microsoft/retina/releases/latest | jq -r .name)
+helm upgrade --install retina oci://ghcr.io/microsoft/retina/charts/retina \
+  --version $VERSION \
   --set operator.enabled=true \

templates/NOTES.txt L1 points at the same local path. That one is pre-existing, so a follow-up is fine.

enabled: true
replicas: 1
repository: acndev.azurecr.io/retina-operator
repository: ghcr.io/microsoft/retina/retina-operator

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The Hubble block in docs/02-Installation/01-Setup.md still sets three repositories that now match the defaults. I rendered the packaged chart with and without those flags. The output is identical. Let's drop L133, L136 and L139:

         --set operator.enabled=true \
-        --set operator.repository=ghcr.io/microsoft/retina/retina-operator \
         --set operator.tag=$VERSION \
         --set agent.enabled=true \
-        --set agent.repository=ghcr.io/microsoft/retina/retina-agent \
         --set agent.tag=$VERSION \
         --set agent.init.enabled=true \
-        --set agent.init.repository=ghcr.io/microsoft/retina/retina-init \
         --set agent.init.tag=$VERSION \

The --set *.tag=$VERSION lines are dead now too, in both charts' blocks. That sweep is larger, so a follow-up is fine.

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