33 Commits

Author SHA1 Message Date
Brian Goff
cd42fdd7b8 Use strongerrors in provider implementations. (#403)
This ensures that we can catch certain types of errors from providers
and handle accordingly in the core. There is still more to do here to
improve that but this resolves an immediate need to know why a Delete
failed.

vic provider was not updated since I could not figure out where to get
this information.
2018-11-07 16:02:48 -08:00
Robbie Zhang
5991b29f76 [ACI] Support to add extra user agent to the request (#378)
* Add UserAgent

* Change to join the user agent with a whitespace and set in the header

* Remove empty entry from user agent
2018-10-18 14:28:43 -07:00
Robbie Zhang
4a7b74ed42 [VK] Use Cache controller and Make create/delete pod Concurrently (#373)
* Add k8s.io/client-go/tools/cache package

* Add cache controller

* Add pod creator and terminator

* Pod Synchronizer

* Clean up

* Add back reconcile

* Remove unnecessary space in log

* Incorprate feedbacks

* dep ensure

* Fix the syntax error

* Fix the merge errors

* Minor Refactor

* Set status

* Pass context together with the pod to the pod channel

* Change to use flag to specify the number of pod sync workers

* Remove the unused const

* Use Stable PROD Region WestUS in Test

EastUS2EUAP is not reliable
2018-10-16 17:20:02 -07:00
robbiezhang
eb77d5686f Update the network sdk and add more validations 2018-10-13 00:16:19 +00:00
Brian Goff
682b2bccf8 Add support for tracing via OpenCencus
This adds a few flags for configuring the tracer.
Includes support for jaeger tracing (built into OC).
2018-09-26 13:48:40 -07:00
Brian Goff
74840defdf Fix NPE panic in ACI client
resp is nil when `Do()` has an error.

Also seems there was some gofmt issues in the file.
2018-09-19 18:18:24 -07:00
Brian Goff
8091b089a2 Plumb context to providers 2018-09-13 13:49:26 -07:00
robbiezhang
df90c71875 Add unit tests 2018-09-07 18:46:49 -07:00
robbiezhang
844d8a71d0 Add LogType and Metadata for Log Analytics 2018-09-07 18:46:49 -07:00
robbiezhang
b41c1fee1a fix the extensions 2018-09-07 18:46:49 -07:00
Robbie Zhang
a0fb67f2c0 Add validation 2018-09-07 18:46:49 -07:00
Robbie Zhang
169e733adb Adopt ACI Extension and DNSConfig 2018-09-07 18:46:49 -07:00
Robbie Zhang
3ef512349b Update the network api version (#338) 2018-09-07 18:46:49 -07:00
Robbie Zhang
bac3a585da Fix several bugs in the VNET (#287)
* Add more support regions

* Add kube-proxy sidecar container

* Kube-proxy

* Fix several bugs

* indent
2018-09-07 18:46:49 -07:00
Jeremy Rickard
f3578bfc9b Adding network policy reference (#269) 2018-09-07 18:46:49 -07:00
Brian Goff
25e454d18f Add API client for Azure custom vnet (#271)
* Update vendor for azure vent support

* Add support for Azure custom vnets.

Use pointers intead of values. This allows the client to pass back
returned data from Azure.
2018-09-07 18:46:49 -07:00
Jeremy Rickard
36eb3db8a9 Adding network policy reference (#269) 2018-09-07 18:46:49 -07:00
Brian Goff
e8abca0ac9 Add supports for stats in ACI provider
This adds a new, optional, interface for providers that want to provide
stats.
2018-08-17 17:03:25 -07:00
Robbie Zhang
3f83588e59 Reduce ACI API calls (#282)
* Reduce ACI API calls

Reduce reconcile calls and API calls in reconcile

* Fix the pod status update issue

* Revert a few unnecessary change
2018-07-31 13:31:00 -07:00
Rohan Chakravarthy
ef6ae9ecf4 Plumb through log analytics values (#274)
* plumb through log analytics values

* add option to specify a log analytics file as well

* use secret for log analytics
2018-07-25 12:37:26 -07:00
Rohan Chakravarthy
e41a352d63 add support for log analytics in the ACI SDK 2018-07-24 17:56:38 -07:00
Jeremy Rickard
9b06d18023 ACI Provider: Adding Liveness/Readiness probes to ACI sdk (#267)
* Adding Liveness/Readiness probes to ACI sdk

* Rename Secure to SecureValue

* Slightly modify failure test.

* Remove errant t.Fatal line
2018-07-24 15:08:25 -07:00
Jeremy Rickard
047e5f22db Updating aci api version (#264)
The aci provider is using a quite old version of the
aci API. This PR updates it to the most recent version.

Fixes: #263
2018-07-23 12:12:05 -07:00
Eric Jadi
89921a08c1 Added clean exec functionality + ACI implementation - V2 (#244)
* Stubs and vkubelet changes

* added dependencies

* Azure provider exec implementation

* added missing dependencies

* added vkubelet imports

* added huawei exec stub

* Fixed exec tab functionality / stdin buffer length

* Removed unused import

* Added provider function GetPodFullName + ACI implementation

* Added error handling in ACI provider exec
2018-07-06 14:12:05 -07:00
Fei Xu
8068f3cac8 gofmt the project files (#205) 2018-05-18 16:13:34 -07:00
Robbie Zhang
228a1f7a5f [Azure] Make Resoures.Limits Optional (#175)
* Make Resources.Limits Optional

* Remove the accuracy check of the resources.limits
2018-04-27 10:27:40 -07:00
Robbie Zhang
2b85b0d1df Fill in Default Values for CPU/Memory (#130)
Update k8s client and the dependencies
ACI client change for Mocking
Add ACI Provider Mock Tests
Add the Windows development environment
Add UT for Default Resource Requests
Enable the make test in Docker file
Update the vendors
2018-04-16 10:31:16 -07:00
Bhargav Nookala
6f748f4375 Adding support for ACI DNS name labels (#97) 2018-02-23 14:06:23 -08:00
Robbie Zhang
f4ebbfc7a3 [Azure] Optimize VK Setup in ACS/AKS (#85)
* Read ACS Credentials for Azure Authentication

Supprt a new environment variable: ACS_CREDENTIAL_LOCATION
Expect the value to be the ACS credential filepath, which is the
/etc/kubernetes/azure.json file generated on the ACS nodes.

If the ACS_CREDENTIAL_LOCATION is specified and loaded,
create the Azure Authentication class from its values.

If the AZURE_AUTHENTICATION_LOCATION is specified and loaded,
its values will overwrite the value above.

Refactor the ACI provider and ACI client to be able to override the SPN by environment variable
2018-02-13 19:07:27 -08:00
robbiezhang
909819c69d [Azure] Fix the EmptyDir Volume issue for ACI Provider 2018-01-20 02:32:38 +00:00
Rita Zhang
9354966e34 Update unit test 2017-12-22 00:12:00 -08:00
Rita Zhang
8b59becf35 Return error to kubectl logs; use http statuscode 2017-12-22 00:08:10 -08:00
Ria Bhatia
0075e5b0f3 Initial commit 2017-12-05 17:53:58 -06:00