This repository was archived by the owner on Dec 6, 2024. It is now read-only.
generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 29
removes policy action, adds bucketaccessinfo #47
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package v1alpha1 | ||
|
||
import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
|
||
// +genclient | ||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||
// +kubebuilder:resource:scope=Namespaced | ||
// +kubebuilder:storageversion | ||
|
||
type BucketAccessInfo struct { | ||
metav1.TypeMeta `json:",inline"` | ||
|
||
// +optional | ||
metav1.ObjectMeta `json:"metadata,omitempty"` | ||
|
||
S3 *S3BucketAccessInfo `json:"s3,omitempty"` | ||
Azure *AzureBucketAccessInfo `json:"azure,omitempty"` | ||
Gcs *GCSBucketAccessInfo `json:"gcs,omitempty"` | ||
} | ||
|
||
type S3BucketAccessInfo struct { | ||
Endpoint string `json:"endpoint,omitempty"` | ||
BucketName string `json:"bucketName,omitempty"` | ||
Region string `json:"region,omitempty"` | ||
Credentials string `json:"credentials,omitempty"` | ||
Certificates string `json:"certificates,omitempty"` | ||
SignatureVersion S3SignatureVersion `json:"signatureVersion,omitempty"` | ||
} | ||
|
||
type AzureBucketAccessInfo struct { | ||
Endpoint string `json:"endpoint,omitempty"` // scheme is mandatory in the URL | ||
StorageAccountName string `json:"storageAccountName,omitempty"` // This is the equivalent of bucket name + access key | ||
ContainerName string `json:"containerName,omitempty"` // Optional. This is a prefix at the root of the bucket | ||
SecretKey string `json:"secretKey,omitempty"` // This is the equivalent of secret key | ||
} | ||
|
||
type GCSBucketAccessInfo struct { | ||
} | ||
|
||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||
|
||
type BucketAccessInfoList struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ListMeta `json:"metadata,omitempty"` | ||
Items []BucketAccessInfo `json:"items"` | ||
} |
212 changes: 200 additions & 12 deletions
212
apis/objectstorage.k8s.io/v1alpha1/openapi_generated.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought we are going to remove "SignatureVersion" and "Certificates"?