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

Commit 124be32

Browse files
committed
Adding secrets to bucket info
1 parent eeaf6d3 commit 124be32

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

apis/bucket_info.go

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,18 @@ import (
2222
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2323
)
2424

25+
type SecretS3 struct {
26+
Endpoint string `json:"endpoint"`
27+
Region string `json:"region"`
28+
AccessKeyID string `json:"accessKeyID"`
29+
AccessSecretKey string `json:"accessSecretKey"`
30+
}
31+
32+
type SecretAzure struct {
33+
AccessToken string `json:"acessToken"`
34+
ExpiryTimeStamp *metav1.Time `json:"expiryTimeStamp"`
35+
}
36+
2537
// +k8s:deepcopy-gen=false
2638
type BucketInfo struct {
2739
metav1.TypeMeta `json:",inline"`
@@ -42,11 +54,11 @@ type BucketInfoSpec struct {
4254
// IAM - implicit authentication of pods to the OSP based on service account mappings
4355
AuthenticationType AuthenticationType `json:"authenticationType"`
4456

45-
// Endpoint is the URL at which the bucket can be accessed
46-
Endpoint string `json:"endpoint"`
57+
// S3 - Details of S3 credentials
58+
S3 *SecretS3 `json:"secretS3"`
4759

48-
// Region is the vendor-defined region where the bucket "resides"
49-
Region string `json:"region"`
60+
// Azure - Details of Azure credentials
61+
Azure *SecretAzure `json:"secretAzure"`
5062

5163
// Protocols are the set of data APIs this bucket is expected to support.
5264
// The possible values for protocol are:

0 commit comments

Comments
 (0)