- 10 Dec, 2016 20 commits
-
-
Clayton Coleman authored
-
Clayton Coleman authored
-
Clayton Coleman authored
Avoid directly accessing an unstructured type if it is not required.
-
Clayton Coleman authored
OwnerReference is common.
-
Clayton Coleman authored
It is a versioned type.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue fix duplicate validation/field/errors **Release note**: ``` release-note release-note-none ``` Related PR: https://github.com/kubernetes/kubernetes/pull/30313 PR #30313 fixed duplicate errors for invalid aggregate errors in https://github.com/kubernetes/kubernetes/blob/master/pkg/kubectl/cmd/util/helpers.go However, duplicate aggregate errors that went through https://github.com/kubernetes/kubernetes/blob/master/pkg/util/validation/field/errors.go were not affected by that patch. This patch adds duplicate aggregate error checking to `pkg/util/validation/field/errors.go` ##### Before `$ kubectl set env rc/idling-echo-1 test-abc=1234` ``` error: ReplicationController "idling-echo-1" is invalid: [spec.template.spec.containers[0].env[0].name: Invalid value: "test-abc": must be a C identifier (matching regex [A-Za-z_][A-Za-z0-9_]*): e.g. "my_name" or "MyName", spec.template.spec.containers[1].env[0].name: Invalid value: "test-abc": must be a C identifier (matching regex [A-Za-z_][A-Za-z0-9_]*): e.g. "my_name" or "MyName", spec.template.spec.containers[0].env[0].name: Invalid value: "test-abc": must be a C identifier (matching regex [A-Za-z_][A-Za-z0-9_]*): e.g. "my_name" or "MyName", spec.template.spec.containers[1].env[0].name: Invalid value: "test-abc": must be a C identifier (matching regex [A-Za-z_][A-Za-z0-9_]*): e.g. "my_name" or "MyName"] ``` `$ kubectl set env rc/node-1 test-abc=1234` ``` error: ReplicationController "idling-echo-1" is invalid: [spec.template.spec.containers[0].env[0].name: Invalid value: "test-abc": must be a C identifier (matching regex [A-Za-z_][A-Za-z0-9_]*): e.g. "my_name" or "MyName", spec.template.spec.containers[1].env[0].name: Invalid value: "test-abc": must be a C identifier (matching regex [A-Za-z_][A-Za-z0-9_]*): e.g. "my_name" or "MyName"] ``` ##### After `$ kubectl set env rc/idling-echo-1 test-abc=1234` ``` error: ReplicationController "idling-echo-1" is invalid: [spec.template.spec.containers[0].env[0].name: Invalid value: "test-abc": must be a C identifier (matching regex [A-Za-z_][A-Za-z0-9_]*): e.g. "my_name" or "MyName", spec.template.spec.containers[1].env[0].name: Invalid value: "test-abc": must be a C identifier (matching regex [A-Za-z_][A-Za-z0-9_]*): e.g. "my_name" or "MyName"] ``` `$ kubectl set env rc/node-1 test-abc=1234` ``` error: ReplicationController "node-1" is invalid: spec.template.spec.containers[0].env[0].name: Invalid value: "test-abc": must be a C identifier (matching regex [A-Za-z_][A-Za-z0-9_]*): e.g. "my_name" or "MyName" ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Remove json serialization annotations from internal types fixes #3933 Internal types should never be serialized, and including json serialization tags on them makes it possible to accidentally do that without realizing it. fixes in this PR: * types * [x] remove json tags from internal types * [x] fix references from serialized types to internal ObjectMeta * generation * [x] remove generated json codecs for internal types (they should never be used) * kubectl * [x] fix `apply` to operate on versioned object * [x] fix sorting by field to operate on versioned object * [x] fix `--record` to build annotation patch using versioned object * hpa * [x] fix unmarshaling to internal CustomMetricTargetList in validation * thirdpartyresources * [x] fix encoding API responses using internal ObjectMeta * tests * [x] fix tests to use versioned objects when checking encoded content * [x] fix tests passing internal objects to generic printers follow ups (will open tracking issues or additional PRs): - [ ] remove json tags from internal kubeconfig types (`kubectl config set` pathfinding needs to work against external type) - [ ] HPA should version CustomMetricTargetList serialization in annotations - [ ] revisit how TPR resthandlers encoding objects - [ ] audit and add tests for printer use (human-readable printer requires internal versions, generic printers require external versions) - [ ] add static analysis tests preventing new internal types from adding tags - [ ] add static analysis tests requiring json tags on external types (and enforcing lower-case first letter) - [ ] add more tests for `kubectl get` exercising known and unknown types with all output options
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue providers: Remove long-deprecated Instances.List()
-
Marek Grabowski authored
Fix the cross-build
-
Lucas Käldström authored
-
Angus Lees authored
This method has been unused by k8s for some time, and yet is the last piece of the cloud provider API that encourages provider names to be human-friendly strings (this method applies a regex to instance names). Actually removing this deprecated method is part of a long effort to migrate from instance names to instance IDs in at least the OpenStack provider plugin.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Add support for Azure Container Registry, update Azure dependencies @colemickens
-
Jess Frazelle authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 34002, 38535, 37330, 38522, 38423) Fix panic in vSphere cloud provider Currently vSphere Cloud Provider triggers panic in controller-manager pod kubernetes. This is because it queries for the cluster name from the VC. We have eliminated that code from the vSphere cloud provider. Fixes #36295
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 34002, 38535, 37330, 38522, 38423) Node E2E: `make test-e2e-node` runs the same test with pr builder by default. This PR makes `make test-e2e-node` run non-serial, non-flaky, non-slow test by default. This will make it easier to use. /cc @timstclair
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 34002, 38535, 37330, 38522, 38423) Rename pet to stateful pods in statefulset e2e tests logs Follow up https://github.com/kubernetes/kubernetes/pull/37243#discussion_r89193790 Note that only mentions of pet in logs are renamed, but not variable name, or file name / import path @foxish ```release-note NONE ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Remove hack/verify-munge-docs.sh from pre-commit hooks Follow up of #38309
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue fix broken cluster/centos and enhance the style replace the PR #33818
-
Random-Liu authored
-
Janet Kuo authored
-
- 09 Dec, 2016 20 commits
-
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue fix typo in pet_set fix typo in pet_set.
-
Chao Xu authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 37677, 38519) Better deal with failures under golang 1.8beta1 If there is any error in the initial parsing then we should just try adding the scheme. url.Parse(base) has changed in 1.8. Please see the following change https://github.com/golang/go/commit/c5ccbdd22bdbdc43d541b7e7d4ed66ceb559030e Fixes #38380
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Proper fix for non-receiving watchers Follow up on #37195
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 37270, 38309, 37568, 34554) Ability to quota storage by storage class Adds the ability to quota storage by storage class. 1. `<storage-class>.storageclass.storage.k8s.io/persistentvolumeclaims` - quota the number of claims with a specific storage class 2. `<storage-class>.storageclass.storage.k8s.io/requests.storage` - quota the cumulative request for storage in a particular storage class. For example: ``` $ cat quota.yaml apiVersion: v1 kind: ResourceQuota metadata: name: storage-quota spec: hard: requests.storage: 100Gi persistentvolumeclaims: 100 gold.storageclass.storage.k8s.io/requests.storage: 50Gi gold.storageclass.storage.k8s.io/persistentvolumeclaims: 5 silver.storageclass.storage.k8s.io/requests.storage: 75Gi silver.storageclass.storage.k8s.io/persistentvolumeclaims: 10 bronze.storageclass.storage.k8s.io.kubernetes.io/requests.storage: 100Gi bronze.storageclass.storage.k8s.io/persistentvolumeclaims: 15 $ kubectl create -f quota.yaml $ cat pvc-bronze.yaml kind: PersistentVolumeClaim apiVersion: v1 metadata: generateName: pvc-bronze- annotations: volume.beta.kubernetes.io/storage-class: "bronze" spec: accessModes: - ReadWriteOnce resources: requests: storage: 8Gi $ kubectl create -f pvc-bronze.yaml $ kubectl get quota storage-quota -o yaml apiVersion: v1 kind: ResourceQuota ... status: hard: bronze.storageclass.storage.k8s.io/persistentvolumeclaims: "15" bronze.storageclass.storage.k8s.io/requests.storage: 100Gi gold.storageclass.storage.k8s.io/persistentvolumeclaims: "5" gold.storageclass.storage.k8s.io/requests.storage: 50Gi persistentvolumeclaims: "100" requests.storage: 100Gi silver.storageclass.storage.k8s.io/persistentvolumeclaims: "10" silver.storageclass.storage.k8s.io/requests.storage: 75Gi used: bronze.storageclass.storage.k8s.io/persistentvolumeclaims: "1" bronze.storageclass.storage.k8s.io/requests.storage: 8Gi gold.storageclass.storage.k8s.io/persistentvolumeclaims: "0" gold.storageclass.storage.k8s.io/requests.storage: "0" persistentvolumeclaims: "1" requests.storage: 8Gi silver.storageclass.storage.k8s.io/persistentvolumeclaims: "0" silver.storageclass.storage.k8s.io/requests.storage: "0" ``` -
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 37270, 38309, 37568, 34554) kubeadm UX improvements for the v1.5 stable release This PR targets the next stable kubeadm release. It's work in progress, but please comment on it and review, since there are many changes. I tried to group the commits logically, so you can review them separately. Q: Why this large PR? Why not many small? A: Because of the Submit Queue and the time it takes. PTAL @kubernetes/sig-cluster-lifecycle _Edit:_ This work was splitted up in three PRs in total
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 37270, 38309, 37568, 34554) Remove update/verify-munge-docs.sh These scripts are no long needed because: 1. most docs are moved to other repos 2. the mungers are pre-processing the docs for gh pages, which are created with a whole different process now. cc @bgrant0607 @thockin
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 37270, 38309, 37568, 34554) Remove duplicate get errs old: ```shell $ kubectl get ns NAME STATUS AGE default Active 2m kube-system Active 2m $ kubectl get ns --all-namespaces NAMESPACE NAME STATUS AGE error: namespace is not namespaced error: namespace is not namespaced ``` new: ```shell $ kubectl get ns --all-namespaces NAMESPACE NAME STATUS AGE error: namespace is not namespaced ```
-
Jordan Liggitt authored
-
Jordan Liggitt authored
-
Jordan Liggitt authored
-
Jordan Liggitt authored
-
Jordan Liggitt authored
-
Jordan Liggitt authored
-
Jordan Liggitt authored
-
Jordan Liggitt authored
-
Jordan Liggitt authored
-
Jordan Liggitt authored
-
Jordan Liggitt authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 37860, 38429, 38451, 36050, 38463) HPA e2e tests: fixed waiting for service creation.
-