summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorFlorin Hillebrand <flozzone@gmail.com>2023-08-15 17:09:25 +0200
committerGitHub <noreply@github.com>2023-08-15 11:09:25 -0400
commit202f6bf966566f8a7f9186dced962e517ceb4a3f (patch)
tree3190fe28eb126ca591d3b85b222066cb85ce1596 /docs
parent31484fcaf05cc6033defcc14af391501f4d5699c (diff)
feat: Add possibility to specify write-back GIT repository as annotation (#424)
* Add possibility to specify write-back GIT repository as annotation. Signed-off-by: flozzone <flozzone@gmail.com> * Update golangci-lint to 1.52.2. Signed-off-by: flozzone <flozzone@gmail.com> * Replace deprecated golangci linters with 'unused' linter. Signed-off-by: flozzone <flozzone@gmail.com> * Fix Goimport issues. Signed-off-by: flozzone <flozzone@gmail.com> --------- Signed-off-by: flozzone <flozzone@gmail.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/basics/update-methods.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/basics/update-methods.md b/docs/basics/update-methods.md
index 1707196..6a2c6df 100644
--- a/docs/basics/update-methods.md
+++ b/docs/basics/update-methods.md
@@ -144,6 +144,22 @@ kubectl -n argocd-image-updater create secret generic git-creds \
--from-file=sshPrivateKey=~/.ssh/id_rsa
```
+### <a name="method-git-repository"></a>Specifying a repository when using a Helm repository in repoURL
+
+By default, Argo CD Image Updater will use the value found in the Application
+spec at `.spec.source.repoURL` as Git repository to checkout. But when using
+a Helm repository as `.spec.source.repoURL` GIT will simply fail. To manually
+specify the repository to push the changes, specify the
+annotation `argocd-image-updater.argoproj.io/git-repository` on the Application
+manifest.
+
+The value of this annotation will define the Git repository to use, for example the
+following would use a GitHub's repository:
+
+```yaml
+argocd-image-updater.argoproj.io/git-repository: git@github.com:example/example.git
+```
+
### <a name="method-git-branch"></a>Specifying a branch to commit to
By default, Argo CD Image Updater will use the value found in the Application