Commit Graph

657 Commits

Author SHA1 Message Date
ceshihao
7f244c0dc3 runhack/update-staging-godeps.sh
Kubernetes-commit: 3fde7d6844c540439d30eb356ef0a12af23bd50f
2018-04-25 16:11:21 +00:00
Kubernetes Publisher
9b81532a60 Merge pull request #62412 from bhcleek/go1.10
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

generated code should pass go vet for go1.10

**What this PR does / why we need it**:

Update code generator and the code it generates to pass `go vet`.

go1.10 runs `go vet` whenever `go test` is run. Because of this, generated code for CRDs needs to pass `go vet`.

**Release note**:

```release-note
Code generated for CRDs now passes `go vet`.
```

Kubernetes-commit: 5dde701b876d1d0915314c3ed146e986c4327f7e
2018-04-20 15:20:04 +00:00
Billie Cleek
05144d66df regenerate fakes
Kubernetes-commit: 95ad9009c33a664bfbc3f2a9836148f9efbde851
2018-04-18 16:09:36 -07:00
Kubernetes Publisher
119594ddec sync: update godeps 2018-04-17 15:26:37 +00:00
Matthias Bertschy
28972b75db Update all script to use /usr/bin/env bash in shebang
Kubernetes-commit: 9b15af19b22e91284eeb89827b2091caaec25bf6
2018-04-16 18:31:44 +02:00
Kubernetes Publisher
32ad1389a8 Merge pull request #62505 from mtaufen/show-deprecated-help
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Show help for deprecated Kubelet flags

We recently deprecated a bunch of Kubelet flags, which caused them to disappear from `--help` output. This PR unhides these flags, so that the deprecation notice is clearly visible in `--help`.

Fixes: #62009

```release-note
NONE
```

/cc @eparis

Kubernetes-commit: ee4d90aaa61150139cdcd67a73e22da8cb226dc6
2018-04-14 23:21:57 +00:00
Devdatta Kulkarni
220ca987ad Added documentation of how client-go interfaces with custom controller code
**What this PR does / why we need it**:

The sample-controller makes extensive use of various mechanisms
available in the client-go library. For writing custom controllers/operators
it will be helpful if there is precise description of how the
client-go library works and how/where it interfaces with
custom controller code.

This patch adds documentation that sheds light on how (parts) of the
client-go library work and its interaction-points with
controller code. The documentation and the diagram comes from [1],
(link included here for reference purpose).

[1] https://medium.com/@cloudark/kubernetes-custom-controllers-b6c7d0668fdf

Contributing the diagram and the writeup was recommended by
by @sttts and @nikhita on https://github.com/kubernetes/sample-controller/issues/13

**Release note**:

```release-note
NONE
```

Kubernetes-commit: 3e22383a8a14eb3bd02630f3f11c0ad7a806e027
2018-04-13 14:32:47 -05:00
Michael Taufen
6a2262b4e8 update godeps to use latest pflag
Kubernetes-commit: b02f116172faf26f57be1fa113d3a9da1af6f196
2018-04-12 17:12:43 -07:00
Kubernetes Publisher
8d405dd3e1 Merge pull request #62273 from atlassian/dont-log-when-error-returned
Automatic merge from submit-queue (batch tested with PRs 62273, 62461). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Don't log when error returned

**What this PR does / why we need it**:
Both logging and returning an error is an antipattern. If the caller wants it logged they will log it. And in this case it will be logged twice which is very confusing for debugging.

**Release note**:
```release-note
NONE
```
/kind cleanup
/sig api-machinery

Kubernetes-commit: 0b5fa0b94a2e147ddae2278623c89648c211d229
2018-04-12 15:18:59 +00:00
Mikhail Mazurskiy
9c27a5a1ab Re-generate clientsets
Kubernetes-commit: c3e57fceb3d94ef96066ff744e704e9b7a625e52
2018-04-09 19:12:47 +10:00
Kubernetes Publisher
b05f3be049 sync: update required packages 2018-04-09 03:54:08 +00:00
Kubernetes Publisher
b099eae8cd sync: update godeps 2018-04-09 03:54:08 +00:00
Kubernetes Publisher
8c90968420 sync: update required packages 2018-04-08 23:54:30 +00:00
Kubernetes Publisher
60c19c2a53 sync: update godeps 2018-04-08 23:54:30 +00:00
Kubernetes Publisher
dcdc54df98 sync: update required packages 2018-04-08 19:54:39 +00:00
Kubernetes Publisher
8e0f7d4874 sync: update godeps 2018-04-08 19:54:38 +00:00
Kubernetes Publisher
a679ea1828 sync: update required packages 2018-04-08 15:53:28 +00:00
Kubernetes Publisher
0e1a760a91 sync: update godeps 2018-04-08 15:53:28 +00:00
Kubernetes Publisher
7431c5f474 sync: update required packages 2018-04-08 11:55:38 +00:00
Kubernetes Publisher
f3a6811dd3 sync: update godeps 2018-04-08 11:55:38 +00:00
Kubernetes Publisher
709fd539aa sync: update required packages 2018-04-08 07:54:54 +00:00
Kubernetes Publisher
ea01e096fa sync: update godeps 2018-04-08 07:54:54 +00:00
Kubernetes Publisher
fef47a8a8e sync: update required packages 2018-04-08 03:53:23 +00:00
Kubernetes Publisher
19f6cf7aa7 sync: update godeps 2018-04-08 03:53:22 +00:00
Kubernetes Publisher
8865a08dc7 sync: update required packages 2018-04-07 23:53:27 +00:00
Kubernetes Publisher
739cecdc1b sync: update godeps 2018-04-07 23:53:27 +00:00
Kubernetes Publisher
95cbedd0a1 sync: update required packages 2018-04-07 19:53:50 +00:00
Kubernetes Publisher
db1ea8ef50 sync: update godeps 2018-04-07 19:53:50 +00:00
Kubernetes Publisher
435b20016f sync: update required packages 2018-04-07 15:53:49 +00:00
Kubernetes Publisher
c693b1e50e sync: update godeps 2018-04-07 15:53:49 +00:00
Kubernetes Publisher
de4ea5262a sync: update required packages 2018-04-07 11:53:49 +00:00
Kubernetes Publisher
5cf44091e8 sync: update godeps 2018-04-07 11:53:49 +00:00
Kubernetes Publisher
7d983be3ec sync: update required packages 2018-04-07 07:55:05 +00:00
Kubernetes Publisher
9a9f0c5cb9 sync: update godeps 2018-04-07 07:55:05 +00:00
Kubernetes Publisher
c8fa32cd19 sync: update required packages 2018-04-07 03:54:30 +00:00
Kubernetes Publisher
ec0e6ae009 sync: update godeps 2018-04-07 03:54:30 +00:00
Kubernetes Publisher
e0a1db6d08 sync: update required packages 2018-04-06 23:53:40 +00:00
Kubernetes Publisher
2699b2b3b2 sync: update godeps 2018-04-06 23:53:40 +00:00
Kubernetes Publisher
c0c1344b1f Merge pull request #61400 from natronq/master
Automatic merge from submit-queue (batch tested with PRs 61400, 61048). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

code-gen: allow specifying custom resync periods for certain informer types

**What this PR does / why we need it**:
This PR extends the informer code-generator to allow the consumer to specify a custom resync period for certain informer types and uses the default resync period if none is defined.

**Special notes for your reviewer**:
Example:
```go
cs := clientset.NewForConfigOrDie(config)
resyncConfig := externalversions.ResyncConfiguration{
  &samplev1alpha1.Sample{}: 30 * time.Second,
}
informer := externalversions.NewSharedInformerFactory(cs, 2*time.Minute, externalversions.WithCustomResyncConfig(resyncConfig))
```
**Release note**:

```release-note
NONE
```

Kubernetes-commit: 7daaa826d291c1501a52177c3e14b00c503c8527
2018-04-06 23:53:23 +00:00
Kubernetes Publisher
4a57a6f070 sync: update required packages 2018-04-06 19:52:32 +00:00
Kubernetes Publisher
28bc2cefcd sync: update godeps 2018-04-06 19:52:32 +00:00
Kubernetes Publisher
0edc443454 sync: update required packages 2018-04-06 15:55:16 +00:00
Kubernetes Publisher
86e7dab20d sync: update godeps 2018-04-06 15:55:16 +00:00
Kubernetes Publisher
3709cee765 sync: update required packages 2018-04-06 12:05:26 +00:00
Kubernetes Publisher
d74f225f28 sync: update godeps 2018-04-06 12:05:26 +00:00
Kubernetes Publisher
e933a6fa9c Merge pull request #60021 from nikhita/sample-controller-subresources
Automatic merge from submit-queue (batch tested with PRs 60102, 59970, 60021, 62011, 62080). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

sample-controller: add status subresource support

Builds on top of https://github.com/kubernetes/kubernetes/pull/55168.

**DO NOT MERGE** until https://github.com/kubernetes/kubernetes/pull/55168 is merged. Adding a hold.
/hold

Update: It is now merged! 🎉

This PR:

- Adds an example to show how to use the `/status` subresource with custom resources.
- Generates `UpdateStatus` for the `Foo` resource.
- Updates the comment in the controller to mention that `UpdateStatus` can now be used. Note: this is not enabled by default because subresources require the feature gate to be enabled and are not on by default.
- Updates the README to add feature gate information and examples for `CustomResourceSubresources`.
- Updates the README to remove feature gate information for CRD validation since the current example uses `apps/v1` deployments (and thus requires v1.9 anyway).

**Release note**:

```release-note
NONE
```

/assign sttts munnerz

Kubernetes-commit: 7bde13f191f0791a87fe5e2575feb3d4849de536
2018-04-06 12:05:08 +00:00
Kubernetes Publisher
aadb6d02da Merge pull request #62037 from cblecker/godep-bump
Automatic merge from submit-queue (batch tested with PRs 61959, 62037). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Bump godep version to v80

**What this PR does / why we need it**:
Update the minimum godep, to v80 (supposed to be the final version).

**Release note**:
```release-note
NONE
```

Kubernetes-commit: 22440e15764e2d821166eff5b965786fa928357e
2018-04-06 12:04:50 +00:00
Kubernetes Publisher
96b07c14ac Merge pull request #61800 from rithujohn191/remove-gopass
Automatic merge from submit-queue (batch tested with PRs 61818, 61800). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Replace gopass.GetPasswdMasked() by terminal.ReadPassword()

**What this PR does / why we need it**:
Replace `gopass.GetPasswdMasked()` used for reading passwords from the terminal with [`terminal.ReadPassword()`](https://godoc.org/golang.org/x/crypto/ssh/terminal#ReadPassword). This removes the `gopass` import.

**Special notes for your reviewer**:
Ran the following commands to update `godep` files:
```
./hack/godep-restore.sh -v
./hack/godep-save.sh
./hack/update-staging-godeps.sh
./hack/update-bazel.sh
```

/sig auth
/kind enhancement
/assign @ericchiang

```release-note
NONE
```

Kubernetes-commit: a5133305a9f347c79c20c5785d41cc9400be895e
2018-04-06 12:04:33 +00:00
natronq
c826d9a4ba Run hack/update-codegen.sh
Kubernetes-commit: a923acd0420c26bd9321eae058a7f94226dd6e64
2018-04-05 14:00:02 +02:00
Christoph Blecker
02b86407e5 Update godep in vendor
Kubernetes-commit: 0828b1999663573b17ded671b7eb89e14faeb4a8
2018-04-02 12:57:41 -07:00