Skip to content

feat: set gitops targetrevision to gitops branch#3041

Merged
ElderMatt merged 1 commit into
mainfrom
APL-1690
Mar 12, 2026
Merged

feat: set gitops targetrevision to gitops branch#3041
ElderMatt merged 1 commit into
mainfrom
APL-1690

Conversation

@ElderMatt
Copy link
Copy Markdown
Contributor

This PR fixes the issue when creating a workload it uses the workload revision for the gitops as well instead of the gitops branch, when creating the workload in argocd

@svcAPLBot
Copy link
Copy Markdown
Contributor

Comparison of Helm chart templating output:

@@ 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: 1.11.2
-   ref: values
! + one list entry added:
+ - repoURL: "https://gitea.dev.linode-apl.net/otomi/values.git"
+   targetRevision: main
+   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: 1.11.2
-   ref: values
! + one list entry added:
+ - repoURL: "https://gitea.dev.linode-apl.net/otomi/values.git"
+   targetRevision: main
+   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: HEAD
-   ref: values
! + one list entry added:
+ - repoURL: "https://gitea.dev.linode-apl.net/otomi/values.git"
+   targetRevision: main
+   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: 1.2.3
-   ref: values
! + one list entry added:
+ - repoURL: "https://gitea.dev.linode-apl.net/otomi/values.git"
+   targetRevision: main
+   ref: values


Copy link
Copy Markdown
Contributor

@j-zimnowoda j-zimnowoda left a comment

Choose a reason for hiding this comment

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

Good catch!

@ElderMatt ElderMatt merged commit 066f23d into main Mar 12, 2026
14 checks passed
@ElderMatt ElderMatt deleted the APL-1690 branch March 12, 2026 14:49
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