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

Commit d6641aa

Browse files
author
Krish Chowdhary
committed
removes policy action, adds bucketaccessinfo
1 parent 7c95588 commit d6641aa

17 files changed

+956
-48
lines changed

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

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
package v1alpha1
2+
3+
import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
4+
5+
// +genclient
6+
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
7+
// +kubebuilder:resource:scope=Namespaced
8+
// +kubebuilder:storageversion
9+
10+
type BucketAccessInfo struct {
11+
metav1.TypeMeta `json:",inline"`
12+
13+
// +optional
14+
metav1.ObjectMeta `json:"metadata,omitempty"`
15+
16+
S3 *S3BucketAccessInfo `json:"s3,omitempty"`
17+
Azure *AzureBucketAccessInfo `json:"azure,omitempty"`
18+
Gcs *GCSBucketAccessInfo `json:"gcs,omitempty"`
19+
}
20+
21+
type S3BucketAccessInfo struct {
22+
Endpoint string `json:"endpoint,omitempty"`
23+
BucketName string `json:"bucketName,omitempty"`
24+
Region string `json:"region,omitempty"`
25+
Credentials string `json:"credentials,omitempty"`
26+
Certificates string `json:"certificates,omitempty"`
27+
SignatureVersion S3SignatureVersion `json:"signatureVersion,omitempty"`
28+
}
29+
30+
type AzureBucketAccessInfo struct {
31+
Endpoint string `json:"endpoint,omitempty"` // scheme is mandatory in the URL
32+
StorageAccountName string `json:"storageAccountName,omitempty"` // This is the equivalent of bucket name + access key
33+
ContainerName string `json:"containerName,omitempty"`// Optional. This is a prefix at the root of the bucket
34+
SecretKey string `json:"secretKey,omitempty"`// This is the equivalent of secret key
35+
}
36+
37+
type GCSBucketAccessInfo struct {
38+
39+
}
40+
41+
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
42+
43+
type BucketAccessInfoList struct {
44+
metav1.TypeMeta `json:",inline"`
45+
metav1.ListMeta `json:"metadata,omitempty"`
46+
Items []BucketAccessInfo `json:"items"`
47+
}

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

+200-12
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

-4
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,6 @@ type BucketAccessClass struct {
202202
// +optional
203203
metav1.ObjectMeta `json:"metadata,omitempty"`
204204

205-
PolicyActionsConfigMap *corev1.ObjectReference `json:"policyActionsConfigMap,omitempty"`
206-
207205
// +optional
208206
Parameters map[string]string `json:"parameters,omitempty"`
209207
}
@@ -245,8 +243,6 @@ type BucketAccessSpec struct {
245243
// +optional
246244
ServiceAccount *corev1.ObjectReference `json:"serviceAccount,omitempty"`
247245

248-
PolicyActionsConfigMapData string `json:"policyActionsConfigMapData,omitempty"`
249-
250246
// +optional
251247
Parameters map[string]string `json:"parameters,omitempty"`
252248
}

0 commit comments

Comments
 (0)