-
Notifications
You must be signed in to change notification settings - Fork 525
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add MaxAllowedBlockVolumesPerNode field to VSphereCSIDriverConfigSpec
- Loading branch information
1 parent
9e59a77
commit 78a4793
Showing
24 changed files
with
3,616 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
123 changes: 123 additions & 0 deletions
123
...tercsidrivers.operator.openshift.io/VSphereConfigurableMaxAllowedBlockVolumesPerNode.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
apiVersion: apiextensions.k8s.io/v1 # Hack because controller-gen complains if we don't have this | ||
name: "ClusterCSIDriver" | ||
crdName: clustercsidrivers.operator.openshift.io | ||
featureGates: | ||
- VSphereConfigurableMaxAllowedBlockVolumesPerNode | ||
tests: | ||
onCreate: | ||
- name: Should be able to create ClusterCSIDriver with volume limit option | ||
initial: | | ||
apiVersion: operator.openshift.io/v1 | ||
kind: ClusterCSIDriver | ||
metadata: | ||
name: csi.sharedresource.openshift.io | ||
spec: | ||
driverConfig: | ||
driverType: vSphere | ||
vSphere: | ||
maxAllowedBlockVolumesPerNode: 59 | ||
logLevel: Normal | ||
operatorLogLevel: Normal | ||
expected: | | ||
apiVersion: operator.openshift.io/v1 | ||
kind: ClusterCSIDriver | ||
metadata: | ||
name: csi.sharedresource.openshift.io | ||
spec: | ||
driverConfig: | ||
driverType: vSphere | ||
vSphere: | ||
maxAllowedBlockVolumesPerNode: 59 | ||
logLevel: Normal | ||
operatorLogLevel: Normal | ||
- name: Should be able to create a minimal ClusterCSIDriver | ||
initial: | | ||
apiVersion: operator.openshift.io/v1 | ||
kind: ClusterCSIDriver | ||
metadata: | ||
name: csi.sharedresource.openshift.io | ||
spec: {} # No spec is required for a ClusterCSIDriver | ||
expected: | | ||
apiVersion: operator.openshift.io/v1 | ||
kind: ClusterCSIDriver | ||
metadata: | ||
name: csi.sharedresource.openshift.io | ||
spec: | ||
logLevel: Normal | ||
operatorLogLevel: Normal | ||
- name: Should not be able to set limit above allowed range | ||
initial: | | ||
apiVersion: operator.openshift.io/v1 | ||
kind: ClusterCSIDriver | ||
metadata: | ||
name: csi.sharedresource.openshift.io | ||
spec: | ||
driverConfig: | ||
driverType: vSphere | ||
vSphere: | ||
maxAllowedBlockVolumesPerNode: 256 | ||
logLevel: Normal | ||
operatorLogLevel: Normal | ||
expectedError: "Invalid value: 256: spec.driverConfig.vSphere.maxAllowedBlockVolumesPerNode in body should be less than or equal to 255" | ||
- name: Should apply default value when limit is unset | ||
initial: | | ||
apiVersion: operator.openshift.io/v1 | ||
kind: ClusterCSIDriver | ||
metadata: | ||
name: csi.sharedresource.openshift.io | ||
spec: | ||
driverConfig: | ||
driverType: vSphere | ||
vSphere: {} | ||
logLevel: Normal | ||
operatorLogLevel: Normal | ||
expected: | | ||
apiVersion: operator.openshift.io/v1 | ||
kind: ClusterCSIDriver | ||
metadata: | ||
name: csi.sharedresource.openshift.io | ||
spec: | ||
driverConfig: | ||
driverType: vSphere | ||
vSphere: | ||
maxAllowedBlockVolumesPerNode: 59 | ||
logLevel: Normal | ||
operatorLogLevel: Normal | ||
onUpdate: | ||
- name: Should be able to update the limit field | ||
initial: | | ||
apiVersion: operator.openshift.io/v1 | ||
kind: ClusterCSIDriver | ||
metadata: | ||
name: csi.sharedresource.openshift.io | ||
spec: | ||
driverConfig: | ||
driverType: vSphere | ||
vSphere: | ||
maxAllowedBlockVolumesPerNode: 59 | ||
logLevel: Normal | ||
operatorLogLevel: Normal | ||
updated: | | ||
apiVersion: operator.openshift.io/v1 | ||
kind: ClusterCSIDriver | ||
metadata: | ||
name: csi.sharedresource.openshift.io | ||
spec: | ||
driverConfig: | ||
driverType: vSphere | ||
vSphere: | ||
maxAllowedBlockVolumesPerNode: 255 | ||
logLevel: Normal | ||
operatorLogLevel: Normal | ||
expected: | | ||
apiVersion: operator.openshift.io/v1 | ||
kind: ClusterCSIDriver | ||
metadata: | ||
name: csi.sharedresource.openshift.io | ||
spec: | ||
driverConfig: | ||
driverType: vSphere | ||
vSphere: | ||
maxAllowedBlockVolumesPerNode: 255 | ||
logLevel: Normal | ||
operatorLogLevel: Normal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.