1545 Commits

Author SHA1 Message Date
Alexander Matyushentsev
59dbe8d7ea Maintain list of recent deployments in app CRD (#59) 2018-03-28 17:35:48 -07:00
Alexander Matyushentsev
e1c7f9d6f8 Fix deleting resources which do not support 'deletecollection' method but support 'delete' (#56) 2018-03-27 14:05:57 -07:00
Alexander Matyushentsev
5febea2235 Argo server should not fail if configmap name is not provided or config map does not exist (#55)
* Argo server should not fail if configmap name is not provided or config map does not exist

* Make sure install and server uses same consistent config-map name
2018-03-27 14:05:41 -07:00
Andrew Merenbach
d093c8c3a1 Add password hashing (#51)
* Add password hashing utils and matching tests

* Test staleness for bcrypt

* Add prototype for secret credential specification

* Strip trailing newlines

* Clean up GetSettings and handle errors better

* Code more defensively for password input

* Don't complicate username input

* Rename create-superuser => config-superuser

* Rm unneded holdover from testing

* Add default credentials secret name, thanks @alexmt

* Publish root secret name key, default secret name

* Use default secret name if not specified in config map

* Factor out credential modification code

* Accept password inline without anonymous function

* Only config superuser if --upgrade specified or creating new

* Print newline after password input
2018-03-27 07:38:57 -07:00
Alexander Matyushentsev
10a8d521ef Add application source and component parameters into recentDeployment field of application CRD (#53)
* Add application source and component parameters into recentDeployment field of application CRD

* Fix broken test
2018-03-26 11:37:38 -07:00
Alexander Matyushentsev
234ace173e Replace ephemeral environments with override parameters (#52) 2018-03-26 08:28:56 -07:00
Andrew Merenbach
b1682cc44b Add install configmap override flag (#47)
* Clone repositor to new config service

* Update configmap files

* Update configmap

* Don't make a service for this

* Add config map command-line flag

* Add config map install step

* Add new secrets file

* Update secret retrieval

* Flesh out secret retrieval API

* Update secret.go

* Create configmap/secret manipulation tools

* Slight tweaks to logic in util functions

* Add test for configmap code

* Update configmap/secret tests and code

* Update installation settings

* Revert secret type field

* Fix subfield access

* Update container command

* Rm unnecessary newline

* Quote configmap parameter

* Update printouts from tests

* Rm unnecessary suffixes from util functions

* Update comments to match method names

* Rm secret/configmap code for now

* Rm spurious newline

* Add config-map argument to argocd-server

* Use Containers, not InitContainers, thanks @alexmt

* Reintroduce config map reading

* Rename wrapper into ConfigManager

* Rename configmap => configmanager

* Break ConfigManager invocation into two lines

* Privatize Clientset field

* Support Listing config maps

* Simplify client manager instantiation

* Update settings config

* Add Secret management to ConfigManager

* Address scoping concerns

* Refactor config manager, thanks @alexmt
2018-03-22 15:07:29 -07:00
Alexander Matyushentsev
74797a2ac8 Delete child dependents while deleting app resources (#48) 2018-03-22 13:34:13 -07:00
Alexander Matyushentsev
92b7c6b5f8 Disable strict host key checking while cloning repo in repo-server (#45)
* Disable strict host key checking while cloning repo in repo-server

* Use correct environment during fetching git repo in repo-server
2018-03-20 11:52:42 -07:00
Alexander Matyushentsev
5c062bd3e5 Support deploying/destroying ephemeral environments (#40)
* Support deploying ephemeral environments

* Support deleting application resources

* Fix merge conflict

* Add missing break statement
2018-03-16 16:17:03 -07:00
Andrew Merenbach
98754c7fe1 Persist parameters during deployment (Sync) (#39)
* Add basic skeleton for improvements

* Update protobuf config for repository API

* Update skeleton of deploy params code

* Add DeploymentInfo struct

* Add comment, comment out code

* Update repository.pb.go

* Update comment in repository.proto

* Update reposerver subpackage

* Comment out for now

* Start getting function into shape

* Flesh out logic further

* Get unit test started for TestListEnvParams

* Add missing interface declaration

* Finish unit test for ListEnvParams

* Use string literals for regexp.MustCompile

* Clean up RPC response code

* Use map[string]interface{} for now, thanks @alexmt

* First draft attempt to integrate deployment info retrieval

* Install more wiring

* DRY

* Move CRD update to after successful deployment, thanks @alexmt

* Move app params update to after successful deployment, too

* Don't replace application status, thanks @alexmt

* Convert to string types

* Don't create unused var

* Log received values

* Unquote quoted params

* Use string as value type

* Use named returns, no magic number

* Use map for gRPC data transfer

* Update generated code

* Log actual map, not wrapper object

* Fix unit test
2018-03-16 14:58:59 -07:00
Alexander Matyushentsev
611b0e48d7 Issue #34 - Support ssh git URLs and ssh key authentication (#37)
* Issue #34 - Support ssh git URLs and ssh key authentication

* Add git unit tests
2018-03-15 13:00:54 -07:00
Jesse Suen
3a1338be8b Add ability to override the server and namespace defined in ksonnet env when enabling an app 2018-03-09 02:33:55 -08:00
Alexander Matyushentsev
d1311bdc8c Upgrade ksonnet version 2018-03-08 14:51:52 -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
Alexander Matyushentsev
08344adc1c Fix git client CloneOrFetch: remove local branches after fetching remote changes 2018-03-01 11:52:42 -08:00
Jesse Suen
d61a8e6704 Fix application-controller dockerfile. Install RBAC artifacts. 2018-03-01 04:14:55 -08:00
Jesse Suen
b2631a6cff Add argocd app diff and improve argocd app get output. Simplify diff library 2018-02-28 23:40:03 -08:00
Alexander Matyushentsev
466d5094fe Fix git client CloneOrFetch: remove local branches after fetching remote changes (#17) 2018-02-28 23:16:27 -08:00
Alexander Matyushentsev
eef76f5e40 Fix in-cluster kube config creation (#16) 2018-02-28 20:58:39 -08:00
Jesse Suen
a369d51a27 Add ability to sync an application to its target state 2018-02-28 03:07:56 -08:00
Jesse Suen
2aa9f33abd Add support for rendering delta diffs 2018-02-27 17:35:21 -08:00
Jesse Suen
0d6748bdde Fixes to retrieving live resource counter parts from a resource config 2018-02-27 16:58:25 -08:00
Jesse Suen
12d513f5af Fix diff util to handle nil comparisons. Remove debug logic 2018-02-27 03:16:18 -08:00
Jesse Suen
c13699cfe3 Fixes to app comparator 2018-02-27 01:53:14 -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
d280cdfde1 Add ability to add clusters from kubeconfig contexts 2018-02-26 12:00:02 -08:00
Alexander Matyushentsev
f25a7f6547 Add argo ci config, temporary skip failing tests (#11) 2018-02-26 09:48:58 -08:00
Jesse Suen
316cfd2581 Change implementation of clusters from CRD to K8s secret 2018-02-26 01:59:02 -08:00
Jesse Suen
787ee520b4 Add diff utility library for comparing unstructured object(s) 2018-02-25 18:36:19 -08:00
Jesse Suen
be0a7e992a Fix linting errors 2018-02-25 00:44:40 -08:00
Jesse Suen
3082409330 Libraries for the equivalent of ks show env and kubectl get all -l mylabel=val 2018-02-24 04:15:36 -08:00
Alexander Matyushentsev
f060f44fd2 Synchronize repo processing in app manager (#6) 2018-02-23 12:51:10 -08:00
Alexander Matyushentsev
dd47c741c4 More application manager tests (#5) 2018-02-23 08:58:00 -08:00
Jesse Suen
fe7bc15694 Add initial stubs for ksonnet util 2018-02-22 18:42:35 -08:00
Alexander Matyushentsev
c0233ebcec Update application CRD types, implement application manager draft (#3) 2018-02-22 10:56:14 -08:00
Jesse Suen
d7d7821c3e Support persistence of repos as secrets 2018-02-21 03:01:43 -08:00
Jesse Suen
0f712e4081 Add repository service, CLI subcommand, and backend implementation 2018-02-20 14:06:15 -08:00
Jesse Suen
a2cfff4317 Support for cluster update endpoint 2018-02-19 02:59:34 -08:00
Jesse Suen
e31a301952 Add client code for cluster get,delete,list operations 2018-02-18 13:16:24 -08:00
Jesse Suen
51cac0e2c1 Backend implementation of cluster CRUD operations 2018-02-16 18:29:22 -08:00
Jesse Suen
70f6c37ca0 Remove unintentional argoproj/argo dependency 2018-02-16 14:03:27 -08:00
Jesse Suen
a67038ae2e Initial project structure 2018-02-14 16:56:17 -08:00