Commit Graph

514 Commits

Author SHA1 Message Date
Brian Goff
1dadd46e20 Use Debian go image in Dockerfile
The build needs bash in order to process build tags correctly. Alpine
doesn't come with bash... Debian comes with all the things we need out
of the box, so let's just use that.
2019-04-01 15:14:21 -07:00
Brian Goff
80de7fd566 Fix typo 2019-04-01 11:43:54 -07:00
Brian Goff
1942522cf6 Add async provider pod status updates (#493)
This adds a new interface that a provider can implement which enables
async notifications of pod status changes rather than the existing loop
which goes through every pod in k8s and checks the status in the
provider.
In practice this should be significantly more efficient since we are not
constantly listing all pods and then looking up the status in the
provider.

For providers that do not support this interface, the old method is
still used to sync state from the provider.

This commit does not update any of the providers to support this
interface.
2019-04-01 09:07:26 -07:00
Kevin Zhao
5afb24809d Add OpenStack Zun provider(#22) (#239)
* Add Virtual Kubelet provider for OpenStack Zun

Initial virtual kubelet provider for OpenStack Zun. This provider
currently handles creating, starting and deleting a pod via OpenStack
Zun. Currently the configmap and secret is not support in Zun. Currently
the Volume is supported in Zun and will implementation the support in
virtual kubelet in next several patches.

Will add document to elaborate this development status.

Change-Id: Id80f18d89b22c535214aef95254f5c3c7ae23139
Signed-off-by: Kevin Zhao <kevin.zhao@arm.com>

* trying to fix dependencies

Change-Id: I8e6f2e0234a11591ff2be74e22dca1fb91bf8f47
Signed-off-by: Davanum Srinivas <davanum@gmail.com>

* Add dummy ExecInContainer method

Change-Id: Idece5695bd81b0911538660526484895cdd8832c
Signed-off-by: Davanum Srinivas <davanum@gmail.com>

* better use of fmt.Errorf

Change-Id: Ic402c80bd2302ac4f26b0025f110cbf9977ca862
Signed-off-by: Davanum Srinivas <davanum@gmail.com>

* fix gofmt error

Signed-off-by: Kevin Zhao <kevinzs2048@gmail.com>

* add gophercloud vendor

Signed-off-by: Kevin Zhao <kevinzs2048@gmail.com>

* add provider register for openstack

Signed-off-by: Kevin Zhao <kevinzs2048@gmail.com>

* fix build error

Signed-off-by: Kevin Zhao <kevinzs2048@gmail.com>

* excluded aci test case

Signed-off-by: Kevin Zhao <kevinzs2048@gmail.com>

* Zun: several fixes on openstack provider

* Remove 'zunCapStatusToPodPhase' since it is not used anymore.
* Remove the handling of first container in capsule.
* Remove 'ApiVersion' from CapsuleTemplate

Signed-off-by: Hongbin Lu <hongbin034@gmail.com>

* Update gophercloud to latest

* Zun: use Zun API micro version 1.32

Signed-off-by: Hongbin Lu <hongbin034@gmail.com>

* Zun: wait for capsule to be deleted

Resource deletion in OpenStack Zun is asynchronous which means
the resource is not deleted immediately right after the delete request.
This commit make the provider wait for resource deletion to complete
on DeletePod.

Signed-off-by: Hongbin Lu <hongbin034@gmail.com>

* Change the build tag to openstack_provider

Signed-off-by: Hongbin Lu <hongbin034@gmail.com>
2019-03-28 18:27:57 -07:00
Brian Goff
947b530f1e Replace testify with gotest.tools (#553)
* vendor gotest.tools

* Run gotest.tools migration tools

* Fixup tests that were improperly converted

* Remove unused testify package vendors
2019-03-28 17:08:12 -07:00
Luc Perkins
561ccca561 Add Helm documentation (#517)
* Add required blocks to Helm templates

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Make CLI table border lighter

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Change aesthetic of CLI table

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Add admonition blocks

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Fix wording

Signed-off-by: lucperkins <lucperkins@gmail.com>
2019-03-28 15:30:30 -07:00
Brian Goff
bf420eac41 Remove sfmesh provider (#550)
This is not being supported and as such it was requested (internally) to
be removed.
2019-03-28 09:01:06 -07:00
Ria Bhatia
6672df0b7b Update README.md
Fixing calendar spelling
2019-03-27 16:41:22 -07:00
Sravan Rengarajan
aa581a0f9c Merge pull request #552 from srrengar/acidocchanges
ACI readme updates
2019-03-27 16:36:32 -07:00
Sravan Rengarajan
60c5807304 Merge branch 'master' into acidocchanges 2019-03-27 12:26:15 -07:00
Sravan Rengarajan
ecc46e6c7d ACI readme updates 2 2019-03-27 12:25:57 -07:00
Sravan Rengarajan
eb040b1b1d ACI readme updates 2019-03-27 12:23:09 -07:00
Brian Goff
dd815dafc3 Add tracing options to helm chart (#551) 2019-03-27 12:01:37 -07:00
Luc Perkins
4a14a71ebe Add initial ADOPTERS file (#547)
Signed-off-by: lucperkins <lucperkins@gmail.com>
2019-03-25 16:42:37 -07:00
Ria Bhatia
3f10f40f0a Update README.md
I had a typo! :(
2019-03-25 15:53:43 -07:00
Brian Goff
10430f0b7f Add node provider interfaace (#526)
This starts the work of having a `NodeProvider` which is responsible for
providing node details.
It splits the responsibilities of node management off to a new
controller.

The primary change here is to add the framework pieces for node
management and move the VK CLI to use this new controller.

It also adds support for node leases where available. This can be
enabled via the command line (disabled by default), but may fall back if
we find that leaess aren't supported on the cluster.
2019-03-25 15:02:40 -07:00
Luc Perkins
9e245f3737 Additional provider docs (#498)
* Modify providers shortcode

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Add extra note to provider section

Signed-off-by: lucperkins <lucperkins@gmail.com>

* More info in Providers doc

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Update Alibaba tag

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Add resources directory back to Git

Signed-off-by: lucperkins <lucperkins@gmail.com>
2019-03-25 14:16:33 -07:00
Zhengyi Lai
c898aefdcb Fix typo (#539)
Signed-off-by: Zhengyi Lai <zheng1@yunify.com>
vtest
2019-03-19 11:48:41 -07:00
Luc Perkins
73a989d7cc Remove resources folder from Git (#536)
Signed-off-by: lucperkins <lucperkins@gmail.com>
2019-03-12 12:08:23 -07:00
Vineeth Reddy
5cea3e7ea8 FieldRef feature for DownwardAPI (#534)
* FieldRef feature for DownwardAPI

Signed-off-by: VineethReddy02 <vineethpothulapati@outlook.com>

* Unit tests for FieldRef

Signed-off-by: VineethReddy02 <vineethpothulapati@outlook.com>
2019-03-08 11:15:08 -08:00
Brian Goff
f8c51004d4 Support building an allow-list of providers (#527)
* Add providers subcommand to verify providers

Allows users to check what providers are available

* Fix version output to add new line

This command was totally broken until we moved around the call to
`initConfig()`, this just fixes the output now that it works.

* Flip boolean of provider include tags

All providers are still included by default and fix tags using the old
format.
2019-03-02 11:25:47 -08:00
Pires
a5d7400232 providers: remove hypersh provider (#524)
Hyper.sh was shutdown on Jan 16, 2019.
https://blog.hyper.sh/close_hyper_sh.html

Signed-off-by: Paulo Pires <pjpires@gmail.com>
2019-02-28 15:04:13 -08:00
JoeWrightss
947a73b2a5 Fix some misspells in README.md (#528)
Signed-off-by: zhoulin xie <zhoulin.xie@daocloud.io>
2019-02-25 22:13:02 -08:00
Brian Goff
d3b1401fef Fix azure-aci vendor commit (#532)
The tag was re-created since I force-pushed to fix up some issues with
moving git history over (b/c I originally did not move with git
history).
2019-02-25 20:35:57 -08:00
Brian Goff
d19e8e5e27 Move aci client (#531)
* Add azure-aci client dep

* Use aci client from new repo
2019-02-25 17:15:25 -08:00
Brian Goff
1bfffa975e Make tracing interface to coalesce logging/tracing (#519)
* Define and use an interface for logging.

This allows alternative implementations to use whatever logging package
they want.

Currently the interface just mimicks what logrus already implements,
with minor modifications to not rely on logrus itself. I think the
interface is pretty solid in terms of logging implementations being able
to do what they need to.

* Make tracing interface to coalesce logging/tracing

Allows us to share data between the tracer and the logger so we can
simplify log/trace handling wher we generally want data to go both
places.
2019-02-22 11:36:03 -08:00
Luc Perkins
bd103a43bd Use Fira Mono font for code samples (#518)
Signed-off-by: lucperkins <lucperkins@gmail.com>
2019-02-05 15:07:17 -08:00
Fei Xu
ad6fbba806 parse the exec flags from request query (#510) 2019-02-01 17:05:37 -08:00
Luc Perkins
850b3716eb Add a Helm index to the /charts subdirectory (#513)
* Add generated index.yaml

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Add README with index.yaml generation instructions

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Fix error in index generation instruction

Signed-off-by: lucperkins <lucperkins@gmail.com>
2019-01-31 16:58:27 -08:00
Luc Perkins
318edee630 Usage docs (#501)
* Add setup and usage docs

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Finish initial version of setup doc

* Add YAML config file for CLI docs

* Finish CLI shortcode

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Fix scrolling on mobile

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Finish first version of usage doc

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Remove go install section, modify CSS for CLI docs, and fix typo

Signed-off-by: lucperkins <lucperkins@gmail.com>
2019-01-24 11:01:42 -08:00
Luc Perkins
48127bfcf5 Modify providers shortcode (#497)
* Modify providers shortcode

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Change table structure

Signed-off-by: lucperkins <lucperkins@gmail.com>
2019-01-24 10:38:49 -08:00
Luc Perkins
49eeca235c Update root URL to new address (#507)
Signed-off-by: lucperkins <lucperkins@gmail.com>
2019-01-24 09:47:21 -08:00
Luc Perkins
8ec59f8261 Add SEO metadata partial and bump Hugo version to 0.53 (#508)
Signed-off-by: lucperkins <lucperkins@gmail.com>
2019-01-24 09:37:29 -08:00
Ria Bhatia
4f3bd20e15 ACI docs & limitations (#502)
* adding limitations

* edits -1

* formatting

* making the docs usable :)
v0.8.0
2019-01-15 13:05:30 -08:00
Brian Goff
20911aa3b5 fix potential panic on http server close (#496) 2019-01-15 10:37:06 -08:00
Luc Perkins
e98d3ad2ae Update Alibaba tag (#499) 2019-01-11 10:24:43 -08:00
Luc Perkins
41c6b249d2 Add Nomad to providers list (#489)
Adding nomad!!
2019-01-09 13:48:07 -08:00
Brian Goff
d8736e23f5 Bump crypto package. (#492)
This fixes master build for certain CPU's.
See https://github.com/golang/crypto/commit/ae8bce0
2019-01-08 12:30:18 -08:00
Paulo Pires
323c02d468 env: fix resource reference Optional nil pointer (#491)
Signed-off-by: Paulo Pires <pjpires@gmail.com>
2019-01-08 10:52:56 -08:00
Robbie Zhang
b44d5b9f22 Add the new ACI regions (#487) 2019-01-07 16:22:53 -08:00
Anubhav Mishra
a46e1dd2ce Add HashiCorp Nomad provider (#483)
* provider: adding Nomad provider

* updating CONTRIBUTING.md with Nomad provider

* updated README.md by adding the Nomad provider

* fix typo

* adding nomad/api and nomad/testutil deps

* adding Nomad binary dependency for provider tests

* fixed the nomad binary download command step and added tolerations to the nomad provider.

* adding nomad provider demo gif

* adding my name to authors

* adding two missing go-rootcerts files after dep ensure

* delete pod comment
2019-01-07 11:48:11 -08:00
Brian Goff
5796be449b Adds some package docs (#479)
Was just browing godoc and noticed we are missing some docs that would
be quite useful.
2019-01-07 11:03:35 -08:00
Robbie Zhang
f7afeba12e Remove the Restriction that No NSG should be set on the Subnet (#478) 2018-12-27 16:35:38 -08:00
Yue Zhang
d456ef816f fix: fix dead link (#480)
Signed-off-by: zhangyue <zy675793960@yeah.net>
2018-12-27 10:40:17 -08:00
muya-zj
e5c3d0104c [AlibabaCloud] Change alicloud to alibabacloud (#470) 2018-12-26 06:42:56 -08:00
Brian Goff
3ab101da00 Use timer instead of ticker (#477)
Tickers always tick, so if we tick every 5 seconds and the work that we
perform at each tick takes 5 seconds, we end up just looping with no
sleep period.

Instead this is using a timer to ensure we actually get a full 5 second
sleep between loops.

We should consider an async API instead of polling the provider like
this.
2018-12-21 15:48:47 -08:00
Luc Perkins
b44072588b Add basic website (#437)
* Add Netlify configuration and website Makefile

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Add .editorconfig file for IDE configs

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Add empty content folder to satisfy Hugo requirement

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Add basic Hugo site config

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Add initial layout scaffolding

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Add initial npm assets, yarn.lock, and .gitignore file to ignore node_modules/

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Add initial site implementation

* Revert Hugo version to 0.50

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Change publish directory to website/public

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Add basic site metadata in partial

Signed-off-by: Luc Perkins <lucperkins@gmail.com>

* Widen main logo on mobile

Signed-off-by: Luc Perkins <lucperkins@gmail.com>

* Add favicon link to CSS partial

Signed-off-by: Luc Perkins <lucperkins@gmail.com>

* Synchronize main color with logos

Signed-off-by: Luc Perkins <lucperkins@gmail.com>

* Add basic Providers and How it Works sections to home page

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Combine basics and providers sections into one

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Add favicon link to site config

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Add navbar fade in and out effect

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Add Slack button

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Add GitHub stars/watcher info

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Add documentation layout

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Add debugging and contributing links

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Add docs button in main hero

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Fix footer layout issue

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Change docs header aesthetic

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Change syntax highlighting theme to fruity

Signed-off-by: lucperkins <lucperkins@gmail.com>

* More adjustments to sidebar

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Add TOC panel for docs

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Adjust the padding on section elements

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Remove stickiness on main docs header

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Add basic architecture doc

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Remove 'coming soon' banner

Signed-off-by: lucperkins <lucperkins@gmail.com>

* Add AnchorJS support for docs pages

Signed-off-by: lucperkins <lucperkins@gmail.com>
2018-12-21 13:49:05 -08:00
shidao-ytt
966f7a807b remove cpu mem limits of container (#429) 2018-12-21 13:38:41 -08:00
Brian Goff
0d14914e85 Refactor http server stuff (#466)
* Don't start things in New

* Move http server handling up to daemon.

This removes the burdern of dealing with listeners, http servers, etc in
the core framework.

Instead provide helpers to attach the appropriate routes to the
caller's serve mux.

With this change, the vkubelet package only helps callers setup HTTP
rather than forcing a specific HTTP config on them.
2018-12-21 11:45:07 -08:00
Ria Bhatia
f6bc338033 Maintainers (#474)
* updating provider maintainers and core maintainers

* adding maintainer
2018-12-20 13:55:07 -08:00