This repository has been archived by the owner on May 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
ES Statefulset empty initContainers fix #795
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
4 tasks
This PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. To track this PR (even if closed), please open a corresponding issue if one does not already exist. |
jenkins test this please |
jmlrt
approved these changes
Nov 24, 2020
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⛴
jmlrt
added a commit
to jmlrt/helm-charts
that referenced
this pull request
Nov 26, 2020
Co-authored-by: Julien Mailleret <[email protected]>
jmlrt
added a commit
to jmlrt/helm-charts
that referenced
this pull request
Nov 26, 2020
Co-authored-by: Julien Mailleret <[email protected]>
jmlrt
added a commit
to jmlrt/helm-charts
that referenced
this pull request
Nov 26, 2020
Co-authored-by: Julien Mailleret <[email protected]>
jmlrt
added a commit
that referenced
this pull request
Nov 26, 2020
Co-authored-by: Julien Mailleret <[email protected]> Co-authored-by: cloudziu <[email protected]>
jmlrt
added a commit
that referenced
this pull request
Nov 26, 2020
Co-authored-by: Julien Mailleret <[email protected]> Co-authored-by: cloudziu <[email protected]>
jmlrt
added a commit
that referenced
this pull request
Nov 26, 2020
Co-authored-by: Julien Mailleret <[email protected]> Co-authored-by: cloudziu <[email protected]>
Closed
Merged
Closed
This was referenced Dec 14, 2021
Merged
Merged
Merged
This was referenced Sep 14, 2022
Merged
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Modyfied elasticsearch statefulset template, so if none of the initContainers are declared, there will be no initContainers: directive.
${CHART}/tests/*.py
${CHART}/examples/*/test/goss.yaml
Problem
Unable to patch image names/tags by using kustomize, when an empty
initContainers
directive is provided.Error:
Error: containers path is not of type []interface{} but <nil>
Example with turned off all initContainers in values files.
Part of the statefulset
A fast workaround is to add a dummy initContainer.
What I've done in PR
Add an
{{- if or }}
statement to theinitContainers:
directive that will check if any of them is enabled.Chart version
Elasticsearch chart
elastic/elasticsearch 7.9.0
Tools versions
Helm version
Client: &version.Version{SemVer:"v2.16.10", GitCommit:"bceca24a91639f045f22ab0f41e47589a932cf5e", GitTreeState:"clean"}
kubectl version
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.0", GitCommit:"9e991415386e4cf155a24b1da15becaa390438d8", GitTreeState:"clean", BuildDate:"2020-03-25T14:58:59Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"linux/amd64"}