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

feature: Add configuretion to run setup/teardown command in helper container instead of run with script #360

Conversation

name212
Copy link
Contributor

@name212 name212 commented Oct 15, 2023

This pull request added two new configuration parameters (setupCommand and teardownCommand) for config data. Also passed -a argument with action type to script/command argument.

Goals.

I need to run setup and teardown action as binary because I need to run this binary in container image without base operating system (like alpine) for security reasons. This image does not contain shell and I are forced rewrite setup and teardown script in golang and pass it to image as binary. For this I need two configuration parameter and pass argument with action to binary.

I hope that pull request will be useful for community.

@derekbit
Copy link
Member

@name212 It would be nice if add the usage in the README.md. Thank you.

@name212 name212 force-pushed the feature/add-command-path-for-setup-and-teardown branch from 049ccaa to 6f3bb64 Compare October 27, 2023 21:04
@name212 name212 force-pushed the feature/add-command-path-for-setup-and-teardown branch from 256828e to 69f3f4c Compare October 28, 2023 06:26
@name212 name212 marked this pull request as ready for review October 28, 2023 06:38
@name212
Copy link
Contributor Author

name212 commented Oct 28, 2023

@derekbit
Thank you for your response. I added information in to README file. Also I added example usage in examples/distroless directory.

Copy link
Member

@derekbit derekbit left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for your contributions.

@derekbit derekbit merged commit a4c1f74 into rancher:master Nov 18, 2023
coolguy1771 referenced this pull request in coolguy1771/home-ops Nov 22, 2023
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
|
[local-path-provisioner](https://togithub.com/rancher/local-path-provisioner)
| patch | `v0.0.24` -> `v0.0.25` |

---

### Release Notes

<details>
<summary>rancher/local-path-provisioner
(local-path-provisioner)</summary>

###
[`v0.0.25`](https://togithub.com/rancher/local-path-provisioner/releases/tag/v0.0.25):
Local Path Provisioner v0.0.25

[Compare
Source](https://togithub.com/rancher/local-path-provisioner/compare/v0.0.24...v0.0.25)

##### What's Changed

- feat - Node name annotation by
[@&#8203;osherElm](https://togithub.com/osherElm) in
[https://github.com/rancher/local-path-provisioner/pull/340](https://togithub.com/rancher/local-path-provisioner/pull/340)
- Helm: add namespace by
[@&#8203;sergelogvinov](https://togithub.com/sergelogvinov) in
[https://github.com/rancher/local-path-provisioner/pull/325](https://togithub.com/rancher/local-path-provisioner/pull/325)
- Add storageClass.volumeBindingMode value to helm chart by
[@&#8203;anisimovdk](https://togithub.com/anisimovdk) in
[https://github.com/rancher/local-path-provisioner/pull/347](https://togithub.com/rancher/local-path-provisioner/pull/347)
- Helm: add pod annotation, securityContext blocks by
[@&#8203;sergelogvinov](https://togithub.com/sergelogvinov) in
[https://github.com/rancher/local-path-provisioner/pull/321](https://togithub.com/rancher/local-path-provisioner/pull/321)
- Set default volume type of storage class from Helm chart by
[@&#8203;nltimv](https://togithub.com/nltimv) in
[https://github.com/rancher/local-path-provisioner/pull/357](https://togithub.com/rancher/local-path-provisioner/pull/357)
- Constraint default RBAC permissions by
[@&#8203;sbocinec](https://togithub.com/sbocinec) in
[https://github.com/rancher/local-path-provisioner/pull/336](https://togithub.com/rancher/local-path-provisioner/pull/336)
- Helm: add pod tolerations to the helper-pod by
[@&#8203;sergelogvinov](https://togithub.com/sergelogvinov) in
[https://github.com/rancher/local-path-provisioner/pull/322](https://togithub.com/rancher/local-path-provisioner/pull/322)
- deployment: Adapt values to be quoted when installed in templates by
[@&#8203;ardumont](https://togithub.com/ardumont) in
[https://github.com/rancher/local-path-provisioner/pull/358](https://togithub.com/rancher/local-path-provisioner/pull/358)
- Save the helper pod logs to the provisioner logs by
[@&#8203;js185692](https://togithub.com/js185692) in
[https://github.com/rancher/local-path-provisioner/pull/324](https://togithub.com/rancher/local-path-provisioner/pull/324)
- Add ReadWriteOncePod support for NodePath volumes by
[@&#8203;anothertobi](https://togithub.com/anothertobi) in
[https://github.com/rancher/local-path-provisioner/pull/331](https://togithub.com/rancher/local-path-provisioner/pull/331)
- feature: Add configuretion to run setup/teardown command in helper
container instead of run with script by
[@&#8203;name212](https://togithub.com/name212) in
[https://github.com/rancher/local-path-provisioner/pull/360](https://togithub.com/rancher/local-path-provisioner/pull/360)
- Helm: Add common labels value and update uninstall for helm 3 by
[@&#8203;kevinzwang](https://togithub.com/kevinzwang) in
[https://github.com/rancher/local-path-provisioner/pull/319](https://togithub.com/rancher/local-path-provisioner/pull/319)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy42MS40IiwidXBkYXRlZEluVmVyIjoiMzcuNjMuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: lumiere-bot <98047013+lumiere-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants