-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Adding synchronization and other features to extended test cluster loader. #17894
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,17 +13,20 @@ type ContextType struct { | |
ClusterLoader struct { | ||
Cleanup bool | ||
Projects []ClusterLoaderType | ||
Sync SyncObjectType | ||
TuningSets []TuningSetType | ||
} | ||
} | ||
|
||
// ClusterLoaderType struct only used for Cluster Loader test config | ||
type ClusterLoaderType struct { | ||
Number int `mapstructure:"num"` | ||
Basename string | ||
Tuning string | ||
Pods []ClusterLoaderObjectType | ||
Templates []ClusterLoaderObjectType | ||
Number int `mapstructure:"num"` | ||
Basename string | ||
Tuning string | ||
Configmaps map[string]interface{} | ||
Secrets map[string]interface{} | ||
Pods []ClusterLoaderObjectType | ||
Templates []ClusterLoaderObjectType | ||
} | ||
|
||
// ClusterLoaderObjectType is nested object type for cluster loader struct | ||
|
@@ -33,9 +36,22 @@ type ClusterLoaderObjectType struct { | |
Image string | ||
Basename string | ||
File string | ||
Sync SyncObjectType | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In order to perform synchronization both on template/pod and cluster-loader wide level. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We need to discuss this further. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not currently used but may be helpful in the future. |
||
Parameters map[string]interface{} | ||
} | ||
|
||
// SyncObjectType is nested object type for cluster loader synchronisation functionality | ||
type SyncObjectType struct { | ||
Server struct { | ||
Enabled bool | ||
Port int | ||
} | ||
Running bool | ||
Succeeded bool | ||
Selectors map[string]string | ||
Timeout string | ||
} | ||
|
||
// TuningSetType is nested type for controlling Cluster Loader deployment pattern | ||
type TuningSetType struct { | ||
Name string | ||
|
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.
nit, missing a space?
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.
Not sure where, formatted by gofmt, also used go tool vet
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.
The columns should align, not sure why you're not getting proper output.
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.
Which columns do not align? I do not see any mis-alignment. Again, the code is formatted with "gofmt -s -d context.go" produces no diff. Please be specific.
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.
The one I've tagged, line 26?
Configmaps
is aligned, butmap[string]interface{}
is not.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's just on github... ffs
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.
Great, was getting desperate...