Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

Commit b3eebd0

Browse files
committed
Adding Protocol to BucketClass to allow admin to provide backend information
1 parent a74c106 commit b3eebd0

File tree

4 files changed

+55
-5
lines changed

4 files changed

+55
-5
lines changed

Diff for: apis/objectstorage.k8s.io/v1alpha1/openapi_generated.go

+2-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: apis/objectstorage.k8s.io/v1alpha1/types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ type BucketClass struct {
145145
// +listType=atomic
146146
// +optional
147147
AllowedNamespaces []string `json:"allowedNamespaces,omitempty"`
148-
Protocol string `json:"protocol"`
148+
Protocol Protocol `json:"protocol"`
149149
// +optional
150150
AnonymousAccessMode AnonymousAccessMode `json:"anonymousAccessMode,omitempty"`
151151
// +kubebuilder:default:=retain

Diff for: apis/objectstorage.k8s.io/v1alpha1/zz_generated.deepcopy.go

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: crds/objectstorage.k8s.io_bucketclasses.yaml

+51-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,57 @@ spec:
5656
type: string
5757
type: object
5858
protocol:
59-
type: string
59+
properties:
60+
azureBlob:
61+
properties:
62+
containerName:
63+
type: string
64+
storageAccount:
65+
type: string
66+
type: object
67+
gcs:
68+
properties:
69+
bucketName:
70+
type: string
71+
privateKeyName:
72+
type: string
73+
projectID:
74+
type: string
75+
serviceAccount:
76+
type: string
77+
type: object
78+
requestedProtocol:
79+
properties:
80+
name:
81+
enum:
82+
- s3
83+
- azureBlob
84+
- gcs
85+
type: string
86+
version:
87+
type: string
88+
required:
89+
- name
90+
type: object
91+
s3:
92+
properties:
93+
bucketName:
94+
type: string
95+
endpoint:
96+
type: string
97+
region:
98+
type: string
99+
signatureVersion:
100+
enum:
101+
- s3v2
102+
- s3v4
103+
type: string
104+
version:
105+
type: string
106+
type: object
107+
required:
108+
- requestedProtocol
109+
type: object
60110
provisioner:
61111
type: string
62112
retentionPolicy:

0 commit comments

Comments
 (0)