Skip to content

fix: configurable gitops branch for argocd-image-updater#3049

Merged
j-zimnowoda merged 2 commits into
mainfrom
APL-1714
Mar 16, 2026
Merged

fix: configurable gitops branch for argocd-image-updater#3049
j-zimnowoda merged 2 commits into
mainfrom
APL-1714

Conversation

@j-zimnowoda
Copy link
Copy Markdown
Contributor

📌 Summary

🔍 Reviewer Notes

🧹 Checklist

  • Code is readable, maintainable, and robust.
  • Unit tests added/updated

@svcAPLBot
Copy link
Copy Markdown
Contributor

svcAPLBot commented Mar 16, 2026

Comparison of Helm chart templating output:

@@ data.branch @@
! ± value change
- main
+ test-branch


@@ data.GIT_BRANCH @@
! ± value change
- main
+ test-branch




@@ spec.sources @@
# argoproj.io/v1alpha1/Application/argocd/team-admin-crossplane-custom-namespace
! - one list entry removed:
- - repoURL: "https://gitea.dev.linode-apl.net/otomi/values.git"
-   targetRevision: main
-   ref: values
! + one list entry added:
+ - repoURL: "https://gitea.dev.linode-apl.net/otomi/values.git"
+   targetRevision: test-branch
+   ref: values

@@ spec.sources @@
# argoproj.io/v1alpha1/Application/argocd/team-admin-crossplane-team-namespace
! - one list entry removed:
- - repoURL: "https://gitea.dev.linode-apl.net/otomi/values.git"
-   targetRevision: main
-   ref: values
! + one list entry added:
+ - repoURL: "https://gitea.dev.linode-apl.net/otomi/values.git"
+   targetRevision: test-branch
+   ref: values

@@ spec.sources @@
# argoproj.io/v1alpha1/Application/argocd/team-admin-wa1
! - one list entry removed:
- - repoURL: "https://gitea.dev.linode-apl.net/otomi/values.git"
-   targetRevision: main
-   ref: values
! + one list entry added:
+ - repoURL: "https://gitea.dev.linode-apl.net/otomi/values.git"
+   targetRevision: test-branch
+   ref: values

@@ spec.sources @@
# argoproj.io/v1alpha1/Application/argocd/team-admin-wa2
! - one list entry removed:
- - repoURL: "https://gitea.dev.linode-apl.net/otomi/values.git"
-   targetRevision: main
-   ref: values
! + one list entry added:
+ - repoURL: "https://gitea.dev.linode-apl.net/otomi/values.git"
+   targetRevision: test-branch
+   ref: values


@@ spec.sources.env/teams/admin/sealedsecrets.targetRevision @@
! ± value change
- main
+ test-branch

@@ spec.sources.env/teams/admin/knowledgebases.targetRevision @@
! ± value change
- main
+ test-branch

@@ spec.sources.env/teams/admin/databases.targetRevision @@
! ± value change
- main
+ test-branch

@@ spec.sources.env/teams/admin/agents.targetRevision @@
! ± value change
- main
+ test-branch


@@ spec.sources @@
# argoproj.io/v1alpha1/Application/argocd/team-demo-wd
! - one list entry removed:
- - repoURL: "https://gitea.dev.linode-apl.net/otomi/values.git"
-   targetRevision: main
-   ref: values
! + one list entry added:
+ - repoURL: "https://gitea.dev.linode-apl.net/otomi/values.git"
+   targetRevision: test-branch
+   ref: values

@@ spec.sources @@
# argoproj.io/v1alpha1/Application/argocd/team-demo-wd1
! - one list entry removed:
- - repoURL: "https://gitea.dev.linode-apl.net/otomi/values.git"
-   targetRevision: main
-   ref: values
! + one list entry added:
+ - repoURL: "https://gitea.dev.linode-apl.net/otomi/values.git"
+   targetRevision: test-branch
+   ref: values

@@ spec.sources @@
# argoproj.io/v1alpha1/Application/argocd/team-demo-wd2
! - one list entry removed:
- - repoURL: "https://gitea.dev.linode-apl.net/otomi/values.git"
-   targetRevision: main
-   ref: values
! + one list entry added:
+ - repoURL: "https://gitea.dev.linode-apl.net/otomi/values.git"
+   targetRevision: test-branch
+   ref: values

@@ spec.sources @@
# argoproj.io/v1alpha1/Application/argocd/team-demo-wd3
! - one list entry removed:
- - repoURL: "https://gitea.dev.linode-apl.net/otomi/values.git"
-   targetRevision: main
-   ref: values
! + one list entry added:
+ - repoURL: "https://gitea.dev.linode-apl.net/otomi/values.git"
+   targetRevision: test-branch
+   ref: values


@@ spec.sources.env/teams/demo/sealedsecrets.targetRevision @@
! ± value change
- main
+ test-branch

@@ spec.sources.env/teams/demo/knowledgebases.targetRevision @@
! ± value change
- main
+ test-branch

@@ spec.sources.env/teams/demo/databases.targetRevision @@
! ± value change
- main
+ test-branch

@@ spec.sources.env/teams/demo/agents.targetRevision @@
! ± value change
- main
+ test-branch


@@ spec.applicationRefs @@
! - two list entries removed:
- - namePattern: team-demo-wd1
-   images:
-   - alias: team-demo-wd1
-     commonUpdateSettings:
-       updateStrategy: digest
-     imageName: "harbor.try-otomi.net/team-orange/blue:latest"
-     manifestTargets:
-       helm:
-         name: v2.image.name
-         tag: v2.image.tag
-   writeBackConfig:
-     method: git
-     gitConfig:
-       branch: main
-       repository: "https://gitea.dev.linode-apl.net/otomi/values.git"
-       writeBackTarget: "helmvalues:/env/teams/demo/workloadValues/wd1.managed.yaml"
- - namePattern: team-demo-wd2
-   images:
-   - alias: team-demo-wd2
-     commonUpdateSettings:
-       updateStrategy: semver
-     imageName: "harbor.try-otomi.net/team-orange/green:1.12"
-     manifestTargets:
-       helm:
-         name: image.name
-         tag: image.tag
-   writeBackConfig:
-     method: git
-     gitConfig:
-       branch: main
-       repository: "https://gitea.dev.linode-apl.net/otomi/values.git"
-       writeBackTarget: "helmvalues:/env/teams/demo/workloadValues/wd2.managed.yaml"
! + two list entries added:
+ - namePattern: team-demo-wd1
+   images:
+   - alias: team-demo-wd1
+     commonUpdateSettings:
+       updateStrategy: digest
+     imageName: "harbor.try-otomi.net/team-orange/blue:latest"
+     manifestTargets:
+       helm:
+         name: v2.image.name
+         tag: v2.image.tag
+   writeBackConfig:
+     method: git
+     gitConfig:
+       branch: test-branch
+       repository: "https://gitea.dev.linode-apl.net/otomi/values.git"
+       writeBackTarget: "helmvalues:/env/teams/demo/workloadValues/wd1.managed.yaml"
+ - namePattern: team-demo-wd2
+   images:
+   - alias: team-demo-wd2
+     commonUpdateSettings:
+       updateStrategy: semver
+     imageName: "harbor.try-otomi.net/team-orange/green:1.12"
+     manifestTargets:
+       helm:
+         name: image.name
+         tag: image.tag
+   writeBackConfig:
+     method: git
+     gitConfig:
+       branch: test-branch
+       repository: "https://gitea.dev.linode-apl.net/otomi/values.git"
+       writeBackTarget: "helmvalues:/env/teams/demo/workloadValues/wd2.managed.yaml"


@@ spec.sources.env/teams/dev/sealedsecrets.targetRevision @@
! ± value change
- main
+ test-branch

@@ spec.sources.env/teams/dev/knowledgebases.targetRevision @@
! ± value change
- main
+ test-branch

@@ spec.sources.env/teams/dev/databases.targetRevision @@
! ± value change
- main
+ test-branch

@@ spec.sources.env/teams/dev/agents.targetRevision @@
! ± value change
- main
+ test-branch


@@ otomi.git.branch @@
! ± value change
- main
+ test-branch

@j-zimnowoda j-zimnowoda merged commit a15ca00 into main Mar 16, 2026
14 checks passed
@j-zimnowoda j-zimnowoda deleted the APL-1714 branch March 16, 2026 12:48
Ani1357 pushed a commit that referenced this pull request Mar 19, 2026
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.

4 participants