Skip to content

Commit 82f17d9

Browse files
authored
Flag helm annotations as an advanced feature (#3060)
1 parent a32e31b commit 82f17d9

8 files changed

Lines changed: 20 additions & 4 deletions
35.8 KB
Loading
62.6 KB
Loading
18.3 KB
Loading
81.3 KB
Loading
151 KB
Loading
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"width":1588,"height":1214,"updated":"2026-03-11T00:40:11.726Z"}

src/pages/docs/argo-cd/annotations/helm-annotations.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
---
22
layout: src/layouts/Default.astro
33
pubDate: 2025-09-15
4-
modDate: 2025-09-15
4+
modDate: 2026-03-11
55
title: Helm Image Tags Annotations
66
description: What annotations are required to
77
navTitle: Helm Annotations
88
hideInThisSectionHeader: true
99
---
1010

11+
:::div{.info}
12+
**Advanced Feature:** Helm image path configuration via Argo CD Application annotations is an advanced feature, and should only be used if configuring Helm image paths directly in the [Update Argo CD Application Image Tags step](/docs/argo-cd/steps/update-application-image-tags) is insufficient for your requirements.
13+
:::
14+
1115
When executing the [Update Argo CD Application Image Tags step](/docs/argo-cd/steps#update-application-image-tags) against an Argo CD Application that is deploying a Helm chart,
12-
it is necessary to provide extra annotations to define which fields in the Helm values file represent an image to be updated.
16+
it is necessary to provide extra information to allow Octopus to identify the appropriate fields in the Helm values file to update.
1317

1418
This is because an image reference could be made up of multiple different values file entries. Consider the image fields in [values.yaml](https://github.com/OctopusDeploy/helm-charts/blob/main/charts/kubernetes-agent/values.yaml) for the Kubernetes agent Helm chart:
1519

@@ -37,7 +41,12 @@ global:
3741

3842
In this case, the `global.image.repositoryAndTag` contains the tag to be updated.
3943

40-
As the structure of Helm values files can vary widely between charts, it's necessary to require you to specify custom annotations on the Argo CD Applications.
44+
Typically the value path to update would be provided via the **helm image value** field on the package/container defined during step configuration. However, for more complex use cases, you can define the fields to update via custom annotations.
45+
46+
:::div{.info}
47+
Annotations will only be considered during step-execution if *none* of the packages/containers defined for a step have a helm image value configured.
48+
Thus, if any package/container in your step requires annotations, then all packages must be updated using annotations.
49+
:::
4150

4251
The annotation is as follows:
4352

src/pages/docs/argo-cd/steps/update-application-image-tags.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: src/layouts/Default.astro
33
pubDate: 2025-09-15
4-
modDate: 2026-03-04
4+
modDate: 2026-03-11
55
title: Update Argo CD Application Image Tags
66
description: Deployment steps to modify your Argo CD Applications
77
navOrder: 30
@@ -20,6 +20,12 @@ more information.
2020

2121
Add package references for each container image you would like to update when you run your deployment. Unreferenced container images in your manifests will not be changed by Octopus.
2222

23+
When targeting a Helm-based application source, each referenced container image should have a populated **Helm image tag path** field. This is the YAML path to the specific field in your values file that contains the tag of the referenced container image (for example, `agent.image.tag`). This can be set in the **Reference a package** drawer when adding or editing a package reference. This is not required for directory or Kustomize sources.
24+
25+
:::figure
26+
![The Helm image tag path field in the Reference a package drawer](/docs/img/argo-cd/update-application-image-tags-helm-values-tag.png)
27+
:::
28+
2329
If the application cluster's default registry has been changed, see [cluster annotations](/docs/argo-cd/annotations/cluster-annotations) to ensure
2430
the correct default registry is shared with Octopus.
2531

0 commit comments

Comments
 (0)