Skip to content

Commit 3d4c585

Browse files
Prajyot-Parabk8s-infra-cherrypick-robot
authored andcommitted
add tier0 storage type support
Signed-off-by: Prajyot-Parab <[email protected]>
1 parent 2277836 commit 3d4c585

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

api/v1beta1/ibmpowervsimage_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ type IBMPowerVSImageSpec struct {
5151

5252
// Type of storage, storage pool with the most available space will be selected.
5353
// +kubebuilder:default=tier1
54-
// +kubebuilder:validation:Enum=tier1;tier3
54+
// +kubebuilder:validation:Enum=tier0;tier1;tier3
5555
// +optional
5656
StorageType string `json:"storageType,omitempty"`
5757

api/v1beta2/ibmpowervsimage_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ type IBMPowerVSImageSpec struct {
6262

6363
// Type of storage, storage pool with the most available space will be selected.
6464
// +kubebuilder:default=tier1
65-
// +kubebuilder:validation:Enum=tier1;tier3
65+
// +kubebuilder:validation:Enum=tier0;tier1;tier3
6666
// +optional
6767
StorageType string `json:"storageType,omitempty"`
6868

cmd/capibmadm/cmd/powervs/image/import.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ capibmadm powervs image import --service-instance-id <service-instance-id> -b <b
8080
cmd.Flags().StringVar(&imageImportOption.ImageName, "name", "", "Name to PowerVS imported image.")
8181
cmd.Flags().BoolVarP(&imageImportOption.Public, "public-bucket", "", false, "Cloud Object Storage public bucket.")
8282
cmd.Flags().DurationVar(&imageImportOption.WatchTimeout, "watch-timeout", 1*time.Hour, "watch timeout")
83-
cmd.Flags().StringVar(&imageImportOption.StorageType, "pvs-storagetype", "tier3", "PowerVS Storage type, accepted values are [tier1, tier3].")
83+
cmd.Flags().StringVar(&imageImportOption.StorageType, "pvs-storagetype", "tier1", "PowerVS Storage type, accepted values are [tier0, tier1, tier3].")
8484
_ = cmd.MarkFlagRequired("bucket")
8585
_ = cmd.MarkFlagRequired("bucket-region")
8686
_ = cmd.MarkFlagRequired("name")

config/crd/bases/infrastructure.cluster.x-k8s.io_ibmpowervsimages.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ spec:
7979
description: Type of storage, storage pool with the most available
8080
space will be selected.
8181
enum:
82+
- tier0
8283
- tier1
8384
- tier3
8485
type: string
@@ -253,6 +254,7 @@ spec:
253254
description: Type of storage, storage pool with the most available
254255
space will be selected.
255256
enum:
257+
- tier0
256258
- tier1
257259
- tier3
258260
type: string

docs/book/src/topics/capibmadm/powervs/image.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ IBMCLOUD_API_KEY: IBM Cloud API key.
2727

2828
--watch-timeout: watch timeout.
2929

30-
--pvs-storagetype: PowerVS Storage type, accepted values are [tier1, tier3]..
30+
--pvs-storagetype: PowerVS Storage type, accepted values are [tier0, tier1, tier3]..
3131

3232

3333
#### Example:

0 commit comments

Comments
 (0)