-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add minio controller #4240
Conversation
Whoa! Easy there, Partner!This PR is too big. Please break it up into smaller PRs. |
Apply Sweep Rules to your PR?
|
🤖 Generated by lychee actionSummary
Full action output |
Codecov ReportAll modified and coverable lines are covered by tests ✅ see 1 file with indirect coverage changes 📢 Thoughts on this report? Let us know! |
@@ -0,0 +1,12 @@ | |||
apiVersion: minio.sealos.io/v1 |
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.
minio.sealos.io -> object.sealos.io
@@ -0,0 +1,12 @@ | |||
apiVersion: minio.sealos.io/v1 | |||
kind: MinioUser |
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.
ObjectStorageUser
} | ||
|
||
func buildBucketName(name, namespace string) string { | ||
return strings.Split(namespace, "-")[1] + "-" + name |
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.
Will panic if namespace not have "-"
userNamespace := req.Namespace | ||
|
||
// check minio username if correct or not | ||
if username != strings.Split(userNamespace, "-")[1] { |
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.
panic
Null