119 Commits
Author SHA1 Message Date
zeekayandHanzo Dev 446e343a3d cd: annotations are cd.hanzo.ai, API group is apps.hanzo.ai
Two corrections on top of the naming pass, both found by checking the live
cluster rather than the source.

The rename had silently changed the user-facing annotation key from
argocd.argoproj.io/sync-wave to cd.argoproj.io/sync-wave — 63 live
Applications carry the old key, so deploying that would have ignored every
sync-wave and broken fleet deploy ordering. The key is now cd.hanzo.ai/*,
and universe 575650286 moves the ApplicationSet template that stamps it, so
the controller regenerates all 63 consistently.

The API group in code said argoproj.io/v1alpha1 in 157 places while the
cluster has served apps.hanzo.ai/v1alpha1 since 2026-07-23 (the CRDs are
applications.apps.hanzo.ai). Code now matches what is actually served.

The legacy applications.argoproj.io/app-name label had ZERO live users, so it
went with the rest. foo.argoproj.io test fixtures became foo.example.com —
arbitrary test domains should not carry a vendor name.

go build ./... exit 0.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-28 16:32:14 -07:00
zeekayandHanzo Dev 84ee9fa0ce cd: kill the argo naming — binaries, packages, identifiers
Every command is cd-*: cd, cd-server, cd-repo-server,
cd-application-controller, cd-applicationset-controller, cd-cmp-server,
cd-commit-server, cd-dex, cd-git-ask-pass, cd-k8s-auth, cd-notification.
util/argo is util/cd; util/notification/argocd is util/notification/cd.

Preserved deliberately: github.com/argoproj/argocd-example-apps is an
EXTERNAL repo used as an e2e fixture, and notifications-engine + pkg/v2 are
real dependencies. Renaming a URL we do not own would break the tests.

Two bugs I made and caught, both from a careless sed:
- s/argo/cd/g turned 'argocd' into 'cdcd' in two directory names
- renaming the package declaration left every call site saying argo.X

go build ./... exit 0.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-28 16:00:25 -07:00
zeekayandHanzo Dev dead2da249 cd: the configuration speaks CD_ and KV_
The fork was already ours everywhere that matters — our image, our IAM (dex
is not deployed), hanzo kv behind what the env still called REDIS. Only the
vocabulary was upstream's: ARGOCD_* across the Go, the manifests, the docs
and the plugin contract, and mkdocs still titled 'Argo CD' pointing at
argoproj/argo-cd.

ARGOCD_ -> CD_ and REDIS_ -> KV_ across 345 files, plus the 8 e2e/cmp
fixtures that assert the plugin env contract — those had to move with the
binary, which now emits CD_APP_NAME where they expected ARGOCD_APP_NAME.

Left alone deliberately, because renaming them would be wrong:
- util/helm/testdata/redis/ and gitops-engine/.../statefulset*.yaml are
  fixtures for a THIRD-PARTY chart named redis, not our config
- util/kustomize/testdata/ likewise
- generated.proto regenerates from types.go, which is already clean

go build ./... exit 0.

LOCKSTEP: the live StatefulSet sets 47 ARGOCD_* names the binary no longer
reads. universe 4a5375735 carries the matching manifest change; they deploy
together or the controller falls back to defaults.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-28 15:55:46 -07:00
Zach AllerandGitHub d48717f5ed fix: Watch APIServices like we do CRDs (#28289)
Signed-off-by: Zach Aller <[email protected]>
2026-06-17 15:39:29 +00:00
dudineaandGitHub 8d52fa3a42 test(e2e): Add test for second Sync after initial for different resources/options (#28156) (#28155)
Signed-off-by: Eugene Doudine <[email protected]>
2026-06-07 21:00:16 +03:00
dudineaandGitHub 832cf5492c test(e2e): fix cleanup of CRDs for e2e tests (#28157) (#28158)
Signed-off-by: Eugene Doudine <[email protected]>
2026-06-07 20:58:37 +03:00
Christopher CocoandGitHub 303264026c test(sharding): add e2e test for sharding (#27466)
Signed-off-by: Christopher Coco <[email protected]>
2026-05-12 01:53:21 -10:00
Nitish KumarandGitHub 1b6bada550 feat(helm): support wildcard glob patterns for valueFiles (#26768)
Signed-off-by: nitishfy <[email protected]>
2026-03-17 21:37:43 +00:00
2ac4569118 chore(appset): basic progressive sync e2e tests (#26092)
Signed-off-by: krana limaDocker <[email protected]>
Signed-off-by: Kanika Rana <[email protected]>
Co-authored-by: krana limaDocker <[email protected]>
2026-01-30 16:26:57 +00:00
Sean LiaoandGitHub 2b916ca5de fix(hydrator): pass destination.namespace to manifest rendering (#25478) (#25699)
Signed-off-by: Sean Liao <[email protected]>
2026-01-15 16:39:10 -05:00
Alexandre GaudreaultandGitHub b26f245904 test(e2e): CMP test fails locally on Mac (#25901)
Signed-off-by: Alexandre Gaudreault <[email protected]>
2026-01-07 21:41:58 -05:00
Jonathan OgilvieandGitHub 7fd013e054 feat: cross namespace hierarchy traversal from cluster-scoped parents to namespaced children (fixes #24379) (#24847)
Signed-off-by: Jonathan Ogilvie <[email protected]>
2025-12-15 02:30:41 +00:00
7340eb5414 feat: PreDelete hooks support (Issue #13975) (#22288)
Signed-off-by: Dan Garfield <[email protected]>
Signed-off-by: Pedro Ribeiro <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Andrii Korotkov <[email protected]>
Co-authored-by: Dan Garfield <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andrii Korotkov <[email protected]>
Co-authored-by: Ishita Sequeira <[email protected]>
Co-authored-by: pedro-ribeiro-rci <[email protected]>
Co-authored-by: Pedro Ribeiro <[email protected]>
Co-authored-by: Blake Pettersson <[email protected]>
Co-authored-by: Alexandre Gaudreault <[email protected]>
2025-12-05 20:27:03 +00:00
2655b60013 feat(hydrator): add inline parameter support to Source Hydrator (#24228) (#24277)
Signed-off-by: sangyeong01 <[email protected]>
Signed-off-by: sangyeong01 <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>
2025-12-05 12:32:48 -05:00
Atif AliandGitHub 249abf9d2b chore(ui): fix Incorrect links to applications managed by other argo instances (#23266)
Signed-off-by: Atif Ali <[email protected]>
2025-10-14 21:38:14 -04:00
Oliver GondžaandGitHub 0522bc53d3 fix: Address shellcheck detected shell warnings (#22686)
Signed-off-by: Oliver Gondža <[email protected]>
2025-07-18 07:38:27 -04:00
becdffcf56 fix(repo-server): support .argocd-source.yaml kustomize version (#23643) (#23644)
Signed-off-by: Michael Crenshaw <[email protected]>
Co-authored-by: rumstead <[email protected]>
2025-07-16 15:12:25 +00:00
e72a777cef feat: oci support (Beta) (#18646)
Signed-off-by: Blake Pettersson <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>
2025-06-06 13:27:02 +02:00
95dc067df0 fix: add shellcheck and fix a few warnings (#22569)
Signed-off-by: Alexei Fedotov <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>
2025-05-19 21:06:45 +00:00
Nitish KumarandGitHub df1a46c154 chore: replace heptio-images with argocd-e2e-container (#23040)
Signed-off-by: nitishfy <[email protected]>
Signed-off-by: Nitish Kumar <[email protected]>
2025-05-19 07:49:11 -07:00
Michael CrenshawandGitHub 85e00223d2 fix(test): broken e2e test (#22975)
Signed-off-by: Michael Crenshaw <[email protected]>
2025-05-14 13:31:53 -04:00
Michael CrenshawandGitHub 3cd5cec484 fix(test): delete CRD between tests, install CRD before syncing CRs (#22299)
Signed-off-by: Michael Crenshaw <[email protected]>
2025-03-11 17:11:26 -04:00
Michael CrenshawandGitHub fb0fde4837 feat(cmp): pass empty env vars to plugins (#18720) (#22096)
Signed-off-by: Michael Crenshaw <[email protected]>
2025-03-02 18:01:50 -05:00
8eecba4034 chore: add e2e test for hook finalizer which prevents external resource deletion (#21113)
Signed-off-by: Dejan Zele Pejchev <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>
Co-authored-by: Alexandre Gaudreault <[email protected]>
2025-02-11 09:28:01 -05:00
ef1021a58f feat: Adding skipSchemaValidation flag (#20771) (#20831)
* Adding skipSchemaValidation flag

Signed-off-by: Daniel Mosesson (soandos) <[email protected]>

* Adding specific test for skip schema validation

Signed-off-by: Daniel Mosesson (soandos) <[email protected]>

* Fix merge conflict

Signed-off-by: Daniel Mosesson (soandos) <[email protected]>

* Fixing index.yaml to support helm 3.16

Signed-off-by: Daniel Mosesson (soandos) <[email protected]>

---------

Signed-off-by: Daniel Mosesson (soandos) <[email protected]>
Co-authored-by: Daniel Mosesson (soandos) <[email protected]>
2024-12-03 11:43:42 +05:30
James McShaneandGitHub ca9a4b6601 feat(cmp): parameter to enable git creds to be shared from repo server to the plugin (#15107)
Signed-off-by: jmcshane <[email protected]>
2024-10-31 13:35:08 -04:00
Siddhesh GhadiandGitHub 6fafab5c63 feat: Add ability to hide certain annotations on secret resources (#18216)
Signed-off-by: Siddhesh Ghadi <[email protected]>
2024-10-30 09:52:37 -07:00
1069eb88a5 feat(helm): support --kube-version, --api-versions, and --namespace (#19325) (#19328)
* feat(helm): support `--kube-version`, `--api-versions`, and `--namespace` (#19325)

Signed-off-by: Michael Crenshaw <[email protected]>

* codegen

Signed-off-by: Michael Crenshaw <[email protected]>

* handle kube and api versions per-source

Signed-off-by: Michael Crenshaw <[email protected]>

* lint

Signed-off-by: Michael Crenshaw <[email protected]>

* fix nil ref error

Signed-off-by: Michael Crenshaw <[email protected]>

* fix nil ref error due to not handling multi-source in verify path

Signed-off-by: Michael Crenshaw <[email protected]>

* change casing to be more consistent with helm

Signed-off-by: Michael Crenshaw <[email protected]>

* Kustomize too

Signed-off-by: Michael Crenshaw <[email protected]>

* simplify verify path

Signed-off-by: Michael Crenshaw <[email protected]>

* add e2e tests for kustomize

Signed-off-by: Michael Crenshaw <[email protected]>

* reorder for consistency, and add more tests

Signed-off-by: Michael Crenshaw <[email protected]>

* Update docs/operator-manual/application.yaml

Signed-off-by: Alexandre Gaudreault <[email protected]>

---------

Signed-off-by: Michael Crenshaw <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>
Co-authored-by: Alexandre Gaudreault <[email protected]>
2024-08-06 10:56:36 -04:00
Siddhesh GhadiandGitHub a02677cdd0 feat: Prune resources in reverse order of syncwave during sync (#15074) (#16748)
* Add e2e & doc for prune order during sync

Signed-off-by: Siddhesh Ghadi <[email protected]>

* Point gitops-engine to fork with reverse prune changes

Signed-off-by: Siddhesh Ghadi <[email protected]>

* Fix ci linting failures

Signed-off-by: Siddhesh Ghadi <[email protected]>

* Update gitops-engine commit ref

Signed-off-by: Siddhesh Ghadi <[email protected]>

---------

Signed-off-by: Siddhesh Ghadi <[email protected]>
2024-01-30 10:08:59 -05:00
Alexander MatyushentsevandGitHub 272fbd32cb feat: PostDelete hook support (#16595)
* feat: PostDelete hooks support

Signed-off-by: Alexander Matyushentsev <[email protected]>


---------

Signed-off-by: Alexander Matyushentsev <[email protected]>
2023-12-18 08:40:23 -08:00
Marco Maurer (-Kilchhofer)andGitHub 02a1a23954 chore: Use safe example domains defined in RFC 2606 (#16389) 2023-11-20 04:34:04 -05:00
Blake PetterssonandGitHub c6d090a101 fix(controller): make managed namespaces more 'prune-proof' (#13999)
* fix: make managed namespaces more 'prune-proof'

In the cases where someone would want to set resource tracking on a
managed namespace, or if someone would want to migrate from having a
namespace in Git to using `managedNamespaceMetadata`, we need to take
steps to ensure that the namespace does not get pruned.

In order to do that, we add the live namespace to the list of
`targetObjs` (so that it's considered a part of the source even though
it's not).

Finally, we need to also ensure that the managed namespace is not
considered `OutOfSync` (due to the same reason as above).

This is a subset of #11350, the main difference being that this commit
does not set resource tracking on its own, but can be opted into if
people choose to do so.

Signed-off-by: Blake Pettersson <[email protected]>

* refactor: extract managed namespace check

Signed-off-by: Blake Pettersson <[email protected]>

---------

Signed-off-by: Blake Pettersson <[email protected]>
2023-09-13 11:45:06 -04:00
Blake PetterssonandGitHub a0b9c3b4c6 fix(reposerver): loosen source not permitted helm errors (#14210)
* fix: loosen source not permitted helm errors

With #12255, we check if a source is first permitted before running
`helm template`. This works a bit too well, since this may break
previously working manifests. If an `AppProject` has a set of
`sourceRepos` which are more restrictive than `*`, and it also has Helm
public dependencies (repos with credentials would not work with 2.7x
due to the fact they get filtered out before ending up on the repo
server). Whereas before this would work, this currently fails on
`HEAD` but not in `2.7x`.

What we instead do here is that we only run this check if the chart
failed to download - if it does then we run a check to see if the repo
is in the allowed repos list. If the repo is not in the allowed repos
list, we return the same error as in #12555, otherwise we bubble up the
error.

Should fix #13833.

Signed-off-by: Blake Pettersson <[email protected]>

* fix: check for 401 unauthorized in error

The regex check works fine for OCI artifacts, but the flow is slightly
different for standard Helm charts (specifically when running
`helm repo add`). To get around that, we also check the error for
`401 Unauthorized`.

Signed-off-by: Blake Pettersson <[email protected]>

* fix: loosen string check

Signed-off-by: Blake Pettersson <[email protected]>

* Revert "chore: revert #12255 (#14858)"

This reverts commit 72aaf710e4.

Signed-off-by: Blake Pettersson <[email protected]>

* wip

Signed-off-by: Blake Pettersson <[email protected]>

* wip

Signed-off-by: Blake Pettersson <[email protected]>

* chore: reword test to reduce confusion

Signed-off-by: Blake Pettersson <[email protected]>

---------

Signed-off-by: Blake Pettersson <[email protected]>
2023-08-14 10:06:43 -04:00
Blake PetterssonandGitHub 72aaf710e4 chore: revert #12255 (#14858)
This reverts commit 432cf9aecd.

Due to the imminent release of 2.8, this needs to be rolled back since
the proposed fix in #14210 cannot make it in time.

Signed-off-by: Blake Pettersson <[email protected]>
2023-08-02 16:48:57 -04:00
Maxime BrunetandGitHub 62df950db8 fix(cli): fix tracking annotation diff for non-namespaced resources (#13924)
Signed-off-by: Maxime Brunet <[email protected]>
2023-07-12 09:35:35 -04:00
f9266780d1 feat: Create job action (#12174 and #4116) (#12925)
* Kind wildcard support in health customizations

Signed-off-by: reggie <[email protected]>

* Updated health customizations docs to using the correct field with a /

Signed-off-by: reggie <[email protected]>

* Updated health customizations docs to using the correct field with a /

Signed-off-by: reggie <[email protected]>

* Document resource kind wildcard for custom health check

Signed-off-by: reggie <[email protected]>

* Implemented wildcard * support in API Group and Resource Kind and updated docs

Signed-off-by: reggie <[email protected]>

* Implemented wildcard * support in API Group and Resource Kind and updated docs

Signed-off-by: reggie <[email protected]>

* Implemented wildcard * support in API Group and Resource Kind and updated docs

Signed-off-by: reggie <[email protected]>

* Added a custom create-from CronJob action

Signed-off-by: reggie <[email protected]>

* in progress

Signed-off-by: reggie <[email protected]>

* in progress

Signed-off-by: reggie <[email protected]>

* in progress

Signed-off-by: reggie <[email protected]>

* in progress

Signed-off-by: reggie <[email protected]>

* added a ns in the action.lua and fixed tests

Signed-off-by: reggie <[email protected]>

* create-job

Signed-off-by: reggie <[email protected]>

* in progress

Signed-off-by: reggie <[email protected]>

* more changes

Signed-off-by: reggie <[email protected]>

* full unit tests and action returning an array

Signed-off-by: reggie <[email protected]>

* cleanup

Signed-off-by: reggie <[email protected]>

* fix the custom tests

Signed-off-by: reggie <[email protected]>

* e2e tests

Signed-off-by: reggie <[email protected]>

* json marshaling annotations ImpactedResource, e2e tests and docs

Signed-off-by: reggie <[email protected]>

* more docs and tests

Signed-off-by: reggie <[email protected]>

* upstream sync

Signed-off-by: reggie <[email protected]>

* fix wrong return upon going over the impacted resources + docs + fixing e2e tests

Signed-off-by: reggie <[email protected]>

* docs

Signed-off-by: reggie <[email protected]>

* better error handling

Signed-off-by: reggie <[email protected]>

* K8SOperation as an enum

Signed-off-by: reggie <[email protected]>

* added dry-run for create operation

Signed-off-by: reggie <[email protected]>

* small changes

Signed-off-by: Michael Crenshaw <[email protected]>

* ref to my gitops-engine fork out

Signed-off-by: reggie <[email protected]>

* ref to my gitops-engine fork out

Signed-off-by: reggie <[email protected]>

* ref to my gitops-engine fork out

Signed-off-by: reggie <[email protected]>

* ref to my gitops-engine fork out

Signed-off-by: reggie <[email protected]>

* ref to my gitops-engine fork out

Signed-off-by: reggie <[email protected]>

* gitops engine dependency and test fixes

Signed-off-by: reggie <[email protected]>

* add workflows action

Signed-off-by: Michael Crenshaw <[email protected]>

* cronworkflow and workflowtemplate actions

Signed-off-by: Michael Crenshaw <[email protected]>

* update gitops-engine

Signed-off-by: Michael Crenshaw <[email protected]>

---------

Signed-off-by: reggie <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>
2023-06-23 14:45:53 -04:00
Michael CrenshawandGitHub 55a0849ed6 chore: remove argocd-cm plugin support (#13755) 2023-06-21 23:30:46 +03:00
Michael CrenshawandGitHub 0e402645c6 fix(cmp): discover plugins relative to app path (#13940) (#13946)
* fix(cmp): discover plugins relative to app path (#13940)

Signed-off-by: Michael Crenshaw <[email protected]>

* securejoin

Signed-off-by: Michael Crenshaw <[email protected]>

* intuitive constant names

Signed-off-by: Michael Crenshaw <[email protected]>

* comments

Signed-off-by: Michael Crenshaw <[email protected]>

* add missing import

Signed-off-by: Michael Crenshaw <[email protected]>

---------

Signed-off-by: Michael Crenshaw <[email protected]>
2023-06-15 21:17:04 +00:00
Yann SoubeyrandandGitHub 4a13a39830 fix(repo-server): completely clean up Git working directory (#3683) (#13001)
* refactor(util/git/client): make runCredentialedCmd() signature coherent with runCmd() one

Signed-off-by: Yann Soubeyrand <[email protected]>

* fix(repo-server): completely clean up Git working directory

In some cases, for example when a Git submodule wasn’t present anymore
in a Git revision, the repo-server didn’t completely clean up its Git
working directory.

Fixes #3683

Signed-off-by: Yann Soubeyrand <[email protected]>

---------

Signed-off-by: Yann Soubeyrand <[email protected]>
2023-05-27 15:57:59 -04:00
Blake PetterssonandGitHub 432cf9aecd fix: surface source not permitted errors (#12255)
* chore: surface source not permitted errors

For Git and Helm repositories, we filter out non-permitted urls before
submitting a `ManifestRequest` to the repo-server. While that works
fine, this also leads to very hard to debug issues in particular when
using Helm dependencies.

This (very) WIP PR adds `ProjectSourceRepos` as a parameter to
`ManifestRequest`, so we can verify that a source is in fact
permitted in order to distinguish between actual 40x errors (caused
by e.g misconfiguration) and "source not permitted" caused by not
adding the relevant sources to the AppProject config.

This still needs documentation, tests and some basic sanity checking
before proceeding further, as well as resolving whatever is causing
`make codegen` to not properly work.

Signed-off-by: Blake Pettersson <[email protected]>

* chore: propagate project values to repo-server

Signed-off-by: Blake Pettersson <[email protected]>

* test: fix failing unit tests

now onto the e2e tests...

Signed-off-by: Blake Pettersson <[email protected]>

* test: fix failing e2e test(s)

Signed-off-by: Blake Pettersson <[email protected]>

* fix: add project params

Signed-off-by: Blake Pettersson <[email protected]>

* test: add e2e test

Add Helm dependency check test.

Signed-off-by: Blake Pettersson <[email protected]>

* chore: remove git source check

Discussed over Slack and deemed this to not be necessary at this time.

Signed-off-by: Blake Pettersson <[email protected]>

* make codegen

Signed-off-by: Blake Pettersson <[email protected]>

* chore: cr tweaks

Signed-off-by: Blake Pettersson <[email protected]>

* chore: code review tweaks

Signed-off-by: Blake Pettersson <[email protected]>

* test: fix

Signed-off-by: Blake Pettersson <[email protected]>

* test: wip

Signed-off-by: Blake Pettersson <[email protected]>

* test: wip

Signed-off-by: Blake Pettersson <[email protected]>

* chore: wip

Signed-off-by: Blake Pettersson <[email protected]>

* chore: typo

Signed-off-by: Blake Pettersson <[email protected]>

* fix: typo

Signed-off-by: Blake Pettersson <[email protected]>

* chore: rebase fixes

Signed-off-by: Blake Pettersson <[email protected]>

* test: oci:// is not prefixed

Signed-off-by: Blake Pettersson <[email protected]>

---------

Signed-off-by: Blake Pettersson <[email protected]>
2023-05-27 11:26:34 -04:00
Jiacheng XuandGitHub 5a36e2e949 fix: CMPv2 does not allow symlinks to adjacent files in same git repo. Fixes #13342 (#13360)
fix: CMPv2 does not allow symlinks to adjacent files in same git repo. Fixes #13342 (#13360)

Signed-off-by: Jiacheng Xu <[email protected]>
2023-05-08 16:29:08 -07:00
62e95ceb0b fix: Add more context to the sync failed message when resource kind doesn't exist (#12980)
* fix: add more context to k8s message

Signed-off-by: ashutosh16 <[email protected]>

* fix: add more context to k8s message

Signed-off-by: ashutosh16 <[email protected]>

* fix: add more context to k8s message

Signed-off-by: ashutosh16 <[email protected]>

* fix: add more context to k8s message

Signed-off-by: ashutosh16 <[email protected]>

* fix: add more context to k8s message

Signed-off-by: ashutosh16 <[email protected]>

* fix: add more context to k8s message

Signed-off-by: ashutosh16 <[email protected]>

* Update util/argo/argo.go

Co-authored-by: Michael Crenshaw <[email protected]>
Signed-off-by: asingh <[email protected]>

* Update util/argo/argo.go

Co-authored-by: Michael Crenshaw <[email protected]>
Signed-off-by: asingh <[email protected]>

* improvements, maybe

Signed-off-by: Michael Crenshaw <[email protected]>

* remove unnecessary end quote

Signed-off-by: Michael Crenshaw <[email protected]>

* avoid conflicts with other tests

Signed-off-by: Michael Crenshaw <[email protected]>

---------

Signed-off-by: ashutosh16 <[email protected]>
Signed-off-by: asingh <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>
2023-04-03 15:48:50 +00:00
my-git9andGitHub e5917bfa88 chore: remove deprecated apiversion for deployment (#11830)
Signed-off-by: xin.li <[email protected]>
2023-03-29 20:24:05 +00:00
Alexander MatyushentsevandGitHub fd7619ed03 feat: allow CMP plugins to preserve repo files mode (#12940)
* feat: allow CMP plugins to preserve repo files mode

Signed-off-by: Alexander Matyushentsev <[email protected]>

* implement missing e2e test

Signed-off-by: Alexander Matyushentsev <[email protected]>

---------

Signed-off-by: Alexander Matyushentsev <[email protected]>
2023-03-22 12:15:19 -04:00
Michael CrenshawandGitHub 2bb7ba5e3a feat: upgrade Kustomize to v5.0.1 (#12299)
* feat: upgrade Kustomize to v5.0.0 and Helm to v3.11.0

Signed-off-by: Michael Crenshaw <[email protected]>

* fix helm3 ref

Signed-off-by: Michael Crenshaw <[email protected]>

* fix duplicate key

Signed-off-by: Michael Crenshaw <[email protected]>

* 3.11.1

Signed-off-by: Michael Crenshaw <[email protected]>

* codegen

Signed-off-by: Michael Crenshaw <[email protected]>

* fix test

Signed-off-by: Michael Crenshaw <[email protected]>

* 5.0.1

Signed-off-by: Michael Crenshaw <[email protected]>

* upgrade note

Signed-off-by: Michael Crenshaw <[email protected]>

---------

Signed-off-by: Michael Crenshaw <[email protected]>
2023-03-16 22:24:08 +02:00
Leonardo Luz AlmeidaandGitHub 86e53d711c fix: ssa e2e tests failing after updating to kubectl 1.26 (#11753)
* fix: ssa e2e test failing after updating to kubectl 1.26

Signed-off-by: Leonardo Luz Almeida <[email protected]>

* Remove pinned kubectl version

Signed-off-by: Leonardo Luz Almeida <[email protected]>

* Cleaner approach to fix e2e test

Signed-off-by: Leonardo Luz Almeida <[email protected]>

* Fix

Signed-off-by: Leonardo Luz Almeida <[email protected]>

Signed-off-by: Leonardo Luz Almeida <[email protected]>
2022-12-20 08:48:55 -05:00
f6c1a78677 feat: Multiple sources for applications (#2789) (#10432)
* feat: support multiple sources for application

Signed-off-by: ishitasequeira <[email protected]>

remove debug logging and unwanted code

Signed-off-by: ishitasequeira <[email protected]>

fix lint and unit test errors

Signed-off-by: ishitasequeira <[email protected]>

fix lint and unit test errors

Signed-off-by: ishitasequeira <[email protected]>

* fix bug introduced after rebase

Signed-off-by: ishitasequeira <[email protected]>

executed make codegen

Signed-off-by: ishitasequeira <[email protected]>

* rebase with master

Signed-off-by: ishitasequeira <[email protected]>

remove unwanted logging

Signed-off-by: ishitasequeira <[email protected]>

fix ci failures

Signed-off-by: ishitasequeira <[email protected]>

* fix index out of bounds error

Signed-off-by: ishitasequeira <[email protected]>

* ui fixes

Signed-off-by: ishitasequeira <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
Signed-off-by: ishitasequeira <[email protected]>

* add revisions to SyncOperation for rollback

Signed-off-by: ishitasequeira <[email protected]>

* change Source to *ApplicationSource in ApplicationSpec

Signed-off-by: ishitasequeira <[email protected]>

* fix env variable read logic for ValueFiles

Signed-off-by: ishitasequeira <[email protected]>

* update multiple sources doc

Signed-off-by: ishitasequeira <[email protected]>

* add repository lock and checkout target revision

Signed-off-by: ishitasequeira <[email protected]>

fix codegen

Signed-off-by: ishitasequeira <[email protected]>

* checkout all sources before generating manifest

Signed-off-by: ishitasequeira <[email protected]>

generate mock reposerverclient

Signed-off-by: ishitasequeira <[email protected]>

* update logic for returning ManifestResponse to avoid nil pointer issues

Signed-off-by: ishitasequeira <[email protected]>

* fix nil reference and key mismatch bugs; add more logs (#6)

* fix nil reference and key mismatch bugs; add more logs
* remove temporary comment
* addressed the lint failure and added chart to RefTargeRevisionMapping
* normalize git repo (#7)
* do not leak lock releases
* prevent deadlock
* allow spec update
* move settings fetch outside loop
* cache busing
* return err instead of logging it
* no caching in test
* fix cache key marshaling

Signed-off-by: Michael Crenshaw <[email protected]>

Rebase with master

Signed-off-by: ishitasequeira <[email protected]>

* update grpc field numbers

Signed-off-by: ishitasequeira <[email protected]>

* path resolution tests (#12)

Signed-off-by: Michael Crenshaw <[email protected]>

do things in better ways

Signed-off-by: Michael Crenshaw <[email protected]>

consolidate

Signed-off-by: Michael Crenshaw <[email protected]>

Signed-off-by: Michael Crenshaw <[email protected]>
Signed-off-by: ishitasequeira <[email protected]>

* add regex check for value of source.ref

Signed-off-by: ishitasequeira <[email protected]>

* add webhook tests

Signed-off-by: Michael Crenshaw <[email protected]>

change Source to *ApplicationSource in ApplicationSpec

Signed-off-by: ishitasequeira <[email protected]>

address PR comments

Signed-off-by: ishitasequeira <[email protected]>

rebase with master

Signed-off-by: ishitasequeira <[email protected]>

Retrigger CI pipeline

Signed-off-by: ishitasequeira <[email protected]>

rebased with master

Signed-off-by: ishitasequeira <[email protected]>

* fix env variable read logic for ValueFiles

Signed-off-by: ishitasequeira <[email protected]>

Address PR comments

Signed-off-by: ishitasequeira <[email protected]>

* add repository lock and checkout target revision

Signed-off-by: ishitasequeira <[email protected]>

fix codegen

Signed-off-by: ishitasequeira <[email protected]>

* checkout all sources before generating manifest

Signed-off-by: ishitasequeira <[email protected]>

* generate mock reposerverclient

Signed-off-by: ishitasequeira <[email protected]>

* address comments

Signed-off-by: ishitasequeira <[email protected]>

* update logic for returning ManifestResponse to avoid nil pointer issues

Signed-off-by: ishitasequeira <[email protected]>

* fix nil reference and key mismatch bugs; add more logs (#6)

* fix nil reference and key mismatch bugs; add more logs
* remove temporary comment
* addressed the lint failure and added chart to RefTargeRevisionMapping
* normalize git repo (#7)
* do not leak lock releases
* prevent deadlock
* allow spec update
* move settings fetch outside loop
* cache busing
* return err instead of logging it
* no caching in test
* fix cache key marshaling

Signed-off-by: Michael Crenshaw <[email protected]>

Rebase with master

Signed-off-by: ishitasequeira <[email protected]>

* update grpc field numbers

Signed-off-by: ishitasequeira <[email protected]>

* add regex check for value of source.ref

Signed-off-by: ishitasequeira <[email protected]>

* Rebase with master

Signed-off-by: ishitasequeira <[email protected]>

* Added unit tests (#15)

* add unit tests 1
* fix lint

Signed-off-by: ishitasequeira <[email protected]>

* fix application parameters tab, rebased UI changes, tests

Signed-off-by: ishitasequeira <[email protected]>

* More tests (#16)

* more tests

Signed-off-by: Michael Crenshaw <[email protected]>

fix lint error

Signed-off-by: ishitasequeira <[email protected]>

Test get ref sources (#17)

* test GetRefSources

Signed-off-by: Michael Crenshaw <[email protected]>

* fix lint

Signed-off-by: Michael Crenshaw <[email protected]>

Signed-off-by: ishitasequeira <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
Co-authored-by: ishitasequeira <[email protected]>

GenerateManifests test (#18)

* GenerateManifests test

Signed-off-by: Michael Crenshaw <[email protected]>

Fix broken tests (#19)

* fix broken tests

Signed-off-by: Michael Crenshaw <[email protected]>

Symlink test (#20)

* check referenced sources for out-of-bounds symlinks

Signed-off-by: Michael Crenshaw <[email protected]>

* unlock the values file repo before doing a symlink check (#22)

Signed-off-by: Michael Crenshaw <[email protected]>

* multi source docs (#21)

* multi source docs

Signed-off-by: Michael Crenshaw <[email protected]>

* fix warning title

Signed-off-by: Michael Crenshaw <[email protected]>

* clarify

Signed-off-by: Michael Crenshaw <[email protected]>

* clarify

Signed-off-by: Michael Crenshaw <[email protected]>

Signed-off-by: Michael Crenshaw <[email protected]>

* add e2e tests for multiple sources and fix UI lint (#23)

* add e2e tests for multiple sources and fix UI lint

Signed-off-by: ishitasequeira <[email protected]>

* add auto-sync and hard refresh to e2e tests

Signed-off-by: ishitasequeira <[email protected]>

* change refresh type to RefreshTypeNormal for e2e

Signed-off-by: ishitasequeira <[email protected]>

* update e2e testcase with helm data

Signed-off-by: ishitasequeira <[email protected]>

* add TestMultiSourceAppWithSourceOverride

Signed-off-by: ishitasequeira <[email protected]>

* add missing yaml file

Signed-off-by: ishitasequeira <[email protected]>

Signed-off-by: ishitasequeira <[email protected]>

* rebase with master

Signed-off-by: ishitasequeira <[email protected]>

* rebase with master

Signed-off-by: ishitasequeira <[email protected]>

* fix lint

Signed-off-by: ishitasequeira <[email protected]>

Signed-off-by: ishitasequeira <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>
2022-12-16 15:47:08 -05:00
cf61c74192 feat: enable metadata to be set on namespaces (#10672)
* namespace labels

Signed-off-by: pashavictorovich <[email protected]>

* create namespace should support annotations

Signed-off-by: pashavictorovich <[email protected]>

* handle also modification hook

Signed-off-by: pashavictorovich <[email protected]>

* regenerate entity on modify hook

Signed-off-by: pashavictorovich <[email protected]>

* manifests

Signed-off-by: pashavictorovich <[email protected]>

* feat: enable metadata to be set on namespaces

This builds upon the work that @pasha-codefresh did in #10288.

The main differences between this PR and the previous one is that we use
SSA to diff between different versions of the namespace, as well as
having a slightly different API in gitops-engine for setting the
namespace modifier.

We now also set the ownership of the namespace in ArgoCD.

Closes #4628
Closes #6215
Closes #7799

Signed-off-by: Blake Pettersson <[email protected]>

* fix: don't always track namespaces

For now, only allow namespaces managed with `managedNamespaceMetadata`
to have tracking set by Argo. Ideally we'd like new namespaces to also
be tracked by Argo, but there's currently an issue with a failing
integration test.

Also wrap error message if setting the app instance errors on the
namespace.

Signed-off-by: Blake Pettersson <[email protected]>

* fix: always return true with `hasManagedMetadata`

If `hasManagedMetadata` is set, `true` should always be returned.

Signed-off-by: Blake Pettersson <[email protected]>

* docs: add clarifying docs on resource tracking

Signed-off-by: Blake Pettersson <[email protected]>

* style: pr tweaks

Signed-off-by: Blake Pettersson <[email protected]>

* fix: re-add label unsetting

Signed-off-by: Blake Pettersson <[email protected]>

* Update gitops-engine to current master

Signed-off-by: Leonardo Luz Almeida <[email protected]>

Signed-off-by: pashavictorovich <[email protected]>
Signed-off-by: Blake Pettersson <[email protected]>
Signed-off-by: Leonardo Luz Almeida <[email protected]>
Co-authored-by: pashavictorovich <[email protected]>
Co-authored-by: Leonardo Luz Almeida <[email protected]>
2022-11-04 08:59:16 -04:00
Michael CrenshawandGitHub bf1ba47490 docs: remove unused plugin config fields (#10304)
* docs: remove unused plugin config fields

Signed-off-by: CI <[email protected]>

* fix codegen

Signed-off-by: CI <[email protected]>

Signed-off-by: CI <[email protected]>
2022-10-07 19:42:25 -04:00
jannfisandGitHub 75d334705a feat: Applications in any namespace (#9755)
* feat: Applications in any namespace

Signed-off-by: jannfis <[email protected]>

* Fix typo in CI

Signed-off-by: jannfis <[email protected]>

* Create argocd-e2e-external namespace

Signed-off-by: jannfis <[email protected]>

* Update from codegen

Signed-off-by: jannfis <[email protected]>

* Remove debug code

Signed-off-by: jannfis <[email protected]>

* Update help text for -N option to app create

Signed-off-by: jannfis <[email protected]>

* Wrap error when retrieving AppProject from cache

Signed-off-by: jannfis <[email protected]>

* Check for controller namespace first before matching on additional ns

Signed-off-by: jannfis <[email protected]>

* Improve TestAppProjectIsSourceNamespacePermitted unit test

Signed-off-by: jannfis <[email protected]>

* Get rid of some debug leftovers

Signed-off-by: jannfis <[email protected]>

* Better error wrapping; return IsNotFound as-is

Signed-off-by: jannfis <[email protected]>

* Updates from codegen

Signed-off-by: jannfis <[email protected]>

* We don't need AppShortName() anymore

Signed-off-by: jannfis <[email protected]>

* Update end-to-end tests to use annotation methods

Signed-off-by: jannfis <[email protected]>

* Add e2e tests to test for app creation in not permitted ns

Signed-off-by: jannfis <[email protected]>

* Remove deprecated code

Signed-off-by: jannfis <[email protected]>

* Remove dead code

Signed-off-by: jannfis <[email protected]>

* Add RBACName() method to application type

Signed-off-by: jannfis <[email protected]>

* Update from codegen

Signed-off-by: jannfis <[email protected]>

* Fix e2e test

Signed-off-by: jannfis <[email protected]>

* Update codegen

Signed-off-by: jannfis <[email protected]>

* Move RBAC name generation to an application receiver

Signed-off-by: jannfis <[email protected]>

* Fix sync window status in UI

Signed-off-by: jannfis <[email protected]>

* Fix pod logs viewer

Signed-off-by: jannfis <[email protected]>

* Fix application events in UI

Signed-off-by: jannfis <[email protected]>

* Fix application search in UI

Signed-off-by: jannfis <[email protected]>

* Fix yarn lint

Signed-off-by: jannfis <[email protected]>

* Only set up cluster-wide application informer when additional namespaces are specified

Signed-off-by: jannfis <[email protected]>

* Adapt e2e test to a changed error message

Signed-off-by: jannfis <[email protected]>

* Application namespace should be taken into account for create

Signed-off-by: jannfis <[email protected]>

* Use non-qualified application name as Helm release name

Signed-off-by: jannfis <[email protected]>

* Support --app-namespace in e2e tests

Signed-off-by: jannfis <[email protected]>

* Enable more e2e tests

Signed-off-by: jannfis <[email protected]>

* Increase e2e timeout for newly added tests

Signed-off-by: jannfis <[email protected]>
2022-08-10 11:39:10 +02:00