Commit Graph

469 Commits

Author SHA1 Message Date
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
Paulo Pires
5a0093ce31 vkubelet: set kubelet version to build version (#446)
* deps: bump to Kubernetes 1.13.1

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* version: new VK version

Signed-off-by: Paulo Pires <pjpires@gmail.com>
2018-12-18 17:08:23 -08:00
Paulo Pires
7265d7ee76 Merge pull request #468 from virtual-kubelet/pires/rework_pod_env
Revisit containers env/envFrom processing
2018-12-19 00:13:13 +00:00
Paulo Pires
b71e0c2260 Merge branch 'master' into pires/rework_pod_env 2018-12-15 11:09:54 +00:00
Paulo Pires
4c80760079 tests: add "test/util" subpackage
Signed-off-by: Paulo Pires <pjpires@gmail.com>
2018-12-15 11:01:42 +00:00
Paulo Pires
8bcbbf58cd env: rename methods and improve readability
Signed-off-by: Paulo Pires <pjpires@gmail.com>
2018-12-15 11:01:41 +00:00
Paulo Pires
6f04b3102c deps: update dependencies
Signed-off-by: Paulo Pires <pjpires@gmail.com>
2018-12-15 11:01:41 +00:00
Paulo Pires
f839db4692 tests: envvars processing
Signed-off-by: Paulo Pires <pjpires@gmail.com>
2018-12-15 11:01:40 +00:00
Paulo Pires
103a19fe9d env: observe envFrom
Also observe initContainers env and envFrom.

Fixes #460
Fixes #461

Signed-off-by: Paulo Pires <pjpires@gmail.com>
2018-12-15 11:01:40 +00:00
Paulo Pires
c108962821 tests: observe pod events
Signed-off-by: Paulo Pires <pjpires@gmail.com>
2018-12-15 11:01:39 +00:00
Paulo Pires
6a7fa9f6f1 tests: fix typo
Signed-off-by: Paulo Pires <pjpires@gmail.com>
2018-12-15 11:01:38 +00:00
Paulo Pires
62b46d971c env: emit events for missing envvars
Fixes #465

Signed-off-by: Paulo Pires <pjpires@gmail.com>
2018-12-15 11:01:36 +00:00
Ria Bhatia
a4c73dd03a adding virtual node docs (#454) 2018-12-14 13:40:05 -08:00
Paulo Pires
e61638f148 Merge pull request #452 from Pothulapati/444
env: fix pod envFrom processing
2018-12-12 13:30:43 +00:00
Tarun Pothulapati
fbae26fc11 env: fix pod envFrom processing 2018-12-12 13:18:39 +00:00
Paulo Pires
31768c5b5c Merge pull request #462 from cpuguy83/stop_ticker
Ensure reconcile ticker stops on shutdown
2018-12-12 12:55:19 +00:00
Paulo Pires
d73e563b97 Merge branch 'master' into stop_ticker 2018-12-12 12:36:20 +00:00
Paulo Pires
a98b909223 Merge pull request #463 from cpuguy83/remove_pod_notification_ch
Remove old pod notification stuff
2018-12-12 12:36:05 +00:00
Paulo Pires
a39e3a97ec Merge branch 'master' into remove_pod_notification_ch 2018-12-12 12:25:04 +00:00
Paulo Pires
4852725ef3 Merge pull request #464 from bmcstdio/bmcstdio/fix-get-pod-status
mock: do not panic on unknown pods
2018-12-12 12:24:28 +00:00
Bruno Miguel Custodio
34b356ee5f mock: do not panic on unknown pods
Signed-off-by: Bruno Miguel Custodio <brunomcustodio@gmail.com>
2018-12-12 12:07:45 +00:00
Brian Goff
616d12ed76 Remove old pod notification stuff
These are no longer used since we started using the k8s client's queue.
2018-12-10 13:40:21 -08:00
Brian Goff
e6ca19d059 Ensure reconcile ticker stops on shutdown
Otherwise this ticker could run forever (or until the process exits).
2018-12-10 10:33:36 -08:00
Jeremy Rickard
ee2735541a Merge pull request #431 from virtual-kubelet/pires/e2e_vk_auto_deploy
test: deploy vk when running e2e
2018-12-05 13:06:32 -07:00
Paulo Pires
16ef8f9897 Merge branch 'master' into pires/e2e_vk_auto_deploy 2018-12-05 11:32:18 +00:00
Brian Goff
ab7c55cb5f Make pod status updates concurrent. (#433)
This uses the same number of workers as the pod sync workers.

We may want to start a worker queue here instead, but I think for now
this is ok, particularly because we are limiting the number of
goroutines being spun up at once.
2018-12-04 14:03:45 -08:00
Paulo Pires
dc51a1d9e4 Merge branch 'master' into pires/e2e_vk_auto_deploy 2018-12-04 05:44:09 +00:00
Brian Goff
82ba002a9f Revert "Use 1 worker by default" (#432)
This reverts commit f10596562d.

Makes our default worker count back to 10 now that concurrency is in
good shape.
v0.7.4
2018-12-03 12:49:03 -08:00
Paulo Pires
5512db892a test: deploy vk when running e2e
Signed-off-by: Paulo Pires <pjpires@gmail.com>
2018-12-01 19:24:55 +00:00
Paulo Pires
28a757f4da use shared informers and workqueue (#425)
* vendor: add vendored code

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* controller: use shared informers and a work queue

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* errors: use cpuguy83/strongerrors

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* aci: fix test that uses resource manager

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* readme: clarify skaffold run before e2e

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* cmd: use root context everywhere

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* sync: refactor pod lifecycle management

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* e2e: fix race in test when observing deletions

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* e2e: test pod forced deletion

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* cmd: fix root context potential leak

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* sync: rename metaKey

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* sync: remove calls to HandleError

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* Revert "errors: use cpuguy83/strongerrors"

This reverts commit f031fc6d.

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* manager: remove redundant lister constraint

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* sync: rename the pod event recorder

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* sync: amend misleading comment

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* mock: add tracing

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* sync: add tracing

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* test: observe timeouts

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* trace: remove unnecessary comments

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* sync: limit concurrency in deleteDanglingPods

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* sync: never store context, always pass in calls

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* sync: remove HandleCrash and just panic

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* sync: don't sync succeeded pods

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* sync: ensure pod deletion from kubernetes

Signed-off-by: Paulo Pires <pjpires@gmail.com>
v0.7.3
2018-11-30 15:53:58 -08:00
Paulo Pires
0e9cfca585 ci: move go vet to validate check (#430)
* ci: move go vet to validate check

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* cri: don't build when not on linux

Signed-off-by: Paulo Pires <pjpires@gmail.com>
2018-11-30 13:58:55 -08:00
Robbie Zhang
ea40a180f4 Install bash in the Dockerfile (#426) 2018-11-28 16:22:09 -08:00
Paulo Pires
d252a9a1d7 Merge pull request #424 from virtual-kubelet/pires/fix_pod_deletion
Fix pod deletion
2018-11-28 22:43:21 +00:00
Paulo Pires
fe7b363f10 rbac: improve and add missing verb
Signed-off-by: Paulo Pires <pjpires@gmail.com>
2018-11-28 20:31:56 +00:00
Paulo Pires
0f8ef994a3 sync: don't swallow delete errors
Signed-off-by: Paulo Pires <pjpires@gmail.com>
2018-11-28 20:31:55 +00:00
Robbie Zhang
338a7c2213 [ACI] Fallback to parse authConfig.Auth when Username field is not specified (#421)
* Fallback to parse authConfig.Auth when Username field is not specified
2018-11-28 11:33:07 -08:00
Ria Bhatia
8d264db90d updated meeting times (#420) 2018-11-28 11:12:12 -08:00
Robbie Zhang
30f9c8cf23 Add MasterURI setting in the README.md
Add MasterURI setting in the README.md
2018-11-28 10:44:06 -08:00
Paulo Pires
579823e6a5 tests: introduce e2e suite (#422)
* mock: implement GetStatsSummary

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* make: use skaffold to deploy vk

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* test: add an e2e test suite

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* test: add vendored code

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* docs: update README.md

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* ci: run e2e on circleci

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* make: improve the skaffold target

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* e2e: fix defer pod deletion

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* e2e: improve instructions

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* makefile: default shell is bash

Signed-off-by: Paulo Pires <pjpires@gmail.com>
2018-11-28 09:01:36 -08:00
shidao-ytt
688c10fa8b [AliCloud] Add cluster name and bug fix (#412)
* [AliCloud] add tag ClusterName for different k8s cluster

* [AliCloud] BugFix: vk get wrong pod ip

* update serverless kubernetes help doc link
2018-11-26 11:08:37 -08:00
Robbie Zhang
f07daf494b BugFix: secret data missing tail newline (#406) 2018-11-26 11:01:00 -08:00
Brian Goff
662afccd0e Merge pull request #416 from cpuguy83/update_contributing
Update docs for how to add a provider
2018-11-26 10:35:30 -08:00
Brian Goff
4cb94dd19b Update docs for how to add a provider 2018-11-21 10:04:36 -08:00
Brian Goff
023fd1214a Merge pull request #410 from tariq1890/add_dep_check
Replace dep validation with dep check and resyncing Gopkg.lock
2018-11-15 12:37:25 -08:00
tariqibrahim
bf61f7f2e0 Replace dep validation with dep check and resyncing Gopkg.lock 2018-11-14 14:12:29 -08:00
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