Skip to content
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

Fix nil pointer in upgrade predicates #2035

Merged
merged 2 commits into from
Oct 22, 2019
Merged

Fix nil pointer in upgrade predicates #2035

merged 2 commits into from
Oct 22, 2019

Conversation

pebrc
Copy link
Collaborator

@pebrc pebrc commented Oct 21, 2019

Fixes #2034

  • initialise shardLister in RollingUpgradeContext
  • add e2e test that exercises the "do_not_delete_pods_with_same_shards" predicate

@pebrc pebrc added >bug Something isn't working v1.0.0 labels Oct 21, 2019
WithNamedESDataNodes(2, "data1", elasticsearch.DefaultResources).
WithAdditionalConfig(map[string]map[string]interface{}{
"data1": {
"node.attr.value": "this-is-fine",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😆

@@ -131,6 +131,7 @@ func newRollingUpgrade(
ES: d.ES,
statefulSets: statefulSets,
esClient: esClient,
shardLister: esClient,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wish our linter would catch something like that :(

@pebrc pebrc merged commit c266a7b into elastic:master Oct 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug Something isn't working v1.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Operator CrashLooping on 1.0.0-beta1 when maxUnavailable=-1
4 participants