Commit Graph

595 Commits

Author SHA1 Message Date
jerryzhuang
0ba0200067 fix several typo
Signed-off-by: zhuangqh <zhuangqhc@gmail.com>
2019-07-17 10:36:17 +08:00
Brian Goff
d3ff785e08 Add godoc to the repo root. (#702) v1.0.0 2019-07-05 22:42:56 +01:00
Brian Goff
8493cbb42a Unexport node update helper functions (#701)
Thinking these maybe should either not be exposed or in a separate
package.
For 1.0 let's unexport them and we may re-introduce later.
2019-07-05 19:24:46 +01:00
Brian Goff
7bd0bd0f0e Merge pull request #699 from virtual-kubelet/pires/cleanup_after_e2e
e2e: cleanup after run
2019-07-05 09:57:45 -07:00
Pires
10126924f9 e2e: cleanup after run
Signed-off-by: Pires <pjpires@gmail.com>
2019-07-04 18:22:52 +01:00
Brian Goff
afaae4454f Update README.md to account for recent changes (#698)
This is preparing for 1.0
2019-07-04 17:06:45 +01:00
Brian Goff
f7fee27790 Move CLI related packages into internal (#697)
We don't want people to import these packages, so move these out into
private packages.
2019-07-04 10:14:38 +01:00
Brian Goff
327c6cf319 skaffold target requires .SECONDEXPANSION (#696)
Otherwise the variable is evaluated before it's even set (assuming it's
not set from the CLI).

skaffold also requires bin/e2e/virtual-kubelet to work on it's own.
2019-07-03 21:00:51 +01:00
Brian Goff
1c4aa5d575 Merge pull request #695 from virtual-kubelet/pires/revisit_e2e
e2e: misc improvements
2019-07-03 11:18:40 -07:00
Pires
ab3086436e e2e: silence kubectl context validation
Signed-off-by: Pires <pjpires@gmail.com>
2019-07-03 14:27:16 +01:00
Pires
ad943ebbd8 e2e: remove unnecessary steps
Signed-off-by: Pires <pjpires@gmail.com>
2019-07-03 14:27:16 +01:00
Pires
3371c727a6 e2e: bump Go to v1.12.6
Signed-off-by: Pires <pjpires@gmail.com>
2019-07-03 14:27:15 +01:00
Pires
1bab3ea80f e2e: bump Minikube to v1.2.0
Signed-off-by: Pires <pjpires@gmail.com>
2019-07-03 14:27:15 +01:00
Pires
3a88dfd413 e2e: use Kubernetes v1.13.7 in CI
I failed to do this as part of #683.

Signed-off-by: Pires <pjpires@gmail.com>
2019-07-03 14:27:14 +01:00
Pires
5854904f0d skaffold: bump to 0.33.0 and API v1beta12
Signed-off-by: Pires <pjpires@gmail.com>
2019-07-03 14:27:13 +01:00
Brian Goff
905709c646 Don't ignore all GetPod errors on deletePod (#691)
A legit error could be passed here and we don't want to ignore it.
2019-07-03 09:31:44 +01:00
Brian Goff
3840bc2666 Remove vendor/ (#688)
Vendoring seems to be problematic with go modules.
In addition to causing issues with transitive dependencies and being
problematic when trying to pull in the node-cli code, it also seems to
be pulling different versions than what is computed in go.mod.
This can be seen by comparing commits from the computed version in
go.mod with very small diffs (like a single Godep change in k8s) but massive
vendoring changes.

Basically I have very little confidence that this is even working.
This should be better in go1.13, but this is not released yet.
v0.11.1
2019-07-02 18:04:40 +01:00
Brian Goff
b915cde1ae Fix error handling for delete pod (#685)
* Fix error handling for delete pod

- Error handling was looking for a k8s error from the provider, but
  providers should be using errdefs.
- Error handling was returning early if pod was not found and deleting
  from k8s in all other cases.

* Don't run unit tests twice
v0.11.0
2019-06-29 08:07:24 +01:00
Brian Goff
07379f7b1f Merge pull request #683 from virtual-kubelet/pires/k8s_version_bump
version: ensure Kubernetes v1.13.7
2019-06-27 08:41:52 -07:00
Brian Goff
7d84d93199 Merge pull request #682 from grahamhayes/fix-readme-links
Update README links to providers READMEs
2019-06-27 06:42:16 -07:00
Pires
4766e97d05 version: ensure Kubernetes v1.13.7
Signed-off-by: Pires <pjpires@gmail.com>
2019-06-27 12:19:43 +01:00
Graham Hayes
fd4636e3db Update README links to providers READMEs
* Pointed links to the README.md file in the base of each provider repo
* Removed some provider specific content from the main repos README.

Signed-off-by: Graham Hayes <gr@ham.ie>
2019-06-27 11:55:30 +01:00
Brian Goff
713fe23d03 Add provider method to pass node configuration (#680)
This eliminates all the one-off calls to for specific things like
`Capacity` and other things.
Instead we configure defaults in the CLI and then pass the full node
object to the provider to change as needed.

This makes sure the provider can change whatever they need to without
having to add tons of methods to the provider interface.
2019-06-26 17:51:05 +01:00
Brian Goff
8d881dd089 Merge pull request #679 from GromNaN/fix-links
Fix links to provider docs on the website
2019-06-25 10:56:39 -07:00
Jérôme TAMARELLE
419494b4a0 Fix links to provider docs on the website 2019-06-25 17:41:30 +02:00
Brian Goff
f6be3ce713 Allow setting tracer in the context. (#672)
Allows people to avoid setting a global if they don't want to.
2019-06-20 07:33:16 +01:00
Brian Goff
b9920e7cc4 Merge pull request #642 from grahamhayes/cluster-dns-support
Allow virtual-kubelet to use cluster domain
2019-06-19 11:38:00 -07:00
Graham Hayes
6b6798865e Allow virtual-kubelet to use cluster domain
This allows `--cluster-domain` to be passed to virtual kubelet like a
traditional kublet, and use this to generate search-domains for
`/etc/resolv.conf`

* Set default `cluster-domain` to `cluster-local` to match current kubelet

Related: #641

Signed-off-by: Graham Hayes <gr@ham.ie>
2019-06-19 17:28:18 +01:00
Brian Goff
77069e63e5 Update to use go modules (#671)
This includes updates to CI config, vendor files, etc.
I've hard-coded the k8s depedency at 1.13.4 to keep it inline with what
we currently have and to make sure a another run of `go mod tidy`
doesn't accidentally update it to an unexpected version.

Thanks to hectorj2f for carrying this along.
2019-06-19 16:17:22 +01:00
Brian Goff
f6f6c46b53 Merge pull request #485 from rbitia/maintainers
updating maintainers
2019-06-18 15:35:17 -07:00
Brian Goff
a54c670dd2 Merge branch 'master' into maintainers 2019-06-18 15:26:21 -07:00
Brian Goff
a00c2f4b8b Remove providers (#670)
* Move all but mock provider out of tree

These have all been moved to repos under github.com/virtual-kubelet.

* Introduce a providers.Store

This essentially moves the the old register/ handling into a first class
object that can be controlled from the CLI rather than through build
tags deep in the code.

This actually would have made it a bit easier to build the provider
repos and makes the cmd/ code more re-usable.
2019-06-18 11:11:11 +01:00
Brian Goff
9bcc381ca3 Use object informers instead of listers (#669)
We'll need these informers for
https://github.com/virtual-kubelet/virtual-kubelet/pull/586

Changing this now means we don't need to make API changes later.
2019-06-17 18:00:02 +01:00
Brian Goff
c6fdae931a Remove version package (#667)
This moves version declaration into cmd/virtual-kubelet/main.go
From here values are passed down into the things that need it.
2019-06-14 20:19:39 +01:00
Brian Goff
cacce3b288 Merge pull request #666 from cpuguy83/remove_azure_provider
Remove azure provider
2019-06-14 10:17:40 -07:00
Brian Goff
18e07b67ce Remove azure provider
This was moved over to github.com/virtual-kubelet/azure-aci
2019-06-13 12:55:18 -07:00
Brian Goff
bd742d5d99 Add license details on file heads. (#665)
Realized as I was starting to copy some stuff to other repos that we
should go ahead and add this.
v0.10.0
2019-06-13 10:13:14 -07:00
Brian Goff
3346e9e28c Remove resourcemanager from conroller public API (#664)
We still use it internally, but this does not need to be part of the
public API. Instead just have callers pass us the relevent listers and
we create our own resource manager.
2019-06-12 13:42:03 -07:00
Brian Goff
665b23d273 Fix typo (#663)
I blame the MBP keyboard...
2019-06-12 13:23:31 -07:00
Brian Goff
6cae24e03a Only run e2e after validate/test is successful (#662) 2019-06-12 21:00:41 +01:00
Brian Goff
c55bc21873 Increase timeouts on test watch (#661)
This test is flakey on CI, likely because the timings are too tight, so
give a bit more time for things to complete.
2019-06-12 20:55:33 +01:00
Sasha Yakovtseva
c06a778abc Add idea files in gitignore (#660) 2019-06-12 13:39:04 +01:00
Brian Goff
a54753cb82 Move around some packages (#658)
* Move tracing exporter registration

This doesn't belong in the library and should be configured by the
consumer of the opencensus package.

* Rename `vkublet` package to `node`

`vkubelet` does not convey any information to the consumers of the
package.
Really it would be nice to move this package to the root of the repo,
but then you wind up with... interesting... import semantics due to the
repo name... and after thinking about it some, a subpackage is really
not so bad as long as it has a name that convey's some information.

`node` was chosen since this package deals with all the semantics of
operating a node in Kubernetes.
2019-06-12 13:11:49 +01:00
Brian Goff
65b32a0fef Merge pull request #659 from cpuguy83/move_e2e_to_internal
Move test/* to internal/test/*
2019-06-10 13:48:29 -07:00
Brian Goff
0a360f54c0 Move test/* to internal/test/*
This ensures this code cannot be imported by other repositories as this
is only intended for internal testing packages.
2019-06-10 12:07:47 -07:00
Brian Goff
c71ee814fe Merge pull request #654 from cpuguy83/node_defaults
Update node defaults
2019-06-10 11:32:14 -07:00
Brian Goff
b1236477f5 Update node defaults
Do not enable leases by default in the node constructor.
Simplify node constructor to not require a lease client when leases may
not even be enabled.

Updates node status update interval to the kubelet default of 10s (was
5s in vk).
2019-06-10 10:31:37 -07:00
Brian Goff
67fddc4142 Merge pull request #627 from sargun/make-mock-provider-async2
Convert mock provider to async provider
2019-06-05 15:06:35 -07:00
Brian Goff
196e1eda27 Merge branch 'master' into make-mock-provider-async2 2019-06-05 15:01:13 -07:00
Brian Goff
eeab8f9b1b Merge pull request #628 from sargun/use-running-pods
Use Running Pods Endpoint for testing
2019-06-05 14:59:52 -07:00