-
Notifications
You must be signed in to change notification settings - Fork 47
refactor(rbg): support customComponentsPatterns in v1alpha2 version #193
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
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 | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -205,10 +205,6 @@ type RoleSpec struct { | |||||||
| // +optional | ||||||||
| Pattern `json:",inline"` | ||||||||
|
|
||||||||
| // Components describe the components that will be created. | ||||||||
| // +optional | ||||||||
| Components []InstanceComponent `json:"components,omitempty"` | ||||||||
|
|
||||||||
| // +optional | ||||||||
| ServicePorts []corev1.ServicePort `json:"servicePorts,omitempty"` | ||||||||
|
|
||||||||
|
|
@@ -234,6 +230,10 @@ type Pattern struct { | |||||||
| // LeaderWorkerPattern defines a multi-pod pattern with leader and workers. | ||||||||
| // +optional | ||||||||
| LeaderWorkerPattern *LeaderWorkerPattern `json:"leaderWorkerPattern,omitempty"` | ||||||||
|
|
||||||||
| // CustomComponentsPattern defines a pattern with custom components. | ||||||||
| // +optional | ||||||||
| CustomComponentsPattern *CustomComponentsPattern `json:"customComponentsPattern,omitempty"` | ||||||||
| } | ||||||||
|
|
||||||||
| // TemplateSource defines either an inline template or a reference to a RoleTemplate. | ||||||||
|
|
@@ -281,6 +281,11 @@ type LeaderWorkerPattern struct { | |||||||
| WorkerTemplatePatch *runtime.RawExtension `json:"workerTemplatePatch,omitempty"` | ||||||||
| } | ||||||||
|
|
||||||||
|
||||||||
| // CustomComponentsPattern defines the custom component-based deployment pattern. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Missing doc comment. The other getter methods (
GetStandalonePattern,GetLeaderWorkerPattern) all have doc comments following the pattern// GetXxx returns the Xxx if set, nil otherwise.. This function should follow the same convention for consistency.