-
Notifications
You must be signed in to change notification settings - Fork 78
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
Add crds for continuous benchmark tools #1779
Add crds for continuous benchmark tools #1779
Conversation
[CHATOPS:HELP] ChatOps commands.
|
396d183
to
b5e87e9
Compare
Deploying with Cloudflare Pages
|
0d347c2
to
031b997
Compare
Signed-off-by: vankichi <kyukawa315@gmail.com>
031b997
to
326e699
Compare
Signed-off-by: vankichi <kyukawa315@gmail.com>
Codecov ReportBase: 31.62% // Head: 31.67% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## feature/continous-benchmark-tool #1779 +/- ##
====================================================================
+ Coverage 31.62% 31.67% +0.04%
====================================================================
Files 377 377
Lines 32243 32243
====================================================================
+ Hits 10197 10213 +16
+ Misses 21650 21638 -12
+ Partials 396 392 -4
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Signed-off-by: vankichi <kyukawa315@gmail.com>
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.
Sorry I couldn't find struct which implements k8s.io/apimachinery/pkg/runtime.Object
"k8s.io/apimachinery/pkg/runtime" | ||
) | ||
|
||
type BenchmarkJobSpec 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.
🚫 [golangci] reported by reviewdog 🐶
fieldalignment: struct with 104 pointer bytes could be 56 (govet)
internal/k8s/benchmark/job/types.go
Outdated
Port int | ||
} | ||
|
||
type BenchmarkDatasetSpec 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.
🚫 [golangci] reported by reviewdog 🐶
fieldalignment: struct with 48 pointer bytes could be 32 (govet)
Type string | ||
} | ||
|
||
type BenchmarkJob 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.
🚫 [golangci] reported by reviewdog 🐶
fieldalignment: struct with 408 pointer bytes could be 400 (govet)
BenchmarkOperatorHealthy = BenchmarkOperatorStatus("Healthy") | ||
) | ||
|
||
type BenchmarkOperator 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.
🚫 [golangci] reported by reviewdog 🐶
fieldalignment: struct with 328 pointer bytes could be 320 (govet)
42dce0d
to
e128f80
Compare
Port int | ||
} | ||
|
||
type BenchmarkDataset 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.
🚫 [golangci] reported by reviewdog 🐶
fieldalignment: struct with 48 pointer bytes could be 32 (govet)
Signed-off-by: vankichi <kyukawa315@gmail.com>
e128f80
to
9747e30
Compare
Co-authored-by: Yusuke Kato <kpango@vdaas.org>
func New(opts ...Option) BenchmarkJobWatcher { | ||
r := new(reconciler) | ||
for _, opt := range append(defaultOpts, opts...) { | ||
opt(r) |
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.
Could you please add error handling for applying option? 🙏
func New(opts ...Option) BenchmarkOperatorWatcher { | ||
r := new(reconciler) | ||
for _, opt := range append(defaultOpts, opts...) { | ||
opt(r) |
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.
Could you please add error handling for applying option? 🙏
BenchmarkOperatorNotReady = BenchmarkOperatorStatus("NotReady") | ||
BenchmarkOperatorAvailable = BenchmarkOperatorStatus("Available") | ||
BenchmarkOperatorHealthy = BenchmarkOperatorStatus("Healthy") |
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.
BenchmarkOperatorNotReady = BenchmarkOperatorStatus("NotReady") | |
BenchmarkOperatorAvailable = BenchmarkOperatorStatus("Available") | |
BenchmarkOperatorHealthy = BenchmarkOperatorStatus("Healthy") | |
BenchmarkOperatorNotReady BenchmarkOperatorStatus = "NotReady" | |
BenchmarkOperatorAvailable BenchmarkOperatorStatus = "Available" | |
BenchmarkOperatorHealthy BenchmarkOperatorStatus = "Healthy" |
Signed-off-by: vankichi <kyukawa315@gmail.com>
|
||
func (r *reconciler) AddListOpts(opt client.ListOption) {} | ||
|
||
func (r *reconciler) Reconcile(ctx context.Context, req reconcile.Request) (res reconcile.Result, err error) { |
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.
🚫 [golangci] reported by reviewdog 🐶
named return "res" with type "reconcile.Result" found (nonamedreturns)
|
||
func (r *reconciler) AddListOpts(opt client.ListOption) {} | ||
|
||
func (r *reconciler) Reconcile(ctx context.Context, req reconcile.Request) (res reconcile.Result, err error) { |
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.
🚫 [golangci] reported by reviewdog 🐶
named return "res" with type "reconcile.Result" found (nonamedreturns)
Signed-off-by: vankichi kyukawa315@gmail.com
Description:
I have created the crd and rbac for the continuous benchmark operator.
Related Issue:
How Has This Been Tested?:
Environment:
Types of changes:
Changes to Core Features:
Checklist: