Commit Graph

228 Commits

Author SHA1 Message Date
Christian Huffman
8efa9e2f6c Updated generated dependencies 2021-04-05 16:06:17 -04:00
Christian Huffman
3bcf407d2f Addresses nitpicks for FSGroupPolicy 2021-04-05 15:45:40 -04:00
Shihang Zhang
4ad1c71174 graduate CSIServiceAccountToken to beta 2021-03-09 18:36:35 -08:00
Kubernetes Prow Robot
dc74b9d0c7
Merge pull request #98753 from Jiawei0227/length
Relax csiNodeIDMaxLength to longer limit
2021-03-09 09:19:00 -08:00
Jiawei Wang
1e16615fb0 Relax csiNodeIDMaxLength to longer limit
Update csiNodeIDMaxLength to 192 bytes
2021-03-08 13:52:43 -08:00
Patrick Ohly
2b062a6281 CSIStorageCapacity: generated files for beta 2021-03-08 20:59:52 +01:00
Patrick Ohly
a2972eba07 CSIStorageCapacity: add MaximumVolumeSize to v1beta1 API 2021-03-08 20:52:50 +01:00
Patrick Ohly
a94c141060 CSIStorageCapacity: promote API to beta
The v1alpha1 API is left in place for now to ease the migration.
2021-03-08 20:52:50 +01:00
Patrick Ohly
504f105a9e CSIStorageCapacity: prepare tests for enabling the feature by default
Defaults and validation are such that the field has to be set when
the feature is enabled, just as for the other boolean fields. This
was missing in some tests, which was okay as long as they ran
with the feature disabled. Once it gets enabled, validation will
flag the missing field as error.

Other tests didn't run at all.
2021-03-08 20:52:50 +01:00
Kubernetes Prow Robot
aeff7ae701
Merge pull request #99414 from Jiawei0227/type
Update inline volume spec comments
2021-03-03 14:41:05 -08:00
Benjamin Elder
56e092e382 hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
Jiawei Wang
819a3be084 Update inline volume spec comments 2021-02-24 21:23:36 -08:00
Kubernetes Prow Robot
2df1c6a0fa
Merge pull request #92065 from pohly/podinfo-doc-fix
storage: document csi.storage.k8s.io/ephemeral also for internal type
2021-01-25 08:14:54 -08:00
Christian Huffman
701b42ca2b Corrected CSIDriver validation rebase issues 2020-11-12 16:45:26 -05:00
Christian Huffman
8444823bed Remove duplicate CSIDriver name validation 2020-11-12 16:32:36 -05:00
Christian Huffman
3287dbf914 Adjust CSIDriver validation to check objectmeta 2020-11-12 16:30:40 -05:00
Christian Huffman
01f70d69b7 Move CSIVolumeFSGroupPolicy to beta 2020-11-12 16:28:54 -05:00
Christian Huffman
6b9348e878 Relax validation for CSIVolumeFSGroupPolicy 2020-11-12 16:26:20 -05:00
Shihang Zhang
d2859cd89b plumb service account token down to csi driver 2020-11-12 09:26:43 -08:00
Christian Huffman
9a7b073f4d Updated fuzzer to get RoundTripTest passing 2020-07-11 23:29:24 -04:00
Christian Huffman
e65f0f565a Updated dependencies 2020-07-11 23:29:24 -04:00
Christian Huffman
58bd3e5230 Include CSIDriver SupportsFsGroup 2020-07-11 23:29:24 -04:00
Kubernetes Prow Robot
55d77ade67
Merge pull request #92489 from alculquicondor/sig-storage-ownership
Add SIG storage owner aliases
2020-07-09 00:05:20 -07:00
Aldo Culquicondor
27ec356d76 Add SIG storage owner aliases
And give ownership to pkg/scheduler/framework/plugins/volumebinding

Signed-off-by: Aldo Culquicondor <acondor@google.com>
Change-Id: I4bd89b1745a2be0e458601056ab905bdd6692195
2020-07-07 10:26:16 -04:00
Patrick Ohly
9a66e8e1b5 CSIStorageCapacity: 'make update' 2020-07-03 21:54:14 +02:00
Patrick Ohly
1089954fa6 CSIStorageCapacity: CSIDriver.Spec.StorageCapacity field
This is needed to inform the Kubernetes pod scheduler whether it has
to check CSIStorageCapacity objects for available capacity.
2020-07-03 21:54:14 +02:00
Patrick Ohly
22aeb81e84 CSIStorageCapacity: CSIStorageCapacity API
This adds the CSIStorageCapacity API change for
https://github.com/kubernetes/enhancements/tree/master/keps/sig-storage/1472-storage-capacity-tracking
2020-07-03 21:54:14 +02:00
Kubernetes Prow Robot
b1b1fc8034
Merge pull request #81961 from pohly/ephemeral-unit-tests
storage: enhance test for ValidateCSIDriverUpdate
2020-07-01 07:10:34 -07:00
Patrick Ohly
f1101a3318 storage: document csi.storage.k8s.io/ephemeral also for internal type
This was added to staging/src/k8s.io/api/storage/v1beta1/types.go but
unintentionally left out for the internal type. Both docs should
better match because it is uncertain which one will be looked at by
developers.

The original "iff" for "if and only if" is unnecessary because the
comment about "otherwise false" avoids ambiguity.
2020-06-12 11:34:37 +02:00
Christian Huffman
726af6bd7f Moved CSIDriver to GA 2020-03-06 08:17:26 -05:00
Kubernetes Prow Robot
36362cc149
Merge pull request #84673 from hwdef/fix-staticcheck3
pkg/apis: fix staticcheck warning
2019-11-09 01:29:40 -08:00
hwdef
6c6fd9c575 pkg/apis: fix staticcheck warning 2019-11-08 14:49:39 +08:00
Michelle Au
9268d40539 generated files 2019-10-28 13:41:13 -07:00
Michelle Au
603a2aa8a9 Add CSINode to storage/v1 2019-10-28 13:41:13 -07:00
Kubernetes Prow Robot
a9f0db1661
Merge pull request #81770 from Hyzhou/fix_link
Fix broken link to api-conventions doc.
2019-08-29 18:08:59 -07:00
misakazhou
f0323a2030 Fix broken link to api-conventions doc.
Signed-off-by: misakazhou <misakazhou@tencent.com>
2019-08-29 08:35:16 +08:00
Patrick Ohly
6d12f2de10 storage: fix CSIInlineVolume round-trip test
When adding CSIDriver.Spec.VolumeLifecycleModes, the defaulting in
pkg/apis/storage/fuzzer/fuzzer.go did not quite match the one from
pkg/apis/storage/v1beta1/defaults.go, causing a test failure when the
corresponding feature gate is enabled.
2019-08-27 14:00:42 +02:00
Patrick Ohly
c20721aa9f storage: enhance test for ValidateCSIDriverUpdate
This revised test changes one field at a time in various ways. This
ensures that one failure reason doesn't mask the other.

An incorrect comment also gets fixed.

Suggested in https://github.com/kubernetes/kubernetes/pull/80568#pullrequestreview-272836101.
2019-08-26 21:45:39 +02:00
Patrick Ohly
1db1263476 storage: add test for ValidateCSIDriverUpdate
Adding this test was forgotten when adding CSIDriver.
2019-08-13 23:12:52 +02:00
Patrick Ohly
b60f08e24b storage: validate CSIDriver.Spec.VolumeLifecycleModes
This ensures that users get a good error message early on when trying
to do something that isn't okay:

  $ kubectl create -f csi-hostpath-driverinfo.yaml
  The CSIDriver "hostpath.csi.k8s.io" is invalid: spec.volumeLifecycleModes: Unsupported value: "foobar": supported values: "persistent", "ephemeral"
2019-08-13 23:12:48 +02:00
Patrick Ohly
f7742fd31a storage: generated files for CSIDriver.Spec.VolumeLifecycleModes 2019-08-13 23:11:42 +02:00
Patrick Ohly
029fd47757 storage: introduce CSIDriver.Spec.VolumeLifecycleModes
Using a "normal" CSI driver for an inline ephemeral volume may have
unexpected and potentially harmful effects when the driver gets a
NodePublishVolume call that it isn't expecting. To prevent that mistake,
driver deployments for a driver that supports such volumes must:
- deploy a CSIDriver object for the driver
- list "ephemeral" as one of the supported modes

The default is "persistent", so existing deployments continue to work
and are automatically protected against incorrect usage.

This commit contains the API change. Generated code and manual code
which uses the new API follow.
2019-08-13 23:11:36 +02:00
Ted Yu
bb77aa7a63 Validate CSI Inline Migration unconditionally 2019-08-06 08:33:31 -07:00
Fabio Bertinatto
b90ca5b2a7 Auto-generated code for volume limits API 2019-06-25 16:30:54 +02:00
Fabio Bertinatto
13e30b6342 Add volume limits API changes 2019-06-25 16:30:54 +02:00
Deep Debroy
df196226c4 Generated code for API changes to support CSI migration of inline volumes
Signed-off-by: Deep Debroy <ddebroy@docker.com>
2019-05-30 09:34:53 +00:00
Deep Debroy
c34309acdf API changes to support CSI migration of inline volumes
Signed-off-by: Deep Debroy <ddebroy@docker.com>
2019-05-30 09:34:47 +00:00
Chao Xu
369314959c generated 2019-05-24 18:14:53 -07:00
Àbéjídé Àyodélé
25df4e69a5 Clean up pkg/apis.
These are based on recommendation from
[staticcheck](http://staticcheck.io/).
2019-05-09 15:25:41 +00:00
Andrew Kim
c919139245 update import of generic featuregate code from k8s.io/apiserver/pkg/util/feature -> k8s.io/component-base/featuregate 2019-05-08 10:01:50 -04:00