-
Notifications
You must be signed in to change notification settings - Fork 1
Added corbench code without manifest files #2
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
base: main
Are you sure you want to change the base?
Added corbench code without manifest files #2
Conversation
9ccc8e7
to
d9df051
Compare
@@ -0,0 +1,16 @@ | |||
FROM --platform=linux/amd64 golang:1.15-alpine |
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.
Can we use newer version of golang?
name: gp2-csi | ||
provisioner: ebs.csi.aws.com | ||
parameters: | ||
type: gp2 |
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.
Why not GP3?
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 could use gp3, but i wonder if it will break, i will give it a test
@@ -0,0 +1,18 @@ | |||
# Build stage | |||
FROM golang:1.15-alpine AS builder |
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.
Use go 1.24.x
|
||
type Resource = provider.Resource | ||
|
||
type eksCluster struct { |
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.
Do we really need these code? Can we just import prombench as a library
"github.com/cortexproject/test-infra/corbench/pkg/provider" | ||
) | ||
|
||
func init() { |
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.
ditto. If we cannot reuse prombench CLI, let's try to use its library instead of copy its code directly.
set -e | ||
|
||
# Disable AWS CLI pager to prevent interactive prompts | ||
export AWS_PAGER="" |
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.
It is ok to keep this script for now but we should try to just configure EBS CSI addon in the same eks cluster yaml
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 will add a note
Signed-off-by: Eric Kong <[email protected]>
Signed-off-by: Eric Kong <[email protected]>
7b7312f
to
4b48209
Compare
Moved over all corbench code from https://github.com/TheKongers/Corbench without the manifest files.
NOTE: the files under the directories
/corbench/infra
and/corbench/pkg
are directly from prombench, but trimmed down to only keep the EKS functionality to make it more lightweight.