Commit graph

260 commits

Author SHA1 Message Date
Alex Collins
544bd47e94
Nils health if the resource does not provide it. Closes #1383 (#1408) 2019-04-09 15:05:14 -07:00
Jesse Suen
6b69449175
Add OpenAPI validation in CRD schema (#1256) 2019-04-06 17:18:00 -07:00
Alex Collins
723228598e
Adds images to resource tree (#1351) 2019-04-03 15:11:48 -07:00
Alex Collins
ae41425c77
gotestsum (#1341) 2019-03-30 22:14:35 -07:00
Alexander Matyushentsev
896d46525e Don't run lint after running codegen (#1338) 2019-03-29 13:27:22 -07:00
Alex Collins
b28d8361f5
Adds "make build" target, and running lint,build,test (#1331) 2019-03-28 11:20:51 -07:00
Alexander Matyushentsev
af896533df
Issue #1135 - Run e2e tests in throw-away kubernetes cluster (#1318)
* Issue #1135 - Run e2e tests in throw-away kubernetes cluster
2019-03-24 07:35:57 -07:00
Alexander Matyushentsev
c605e892b6
Issue #1258 - Disable CGO_ENABLED for server/controller binaries (#1286) 2019-03-19 14:25:19 -07:00
Alex Collins
0c4d5009a2
Tweak lint (#1259) 2019-03-12 10:31:35 -07:00
Alex Collins
5e7b48c9a2
Migrates from gometalinter to golangci-lint. Closes #1225 (#1226) 2019-03-08 16:22:04 -08:00
Alex Collins
31e801425f
Lints local imports. Closes #1197 (#1198) 2019-02-27 18:05:55 -08:00
Alex Collins
06c55b348a
Allows you to exclude resources based on API group, kind, and cluster. Fixes #1010 (#1147) 2019-02-21 08:30:13 -08:00
Jesse Suen
297a91fde4
Refactor packr box usage into new assets library. Add faster DEV_IMAGE build (#1073) 2019-02-01 13:12:52 -08:00
Stephen Haynes
7d40d228da build cli with packr (#875) 2018-12-04 22:42:37 -08:00
Stephen Haynes
f762188b89 build application-controller with packr (#866) 2018-12-03 17:29:45 -08:00
Jesse Suen
2c8e9fa9ac
Switch to k8s recommended app.kubernetes.io/instance label (#857)
Remove ability to set helm release name
Reorganize Argo CD constants
2018-11-30 23:54:01 -08:00
Zvi Cahana
800c4b1d48 Build argocd-util as a statically linked binary (#845) 2018-11-29 12:57:31 -08:00
Jesse Suen
76c5df087a
Update kustomize base when setting image tags (#833) 2018-11-28 13:55:38 -08:00
Jesse Suen
cde040e10f
Serve CLI binaries directly from API server (#837) 2018-11-27 13:39:06 -08:00
Jesse Suen
bb82919131
Fix make all target and use archiveLogs workflow feature (#795) 2018-11-16 18:14:52 -08:00
Jesse Suen
361931f104 Move to single master image for all argocd services (issue #762) 2018-11-15 18:11:10 -08:00
Alexander Matyushentsev
dca1996640
Issue #657 - Use codecov to collect test coverage (#717) 2018-10-23 14:42:41 -07:00
Jesse Suen
dd94e5e5c3 Add version check during release to ensure compiled version is accurate (#646) 2018-09-26 07:40:42 -07:00
Alexander Matyushentsev
bed82d68df
Update changelog and fix release command dependency (#638) 2018-09-24 12:58:17 -07:00
Jesse Suen
359271dfa8 Update manifests to support in-cluster installations (#634) 2018-09-24 10:14:31 -07:00
Jesse Suen
d7c04ae24c
Update manifests to use v0.8.0
Make manifests friendly to `kubectl apply` semantics by omitting `data:` field
RBAC docs improvements
2018-09-04 17:58:50 -07:00
Jesse Suen
b54a5a3e25
Refactor Makefile/build to use a single Dockerfile. Update kustomize to v1.0.7 (#538) 2018-08-28 16:00:14 -07:00
Andrew Merenbach
36624f9d89
Enable code coverage (#500)
* Update Gopkg.toml

* Update Gopkg.lock

* Add new test-coverage command

* Update .gitignore to ignore coverage.out

* Test injection of COVERALLS_TOKEN variable

* Add draft of .travis.yml

* Rm recursive coveralls token

* Ensure that goveralls gets installed

* Rm second Go version

* Update workflow with coverage testing

* Change service from argo to argo-ci

* Rm .travis.yml

* Try setting coveralls token more explicitly

* Try file-based instead of env-based token

* Try both methods of providing token

* Go back to just env-based token

* Update with another printout test

* Try using container, thanks @alexmt

* Simplify for now, take 2

* Rm quotes

* Move env to ci-builder template

* Rm coveralls token

* Add coverage badge for current branch, take 2

* Add else statement for output in case of missing token

* Ensure we use the race detector

* Don't install goveralls with dep ensure

* Update generated files

* Try ignoring intermediate files

* Don't use race detector for now

* Try new pattern to ignore

* Try different pattern now

* Try different ignore path

* Try a different ignore style

* Ignore generated protobuf files properly now

* Rm standalone test since we have test-coverage
2018-08-09 15:54:15 -07:00
Jesse Suen
231d86e249
Create update-manifests.sh script to support manifest generation for personal images (#477)
Tweaks to README and getting_started.md
2018-07-30 16:13:54 -07:00
Alexander Matyushentsev
6905029c17
Issue #461 - Fix broken e2e tests (#464) 2018-07-26 01:46:13 +03:00
Andrew Merenbach
5d75dc02b1
Add verbose flag to tests (#462) 2018-07-25 13:35:51 -07:00
Jesse Suen
a7c7523a8c
Support helm charts and yaml directories as an application source (#432)
* Support helm charts and yaml directories as an application source
* Run e2e test in parallel and increase timeout
2018-07-24 16:37:12 -07:00
Jesse Suen
a5334ecde7
Update getting_started.md with new install instructions.
Generate install.yaml from IMAGE_NAMESPACE IMAGE_TAG values
Fix panic in initializeSettings()
2018-07-17 01:58:18 -07:00
Jesse Suen
9f35bad93f
Rework installation process to apply from install.yaml (#421)
* update getting started to work for post 0.6
* create central install manifest from individual manifests
* point e2e tests to correct manifests dir
* Update roles required by api-server and application-controller to include CRUD on appproject CRD.
* Added back explanations of keys in the secret manifests

NOTE: install.yaml will need change to use a hard wired version (e.g. v0.6.0) in a subsequent checkin.
2018-07-16 18:37:41 -07:00
Andrew Merenbach
3e7116c427
Enable CGO on Linux builds (#320)
* Take first shot at enable CGO on Linux

* Simplify CGO_ENABLED flag check

* Use curly braces for consistency

* Build CLI with CGO if possible, thanks @jessesuen
2018-06-26 14:29:11 -07:00
Jesse Suen
1148fae419
Add clean-debug make target to prevent packr from boxing debug artifacts into binaries 2018-06-15 14:31:26 -07:00
Jesse Suen
30a3dba7ad
argocd-server needs to be built using packr to bundle RBAC policy files. Update packr (resolves #266) 2018-06-06 12:35:25 -07:00
Jesse Suen
670921df90
SSO Support (#152)
This change implements SSO support.

dex is run as a sidecar to the ArgoCD API server, which fronts dex using a reverse proxy. The end result is that the ArgoCD acts as an OIDC provider serving under /api/dex. The login flow begins at /auth/login, which redirects to the Dex's OAuth2 consent page and ultimately directed to the IdP provider's login page, where they enter their credentials. After logging in, the OAuth2 redirect flows back to the client app, ultimately reaching /auth/callback, where the OIDC token claims are signed, and persisted in the users's cookie.

The dex configuration YAML is formulated during startup (through the argocd-util utility), with the configuration values taken from the argocd-cm configmap and the argocd-secret.

The build process was refactored to build argocd-util statically, so that it could be run inside off-the-shelf dex, which is built from alpine. Also, build speed was improved by expanding the default make targets in the Dockerfile, to avoid rebuilding each binary from scratch

Session management was refactored to use more bare-bones jwt library constructs, so we could reuse code from the user/password flow vs. OAuth2 flow.

* Initial SSO support. Run dex as sidecar. Generate dex config from ArgoCD cm and secret
* Sign and write SSO claims to JWT cookie during SSO login. Refactor session manager
* Build argo-util statically so it can run in dex sidecar. Redirect after SSO login
* Simplify app creation process to not require communication to dex gRPC server
2018-05-02 22:02:26 -07:00
Alexander Matyushentsev
11260f2476
Don't ask for user credentials if username and password are specified as arguments (#129)
* Don't ask for user credentials if username and password are specified as arguments

* Add cli image make target

* Don't re-prompt username/password in PromptCredentials
2018-04-25 14:18:30 -07:00
Jesse Suen
1a85a2d805
Bump version file to 0.3.0. Add release target and cli-linux/darwin targets 2018-04-23 00:34:08 -07:00
Jesse Suen
1c60a69866
Rename argocd app add/rm to argocd app create/delete (resolves #114) 2018-04-20 17:55:21 -07:00
Jesse Suen
2c9843f1a0
Update ksonnet to v0.10.0-alpha.2 2018-04-18 13:54:04 -07:00
Jesse Suen
ebb24b65b7
Add uninstall support. Remove redundant constants 2018-03-08 03:10:11 -08:00
Alexander Matyushentsev
e3c0263970 Fix typo in Makefile 2018-03-07 11:28:05 -08:00
Alexander Matyushentsev
405b47ffe6
Issue #19 - Move Kubernetes manifest generation into separate service (#20) 2018-03-06 22:05:07 -08:00
Jesse Suen
cc232a4dc6
Rewrite installer. Install into argocd namespace. Standardize kubeconfig parsing 2018-03-02 18:04:29 -08:00
Jesse Suen
d61a8e6704
Fix application-controller dockerfile. Install RBAC artifacts. 2018-03-01 04:14:55 -08:00
Jesse Suen
797c88b3a6
Add an implementation for the ksonnet comparator 2018-02-26 18:22:08 -08:00
Jesse Suen
4d9a53849f
Update to latest ksonnet with single destination. Fix linting errors. Update build container 2018-02-26 13:47:42 -08:00
Jesse Suen
be0a7e992a
Fix linting errors 2018-02-25 00:44:40 -08:00
Alexander Matyushentsev
af83297c83
Implement application controller installer (#8) 2018-02-23 15:48:41 -08:00
Alexander Matyushentsev
f4a854d032
Add controller-image make target (#7) 2018-02-23 15:12:11 -08:00
Alexander Matyushentsev
c0233ebcec
Update application CRD types, implement application manager draft (#3) 2018-02-22 10:56:14 -08:00
Jesse Suen
432e4f46a0
Fix issues caught by linting 2018-02-21 03:23:29 -08:00
Jesse Suen
e31a301952
Add client code for cluster get,delete,list operations 2018-02-18 13:16:24 -08:00
Jesse Suen
ed7ea039f1
Generate the application clientset 2018-02-16 17:34:13 -08:00
Jesse Suen
c7767976bd
server side .proto and gRPC stubs for cluster CRUD operations 2018-02-16 17:08:57 -08:00
Jesse Suen
c2379a3e8b
Install and codegen support for cluster CRD 2018-02-16 15:18:37 -08:00
Jesse Suen
f6904245fe
Add argocd CLI. Add cluster server endpoint. Fix protobuf generation 2018-02-15 17:13:47 -08:00
Jesse Suen
a67038ae2e
Initial project structure 2018-02-14 16:56:17 -08:00