Merge pull request #59104 from nikhita/sample-controller-apps-v1

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>.

sample-controller: document minimum kubernetes version

In https://github.com/kubernetes/kubernetes/pull/58446, the sample-controller started using `apps/v1` deployments since they became GA in 1.9.

This means that sample-controller does not support versions below 1.9.

Fixes kubernetes/sample-controller#9

**Release note**:

```release-note
NONE
```

/assign sttts munnerz

Kubernetes-commit: 971960784927755cbc9423d0ecc19e573de9f391
This commit is contained in:
Kubernetes Publisher 2018-01-31 02:39:25 -08:00
commit 1c605930c8
13 changed files with 1115 additions and 908 deletions

374
Godeps/Godeps.json generated
View File

@ -152,751 +152,751 @@
},
{
"ImportPath": "k8s.io/api/admissionregistration/v1alpha1",
"Rev": "fbe336854453ac8e27bffe14e1964555245cbd05"
"Rev": "dc0dd48d5a5cae9f8736bb0643cfe6052e450f1b"
},
{
"ImportPath": "k8s.io/api/admissionregistration/v1beta1",
"Rev": "fbe336854453ac8e27bffe14e1964555245cbd05"
"Rev": "dc0dd48d5a5cae9f8736bb0643cfe6052e450f1b"
},
{
"ImportPath": "k8s.io/api/apps/v1",
"Rev": "fbe336854453ac8e27bffe14e1964555245cbd05"
"Rev": "dc0dd48d5a5cae9f8736bb0643cfe6052e450f1b"
},
{
"ImportPath": "k8s.io/api/apps/v1beta1",
"Rev": "fbe336854453ac8e27bffe14e1964555245cbd05"
"Rev": "dc0dd48d5a5cae9f8736bb0643cfe6052e450f1b"
},
{
"ImportPath": "k8s.io/api/apps/v1beta2",
"Rev": "fbe336854453ac8e27bffe14e1964555245cbd05"
"Rev": "dc0dd48d5a5cae9f8736bb0643cfe6052e450f1b"
},
{
"ImportPath": "k8s.io/api/authentication/v1",
"Rev": "fbe336854453ac8e27bffe14e1964555245cbd05"
"Rev": "dc0dd48d5a5cae9f8736bb0643cfe6052e450f1b"
},
{
"ImportPath": "k8s.io/api/authentication/v1beta1",
"Rev": "fbe336854453ac8e27bffe14e1964555245cbd05"
"Rev": "dc0dd48d5a5cae9f8736bb0643cfe6052e450f1b"
},
{
"ImportPath": "k8s.io/api/authorization/v1",
"Rev": "fbe336854453ac8e27bffe14e1964555245cbd05"
"Rev": "dc0dd48d5a5cae9f8736bb0643cfe6052e450f1b"
},
{
"ImportPath": "k8s.io/api/authorization/v1beta1",
"Rev": "fbe336854453ac8e27bffe14e1964555245cbd05"
"Rev": "dc0dd48d5a5cae9f8736bb0643cfe6052e450f1b"
},
{
"ImportPath": "k8s.io/api/autoscaling/v1",
"Rev": "fbe336854453ac8e27bffe14e1964555245cbd05"
"Rev": "dc0dd48d5a5cae9f8736bb0643cfe6052e450f1b"
},
{
"ImportPath": "k8s.io/api/autoscaling/v2beta1",
"Rev": "fbe336854453ac8e27bffe14e1964555245cbd05"
"Rev": "dc0dd48d5a5cae9f8736bb0643cfe6052e450f1b"
},
{
"ImportPath": "k8s.io/api/batch/v1",
"Rev": "fbe336854453ac8e27bffe14e1964555245cbd05"
"Rev": "dc0dd48d5a5cae9f8736bb0643cfe6052e450f1b"
},
{
"ImportPath": "k8s.io/api/batch/v1beta1",
"Rev": "fbe336854453ac8e27bffe14e1964555245cbd05"
"Rev": "dc0dd48d5a5cae9f8736bb0643cfe6052e450f1b"
},
{
"ImportPath": "k8s.io/api/batch/v2alpha1",
"Rev": "fbe336854453ac8e27bffe14e1964555245cbd05"
"Rev": "dc0dd48d5a5cae9f8736bb0643cfe6052e450f1b"
},
{
"ImportPath": "k8s.io/api/certificates/v1beta1",
"Rev": "fbe336854453ac8e27bffe14e1964555245cbd05"
"Rev": "dc0dd48d5a5cae9f8736bb0643cfe6052e450f1b"
},
{
"ImportPath": "k8s.io/api/core/v1",
"Rev": "fbe336854453ac8e27bffe14e1964555245cbd05"
"Rev": "dc0dd48d5a5cae9f8736bb0643cfe6052e450f1b"
},
{
"ImportPath": "k8s.io/api/events/v1beta1",
"Rev": "fbe336854453ac8e27bffe14e1964555245cbd05"
"Rev": "dc0dd48d5a5cae9f8736bb0643cfe6052e450f1b"
},
{
"ImportPath": "k8s.io/api/extensions/v1beta1",
"Rev": "fbe336854453ac8e27bffe14e1964555245cbd05"
"Rev": "dc0dd48d5a5cae9f8736bb0643cfe6052e450f1b"
},
{
"ImportPath": "k8s.io/api/networking/v1",
"Rev": "fbe336854453ac8e27bffe14e1964555245cbd05"
"Rev": "dc0dd48d5a5cae9f8736bb0643cfe6052e450f1b"
},
{
"ImportPath": "k8s.io/api/policy/v1beta1",
"Rev": "fbe336854453ac8e27bffe14e1964555245cbd05"
"Rev": "dc0dd48d5a5cae9f8736bb0643cfe6052e450f1b"
},
{
"ImportPath": "k8s.io/api/rbac/v1",
"Rev": "fbe336854453ac8e27bffe14e1964555245cbd05"
"Rev": "dc0dd48d5a5cae9f8736bb0643cfe6052e450f1b"
},
{
"ImportPath": "k8s.io/api/rbac/v1alpha1",
"Rev": "fbe336854453ac8e27bffe14e1964555245cbd05"
"Rev": "dc0dd48d5a5cae9f8736bb0643cfe6052e450f1b"
},
{
"ImportPath": "k8s.io/api/rbac/v1beta1",
"Rev": "fbe336854453ac8e27bffe14e1964555245cbd05"
"Rev": "dc0dd48d5a5cae9f8736bb0643cfe6052e450f1b"
},
{
"ImportPath": "k8s.io/api/scheduling/v1alpha1",
"Rev": "fbe336854453ac8e27bffe14e1964555245cbd05"
"Rev": "dc0dd48d5a5cae9f8736bb0643cfe6052e450f1b"
},
{
"ImportPath": "k8s.io/api/settings/v1alpha1",
"Rev": "fbe336854453ac8e27bffe14e1964555245cbd05"
"Rev": "dc0dd48d5a5cae9f8736bb0643cfe6052e450f1b"
},
{
"ImportPath": "k8s.io/api/storage/v1",
"Rev": "fbe336854453ac8e27bffe14e1964555245cbd05"
"Rev": "dc0dd48d5a5cae9f8736bb0643cfe6052e450f1b"
},
{
"ImportPath": "k8s.io/api/storage/v1alpha1",
"Rev": "fbe336854453ac8e27bffe14e1964555245cbd05"
"Rev": "dc0dd48d5a5cae9f8736bb0643cfe6052e450f1b"
},
{
"ImportPath": "k8s.io/api/storage/v1beta1",
"Rev": "fbe336854453ac8e27bffe14e1964555245cbd05"
"Rev": "dc0dd48d5a5cae9f8736bb0643cfe6052e450f1b"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/errors",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/meta",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/resource",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/internalversion",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1alpha1",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/conversion",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/conversion/queryparams",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/fields",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/labels",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/schema",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/json",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/protobuf",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/recognizer",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/streaming",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/versioning",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/selection",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/types",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/cache",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/clock",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/diff",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/errors",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/framer",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/intstr",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/json",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/mergepatch",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/net",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/runtime",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/sets",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/strategicpatch",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/validation",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/validation/field",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/wait",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/yaml",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/version",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/watch",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/json",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/reflect",
"Rev": "2f1e02d3e57b8fb5206c5326bcb65217edc63a8e"
"Rev": "150d32b09b5966b39cb02d7945f0d1bc7b9f1a19"
},
{
"ImportPath": "k8s.io/client-go/discovery",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/discovery/fake",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/admissionregistration",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/admissionregistration/v1alpha1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/admissionregistration/v1beta1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/apps",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/apps/v1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/apps/v1beta1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/apps/v1beta2",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/autoscaling",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/autoscaling/v1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/autoscaling/v2beta1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/batch",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/batch/v1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/batch/v1beta1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/batch/v2alpha1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/certificates",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/certificates/v1beta1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/core",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/core/v1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/events",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/events/v1beta1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/extensions",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/extensions/v1beta1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/internalinterfaces",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/networking",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/networking/v1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/policy",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/policy/v1beta1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/rbac",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/rbac/v1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/rbac/v1alpha1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/rbac/v1beta1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/scheduling",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/scheduling/v1alpha1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/settings",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/settings/v1alpha1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/storage",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/storage/v1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/storage/v1alpha1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/informers/storage/v1beta1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/kubernetes",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/scheme",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/admissionregistration/v1alpha1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/admissionregistration/v1beta1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/apps/v1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/apps/v1beta1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/apps/v1beta2",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/authentication/v1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/authentication/v1beta1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/authorization/v1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/authorization/v1beta1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/autoscaling/v1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/autoscaling/v2beta1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/batch/v1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/batch/v1beta1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/batch/v2alpha1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/certificates/v1beta1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/core/v1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/events/v1beta1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/extensions/v1beta1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/networking/v1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/policy/v1beta1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/rbac/v1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/rbac/v1alpha1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/rbac/v1beta1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/scheduling/v1alpha1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/settings/v1alpha1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/storage/v1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/storage/v1alpha1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/storage/v1beta1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/listers/admissionregistration/v1alpha1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/listers/admissionregistration/v1beta1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/listers/apps/v1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/listers/apps/v1beta1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/listers/apps/v1beta2",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/listers/autoscaling/v1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/listers/autoscaling/v2beta1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/listers/batch/v1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/listers/batch/v1beta1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/listers/batch/v2alpha1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/listers/certificates/v1beta1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/listers/core/v1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/listers/events/v1beta1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/listers/extensions/v1beta1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/listers/networking/v1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/listers/policy/v1beta1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/listers/rbac/v1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/listers/rbac/v1alpha1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/listers/rbac/v1beta1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/listers/scheduling/v1alpha1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/listers/settings/v1alpha1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/listers/storage/v1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/listers/storage/v1alpha1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/listers/storage/v1beta1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/pkg/version",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/rest",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/rest/watch",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/testing",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/tools/auth",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/tools/cache",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/tools/clientcmd",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/tools/clientcmd/api",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/tools/clientcmd/api/latest",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/tools/clientcmd/api/v1",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/tools/metrics",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/tools/pager",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/tools/record",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/tools/reference",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/transport",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/util/buffer",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/util/cert",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/util/flowcontrol",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/util/homedir",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/util/integer",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/util/retry",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/client-go/util/workqueue",
"Rev": "1957ffeb3d06ae9d025d90c0c9948b314680818a"
"Rev": "9f7db9794b9bd0183e59f73486b930e3733ff4c0"
},
{
"ImportPath": "k8s.io/kube-openapi/pkg/util/proto",

View File

@ -29,6 +29,8 @@ This is an example of how to build a kube-like controller with a single type.
## Running
**Prerequisite**: Since the sample-controller uses `apps/v1` deployments, the Kubernetes cluster version should be greater than 1.9.
```sh
# assumes you have a working kubeconfig, not required if operating in-cluster
$ go run *.go -kubeconfig=$HOME/.kube/config

View File

@ -165,8 +165,8 @@ message Webhook {
// NamespaceSelector decides whether to run the webhook on an object based
// on whether the namespace for that object matches the selector. If the
// object itself is a namespace, the matching is performed on
// object.metadata.labels. If the object is other cluster scoped resource,
// it is not subjected to the webhook.
// object.metadata.labels. If the object is another cluster scoped resource,
// it never skips the webhook.
//
// For example, to run the webhook on any objects whose namespace is not
// associated with "runlevel" of "0" or "1"; you will set the selector as

View File

@ -54,11 +54,9 @@ type Rule struct {
type FailurePolicyType string
const (
// Ignore means the initializer is removed from the initializers list of an
// object if the initializer is timed out.
// Ignore means that an error calling the webhook is ignored.
Ignore FailurePolicyType = "Ignore"
// For 1.7, only "Ignore" is allowed. "Fail" will be allowed when the
// extensible admission feature is beta.
// Fail means that an error calling the webhook causes the admission to fail.
Fail FailurePolicyType = "Fail"
)
@ -147,8 +145,8 @@ type Webhook struct {
// NamespaceSelector decides whether to run the webhook on an object based
// on whether the namespace for that object matches the selector. If the
// object itself is a namespace, the matching is performed on
// object.metadata.labels. If the object is other cluster scoped resource,
// it is not subjected to the webhook.
// object.metadata.labels. If the object is another cluster scoped resource,
// it never skips the webhook.
//
// For example, to run the webhook on any objects whose namespace is not
// associated with "runlevel" of "0" or "1"; you will set the selector as

View File

@ -104,7 +104,7 @@ var map_Webhook = map[string]string{
"clientConfig": "ClientConfig defines how to communicate with the hook. Required",
"rules": "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule.",
"failurePolicy": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore.",
"namespaceSelector": "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is other cluster scoped resource, it is not subjected to the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything.",
"namespaceSelector": "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything.",
}
func (Webhook) SwaggerDoc() map[string]string {

File diff suppressed because it is too large Load Diff

View File

@ -357,8 +357,21 @@ message ConfigMap {
// Data contains the configuration data.
// Each key must consist of alphanumeric characters, '-', '_' or '.'.
// Values with non-UTF-8 byte sequences must use the BinaryData field.
// The keys stored in Data must not overlap with the keys in
// the BinaryData field, this is enforced during validation process.
// +optional
map<string, string> data = 2;
// BinaryData contains the binary data.
// Each key must consist of alphanumeric characters, '-', '_' or '.'.
// BinaryData can contain byte sequences that are not in the UTF-8 range.
// The keys stored in BinaryData must not overlap with the ones in
// the Data field, this is enforced during validation process.
// Using this field will require 1.10+ apiserver and
// kubelet.
// +optional
map<string, bytes> binaryData = 3;
}
// ConfigMapEnvSource selects a ConfigMap to populate the environment

13
vendor/k8s.io/api/core/v1/types.go generated vendored
View File

@ -4940,8 +4940,21 @@ type ConfigMap struct {
// Data contains the configuration data.
// Each key must consist of alphanumeric characters, '-', '_' or '.'.
// Values with non-UTF-8 byte sequences must use the BinaryData field.
// The keys stored in Data must not overlap with the keys in
// the BinaryData field, this is enforced during validation process.
// +optional
Data map[string]string `json:"data,omitempty" protobuf:"bytes,2,rep,name=data"`
// BinaryData contains the binary data.
// Each key must consist of alphanumeric characters, '-', '_' or '.'.
// BinaryData can contain byte sequences that are not in the UTF-8 range.
// The keys stored in BinaryData must not overlap with the ones in
// the Data field, this is enforced during validation process.
// Using this field will require 1.10+ apiserver and
// kubelet.
// +optional
BinaryData map[string][]byte `json:"binaryData,omitempty" protobuf:"bytes,3,rep,name=binaryData"`
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

View File

@ -219,9 +219,10 @@ func (ComponentStatusList) SwaggerDoc() map[string]string {
}
var map_ConfigMap = map[string]string{
"": "ConfigMap holds configuration data for pods to consume.",
"metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata",
"data": "Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'.",
"": "ConfigMap holds configuration data for pods to consume.",
"metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata",
"data": "Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process.",
"binaryData": "BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.",
}
func (ConfigMap) SwaggerDoc() map[string]string {

View File

@ -483,6 +483,18 @@ func (in *ConfigMap) DeepCopyInto(out *ConfigMap) {
(*out)[key] = val
}
}
if in.BinaryData != nil {
in, out := &in.BinaryData, &out.BinaryData
*out = make(map[string][]byte, len(*in))
for key, val := range *in {
if val == nil {
(*out)[key] = nil
} else {
(*out)[key] = make([]byte, len(val))
copy((*out)[key], val)
}
}
}
return
}

View File

@ -366,6 +366,9 @@ func NewGenericServerResponse(code int, verb string, qualifiedResource schema.Gr
case http.StatusUnprocessableEntity:
reason = metav1.StatusReasonInvalid
message = "the server rejected our request due to an error in our request"
case http.StatusServiceUnavailable:
reason = metav1.StatusReasonServiceUnavailable
message = "the server is currently unable to handle the request"
case http.StatusGatewayTimeout:
reason = metav1.StatusReasonTimeout
message = "the server was unable to return a response in the time allotted, but may still be processing the request"

View File

@ -126,8 +126,8 @@ func (d *YAMLDecoder) Read(data []byte) (n int, err error) {
}
// caller will need to reread
copy(data, d.remaining[:left])
d.remaining = d.remaining[left:]
copy(data, d.remaining[:len(data)])
d.remaining = d.remaining[len(data):]
return len(data), io.ErrShortBuffer
}

View File

@ -54,9 +54,6 @@ type Config struct {
Host string
// APIPath is a sub-path that points to an API root.
APIPath string
// Prefix is the sub path of the server. If not specified, the client will set
// a default value. Use "/" to indicate the server root should be used
Prefix string
// ContentConfig contains settings that affect how objects are transformed when
// sent to the server.
@ -401,7 +398,6 @@ func AnonymousClientConfig(config *Config) *Config {
return &Config{
Host: config.Host,
APIPath: config.APIPath,
Prefix: config.Prefix,
ContentConfig: config.ContentConfig,
TLSClientConfig: TLSClientConfig{
Insecure: config.Insecure,
@ -425,7 +421,6 @@ func CopyConfig(config *Config) *Config {
return &Config{
Host: config.Host,
APIPath: config.APIPath,
Prefix: config.Prefix,
ContentConfig: config.ContentConfig,
Username: config.Username,
Password: config.Password,