* Make injected application instance label configurable from default
Stop removing ksonnet.io/component label, unless using legacy label
* Fix applying of resources when namespace is empty
Update dependencies to k8s v1.12 and client-go v9.0 (resolves#353)
Fix issue where applications could not be deleted on k8s v1.12 (resolves#718)
Refactor k8s dynamic resource libraries to promote code reuse
* Make use of dex refresh tokens and store them into local config
* API client will automatically redeem OIDC refresh token if auth token expired.
* Stop the practice of reissuing/resigning non-expiring dex claims in API server.
* Add ExpiresAt seconds
Per NumericDate having resolution of seconds at https://tools.ietf.org/html/rfc7519#page-6
* Rename expires for clarity; update comments
* Don't use different possible values for now
* Use intermediate variable for expires value
* Add pseudocode comments to session manager
* Update password storage
* Factor out LocalUsers
* Fix compile errors
* Add claim checks
* Support expiry on ReissueClaims tokens
* Set location to UTC for tokens
* Add logging for username
* Fix issuedAt type assertion
* Set mtime to UTC location
* Set second param on mgr.Create
* Update output for sync
* Major refactor
* Reduce verbosity
* Reduce duplicated code some more, thanks @jessesuen
* Move printout
* Move printout to success, not failure
* Revert "Move printout to success, not failure"
This reverts commit 3a6863d8f497c02bd381cf9ed6ff4a642c8bdcb5.
* Print final status on success _or_ failure
* Adjust printouts with frankenparameters
* Major refactor of data pipelining, thanks @jessesuen
* Refactor app state change printouts
* Fix number of Sprintf args
* Use previous format for keys, rather than hash
* Rename res => hook for clarity
* Don't print app resources initially, thanks @jessesuen
* Refactor Fprintf call to Fprintln
* Rename waitUntilOperationCompleted, thanks @jessesuen
* Refactor to merge data on update
* Default to updated for new resource states
* Use map for fields that actually change
* Don't let flapping lead to duplicate printouts
* Simplify caching mechanism
* Generate swagger files
* Add basic Swagger definitions
* Add reposerver swagger file
* Consolidate swagger files
* Move swagger files to swagger-ui directory instead
* Put swagger files in swagger-ui
* Fix order of operations
* Move back to swagger directory
* Serve API server swagger files raw for now
* Serve reposerver swagger files from API server
* Move back to subdirectories, thanks @alexmt
* Fix comment on application Rollback
* Update two more comments
* Fix comment in session.proto
* Update generated code
* Update generated swagger docs
* Fix comment for delete actions in cluster and repository swagger
* Set expected collisions and invoke mixins
* Update generated code
* Create swagger mixins from codegen
* Move swagger.json location, thanks @jazminGonzalez-Rivero
* Add ref cleanup for swagger combined
* Make fewer temp files when generating swagger
* Delete intermediate swagger files
* Serve new file at /swagger.json
* Set up UI server
* Update package lock
* Commit generated swagger.json files
* Add install commands for swagger
* Use ReDoc server instead of Swagger UI server
* Update lockfile
* Make URL paths more consistent
* Update package lock
* Separate out handlers for Swagger UI, JSON
* Rm unnecessary CORS headers
...since we're serving from the app server
* Simplify serving
* Further simplify serving code
* Update package lock
* Factor out swagger serving into util
* Add test for Swagger server
* Use ServeSwaggerUI method to run tests
* Update package lock
* Don't generate swagger for reposerver
* Reset to master Gopkg.lock and server/server.go
* Merge in prev change to server/server.go
* Redo changes to Gopkg.lock
* Fix number of conflicts
* Update generated swagger.json for server
* Fix issue with project feature error
* Support OAuth2 login flow from CLI (resolves#172)
* Refactor SessionManager to handle local and OAuth2 logins.
* argo login will request permanent credentials after OAuth2 flow
* Implement proper OIDC app state nonce. Add explicit `--sso` flag to `argo login`
* Rebase all changes on to master
* Add additional comments, fix errors, thanks @jessesuen
* Centralize token injection, thanks @jessesuen
* Add REQUIREAUTH=1 env flag to enable authentication
* Re-arrange utilities into more granular packages
* Simplify config manager interface into just Get() and Save()
* Support installation into different namespace
* Combine all secrets into single secret
* Use a hard-wired configmap name
* Admin username is no longer configurable