Documentation
¶
Overview ¶
*
- Copyright 2021 IBM Corp. *
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at *
- http://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
*
- Copyright 2021 IBM Corp. *
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at *
- http://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
*
- Copyright 2021 IBM Corp. *
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at *
- http://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
Index ¶
- func CreatePVC(pvcName string, namespace string, cs clientset.Interface)
- func CreateSDPPVC(pvcName string, sc string, namespace string, iops int, throughput int, ...)
- func CreateStorageClass(scName, profile, fsType, iops, throughput string, cs clientset.Interface)
- func TestFunc() func()
- func UpdateVolumeAttachmentLimit(client clientset.Interface, limit string) bool
- type Performance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSDPPVC ¶ added in v1.1.22
func CreateSDPPVC(pvcName string, sc string, namespace string, iops int, throughput int, sdpPvcSize string, cs clientset.Interface)
create sdp volume function
func CreateStorageClass ¶ added in v1.1.8
CreateStorageClass creates a storage class with the specified parameters Parameters:
- scName: Name of the storage class
- profile: Storage profile ("5iops-tier", "general-purpose", "10iops-tier", "custom", "sdp")
- fsType: Filesystem type ("ext4" or "xfs")
- iops: IOPS value (used for "custom" and "sdp" profiles, empty string for tier-based)
- throughput: Throughput in MB/s (only used for "sdp" profile, empty string otherwise)
- cs: Kubernetes clientset
Types ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.