-
Notifications
You must be signed in to change notification settings - Fork 89
Refactoring elasticsearch operator to improve code readability #80
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
Refactoring elasticsearch operator to improve code readability #80
Conversation
f9f322c to
9b703eb
Compare
9b703eb to
f04a3f6
Compare
|
/retest |
1 similar comment
|
/retest |
ee87e73 to
3f413b9
Compare
4f115fc to
002fca9
Compare
2881745 to
d93bb07
Compare
9ef0e3a to
189d754
Compare
|
/test e2e-aws |
189d754 to
20f5e23
Compare
|
/retest |
|
/test e2e-operator |
jcantrill
left a comment
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 think we can still tighten things up but I'm good with a first pass if we want to merge
|
|
||
| return []v1.EnvVar{ | ||
| v1.EnvVar{ | ||
| Name: "DC_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.
Again in future, maybe we should consider changing this to DEPLOYMENT_NAME since we are not using DC
| Value: fmt.Sprintf("cluster=%s", clusterName), | ||
| }, | ||
| v1.EnvVar{ | ||
| Name: "IS_MASTER", |
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.
Needed?
|
|
||
| defaultMasterCPULimit = "100m" | ||
| defaultMasterCPURequest = "100m" | ||
| defaultCPULimit = "4000m" |
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.
we removed the cpu limit I think in 3.9
|
@jcantrill looks like we had cpu limit and cpu request in 3.9... |
|
/hold |
20f5e23 to
e2c9230
Compare
|
|
||
| type ElasticsearchStorageSpec struct { | ||
| StorageClassName string `json:"storageClassName,omitempty"` | ||
| StorageClassName *string `json:"storageClassName,omitempty"` |
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.
this is part of addressing https://bugzilla.redhat.com/show_bug.cgi?id=1689762
this may break CLO when we specify a storageClassName -- will create a follow up fix
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 need to do a dep ensure -update for this
|
/hold cancel |
jcantrill
left a comment
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.
There is a lot here and I think more to refactor via smaller chunks. Assuming there are no regressions I would like to get this in and then work from there.
|
/test e2e-aws |
e2c9230 to
681bf5b
Compare
|
/retest |
3 similar comments
|
/retest |
|
/retest |
|
/retest |
jcantrill
left a comment
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.
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ewolinetz, jcantrill The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/hold |
This may look noisy until #81 is merged in