Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add image.entrypoint value to support custom entrypoints like dumb-init - #413

Merged
cognifloyd merged 7 commits into
masterfrom
dumb-init
Apr 12, 2024
Merged

cognifloyd merged 7 commits into
masterfrom
dumb-init

Conversation

@cognifloyd

@cognifloyd cognifloyd commented Apr 11, 2024

Copy link
Copy Markdown
Member

My actionrunner pods have exhausted the pid space due to zombie processes. So, we need something to cleanup those zombies. dumb-init does that. See:

Installing dumb-init, pid1, or some other entrypoint app requires installing it in the docker image (ie we have to update the docker images). But, the chart also needs to support the older images that don't include it. So, hard-coding the entry-point is not an option. Once we update the docker images to install an init process, we can update the default value in the chart to include that init process, but still allow people using an older image to set that value to [] and still use the chart.

Also, we would still need to include the init command in the chart somehow (not just in the docker image's ENTRYPOINT) because the chart overwrites the command baked into the images to pass additional config files. So, making this a value seems to be a good path forward.

@cognifloyd cognifloyd added bug Something isn't working Docker labels Apr 11, 2024
@cognifloyd cognifloyd self-assigned this Apr 11, 2024
@pull-request-size pull-request-size Bot added the size/S PR that changes 10-29 lines. Very easy to review. label Apr 11, 2024
Comment thread templates/_helpers.tpl Outdated
@cognifloyd cognifloyd changed the title add dumb-init entrypoint Add image.entrypoint value to support custom image entrypoints like dumb-init Apr 11, 2024
@cognifloyd cognifloyd changed the title Add image.entrypoint value to support custom image entrypoints like dumb-init Add image.entrypoint value to support custom entrypoints like dumb-init Apr 11, 2024
Comment thread templates/_helpers.tpl

{{- define "stackstorm-ha.st2-entrypoint" -}}
{{- range $.Values.image.entrypoint }}
- {{ toYaml . }}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The point of toYaml is to quote the string if needed.

@pull-request-size pull-request-size Bot added size/L PR that changes 100-499 lines. Requires some effort to review. and removed size/S PR that changes 10-29 lines. Very easy to review. labels Apr 11, 2024
@cognifloyd
cognifloyd marked this pull request as ready for review April 11, 2024 19:45
@cognifloyd
cognifloyd requested a review from a team April 11, 2024 19:45
@cognifloyd cognifloyd added the RFR label Apr 11, 2024
@cognifloyd cognifloyd added this to the v1.1.0 milestone Apr 11, 2024
@cognifloyd
cognifloyd enabled auto-merge (squash) April 12, 2024 13:05
@cognifloyd
cognifloyd merged commit 209af8b into master Apr 12, 2024
@cognifloyd
cognifloyd deleted the dumb-init branch April 12, 2024 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Docker RFR size/L PR that changes 100-499 lines. Requires some effort to review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants