Commit Graph
34 Commits
Author SHA1 Message Date
someOne404andGitHub 834d47e8e8 chore: wrap error objects to include context (#10904)
Signed-off-by: Jiayi Lu <[email protected]>

Signed-off-by: Jiayi Lu <[email protected]>
2022-10-12 09:15:11 -04:00
Nolan EmirotandGitHub c031944609 test: read appset (#10743)
Signed-off-by: emirot <[email protected]>

Signed-off-by: emirot <[email protected]>
2022-09-30 19:01:56 -04:00
7f3c6dd561 feat: create cli commands for ApplicationSet (#9584)
* feat: add applicationset cli commands

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

* squashed commits and rebased with master

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

* addressed comments

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

* fix lint errors

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

* Retrigger CI pipeline

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

* Retrigger CI pipeline

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

* feat: add applicationset cli commands

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

* addressed comments

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

* fix lint errors

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

* Retrigger CI pipeline

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

* Retrigger CI pipeline

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

* Addressed PR comments

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

* removed duplicate imports

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

* fix CI errors

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

* address PR comments

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

* add k8s RBAC, docs tweaks

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

* rebase master branch

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

* Addressed PR coments

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

* remove unnecessary fields, add docs

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

* fix unit test

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

Signed-off-by: ishitasequeira <[email protected]>
Signed-off-by: CI <[email protected]>
Co-authored-by: CI <[email protected]>
2022-09-14 09:27:15 +02: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
OmarKalloushandGitHub 0ae8c44b14 chore: Upgrade Golang to 1.19 (#10176) (#10186)
* Upgrade Golang to 1.19

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

* go mod tidy with go 1.19

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

* Replace deprecated ioutil

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

* make codegen changes

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

* Codegen Changes

Signed-off-by: OmarKalloush <[email protected]>
2022-08-05 12:59:28 -04:00
pasha-codefreshandGitHub 69e265f70f feat: Move app resources commands to dedicated command file (#9306)
* add to approvers

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

* move to different file

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

* add import

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

* add import

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

* filter resources

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

* app resources test , and filter resources test improvement

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

* missed returns of errors

Signed-off-by: pashavictorovich <[email protected]>
2022-05-10 09:34:55 -04:00
Soumya Ghosh DastidarandGitHub 1dbd9ac471 feat: remove ksonnet from codebase (#8621)
feat: remove ksonnet from codebase (#8621)

Signed-off-by: Soumya Ghosh Dastidar <[email protected]>
2022-03-02 10:09:47 -08:00
patstandGitHub 89f814fea8 feat: add skipCrds flag for helm charts (#8012)
* feat: add skipCrds flag for helm charts

* replace additionalTemplateArgs with includeCrds flag
* add testcase for skip crds

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

* feat: add skipCrds flag for helm charts

* replace additionalTemplateArgs with includeCrds flag
* add testcase for skip crds

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

* feat: add skipCrds flag for helm charts

* replace additionalTemplateArgs with includeCrds flag
* add testcase for skip crds

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

* feat: add skipCrds flag for helm charts

* make sure include crds is not added for helm2

Signed-off-by: patst <[email protected]>
2022-01-14 13:56:34 -08:00
ocraviottoandGitHub eede6b79bc feat: added a new Helm option ignoreMissingValueFiles (#7767) (#8003)
so as to allow operators to prevent Argo CD from passing valueFiles
to helm template if they don't exist in the source under the specified path.

Signed-off-by: Oscar Craviotto <[email protected]>
2022-01-03 09:51:31 -08:00
pasha-codefreshandGitHub 74d0cae9d3 feat: Improve unit test coverage for util/app/app.go (#7641)
feat: Improve unit test coverage for util/app/app.go (#7641)
Signed-off-by: pashavictorovich <[email protected]>
2021-11-10 13:41:04 -08:00
pasha-codefreshandGitHub 4dae2a8be4 feat: split yamls (#7595)
feat: split yamls (#7595)

Signed-off-by: pashavictorovich <[email protected]>
2021-11-04 08:33:08 -07:00
Mathieu ParentandGitHub 1cf1b21dc3 Update to Helm v3.7.1, allow to pass credentials and new OCI support (#7249)
* chore: Update Helm to v3.7.1

Signed-off-by: Mathieu Parent <[email protected]>
2021-10-29 17:48:27 -07:00
Chetan BanavikalmuttandGitHub 228521595c feat: support adding labels and annotations to cluster secret (#7139)
Signed-off-by: Chetan Banavikalmutt <[email protected]>
2021-09-09 09:03:32 -07:00
pasha-codefreshandGitHub 9f1db8221b feat: Scoped clusters (#7039)
feat: Scoped clusters (#7039)

Signed-off-by: pashavictorovich <[email protected]>
2021-08-25 09:53:58 -07:00
pasha-codefreshandGitHub 7303e9c0a8 feat: Project scoped repo (#6943)
feat: Project scoped repo (#6943)

Signed-off-by: pashavictorovich <[email protected]>
2021-08-16 09:38:37 -07:00
Alexander MatyushentsevandGitHub 60d0e2b66f feat: support --inline flag in 'argocd admin app/proj generate-spec' commands (#6804)
Signed-off-by: Alexander Matyushentsev <[email protected]>
2021-07-26 14:58:13 -07:00
Alexander MatyushentsevandGitHub 5340dce0f9 feat: support managing cluster resources in a namespaced mode (#6581)
Signed-off-by: Alexander Matyushentsev <[email protected]>
2021-07-19 11:58:58 -07:00
Takuma KumeandGitHub c5fe64fb40 feat: Supported set metadata annotations with argocd-util app generate-spec command (#6633)
* feat: Supported set metadata annotations with `argocd-util appgenerate-spec` command

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

* docs: Added `--annotations` option of `argocd-util app generate-spec` command

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

* fix: `--annotations` option changes the `.metadata` section, so change it to the appropriate place

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

* docs: Added `--annotations` option of `argocdapp create` command

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

* fix: set an empty value if there is no `=` in `--annotations`

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

* docs: added an example `--annotations` are `=` delimited

Signed-off-by: takumakume <[email protected]>
2021-07-06 12:11:48 +02:00
Chetan BanavikalmuttandGitHub f89cd78a34 feat: add first class support to access repositories using proxy (#5581) (#6286)
* feat: add first class support to access repositories using proxy

Currently, users need to set the proxy URLs as env variables in the repo server. This is not user-friendly and also error-prone. This PR adds support to maintain proxy URLs along with repository configs in the argocd-cm. Argo CD uses this proxy to access your repository. In case the custom proxy is absent, it defaults to reading the proxy from the env variables.

Signed-off-by: Chetan Banavikalmutt <[email protected]>

* set both http & https proxy variables

Signed-off-by: Chetan Banavikalmutt <[email protected]>
2021-06-16 14:45:10 +02:00
Josiah Wolf OberholtzerandGitHub de9216b6e0 feat: Support Kustomize --force flags (#6443)
Signed-off-by: Josiah Oberholtzer <[email protected]>
2021-06-09 10:16:43 -07:00
Shoubhik BoseandGitHub 043f559fac chore: Organize Application-related defaults/constants in the Application API's package. (#5893)
chore: Organize Application-related defaults/constants in the Application API's package. (#5893)

Signed-off-by: Shoubhik Bose <[email protected]>
2021-05-19 12:43:04 -07:00
1d472ba293 chore: Upgrade Go module to v2 (#5931)
* chore: Upgrade Go module to v2

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

* Restore import order

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

* fix knowntypes_normalizer codegen error

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

* fix codegen

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

* fix Procfile

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

Co-authored-by: Alexander Matyushentsev <[email protected]>
2021-04-01 20:44:18 +02:00
May ZhangandGitHub f755e71fa2 fix: add prefix sync for CLI argocd app flag --retry-limit, --retry-b… (#5876)
* fix: add prefix sync for CLI argocd app flag --retry-limit, --retry-backoff-duration, --retry-backoff-factor and --retry-backoff-max-duration

Signed-off-by: May Zhang <[email protected]>
2021-03-26 09:34:31 -07:00
Alexander MatyushentsevandGitHub ad92ed8bd6 fix: improve 'argocd-util proj generate-spec' usability (#5717)
Signed-off-by: Alexander Matyushentsev <[email protected]>
2021-03-09 11:42:16 -08:00
Alexander MatyushentsevandGitHub 145d4a836d fix: minor 'argocd-util config' commands fixes (#5688)
Signed-off-by: Alexander Matyushentsev <[email protected]>
2021-03-04 10:32:17 -08:00
Shubham AgarwalandGitHub b66f94350b feat: exposed sync retry options via cli for app create (#5638)
Signed-off-by: Shubham Agarwal <[email protected]>
2021-03-01 15:01:19 +01:00
Slava MarkeyevandGitHub 7a556d07ff feat: GitHub organization app for git cloning (#4348) (#5355)
* Git GitHub App auth

Signed-off-by: Slava Markeyev <[email protected]>
2021-02-19 14:24:32 -08:00
Regina ScottandGitHub 50ccb48642 fix: minor cleanup for wording in cli and docs (#5321)
* fix: various docs grammar fixes

Signed-off-by: Regina Scott <[email protected]>
2021-01-28 14:46:57 -08:00
jannfisandGitHub 88b508ed56 fix: Use correct API version when generating app and project manifests (#5301)
Signed-off-by: jannfis <[email protected]>
2021-01-23 20:50:54 -08:00
kshamajain99andGitHub 3240e3f6d1 build consolidated argocd binary (#5247)
Signed-off-by: kshamajain99 <[email protected]>
2021-01-20 11:28:06 -08:00
Tom WieczorekandGitHub 959ecd2c56 fix: app create with -f ignored labels from file (#5268)
Since v1.7.5, argocd app create -f doesn't use any labels specified
inside the application file anymore. Refactor the SetLabels funcion to
merge labels specified in the file with those from the command line
arguments. Extend the existing e2e test to verify that behavior.

Signed-off-by: Tom Wieczorek <[email protected]>
2021-01-19 14:51:48 -08:00
Masaya Aoyama (@amsy810)andGitHub dbed475a36 feat: implement include filter for directory settings (#5166)
modified files are following (others are automatically generated)
* cmd/util/app.go
* pkg/apis/application/v1alpha1/types.go
* reposerver/repository/repository.go
* util/argo/argo.go
* test/e2e/app_management_test.go

Signed-off-by: MasayaAoyama <[email protected]>
2021-01-03 19:17:42 -08:00
kshamajain99andGitHub 80eeefb3c4 feat: declarative config for cluster and repo(#4734) (#5102)
* Declarative config for cluster and repo

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

* Review comments

Signed-off-by: kshamajain99 <[email protected]>
2020-12-23 14:15:05 -08:00
kshamajain99andGitHub 8af5bed924 feat: Generate declarative config for app and appproj (#4734) (#5014)
* Generate declarative config for app and appproj
2020-12-15 13:23:54 -08:00