Skip to content

use existing kubeClient when saving helper logs#502

Merged
derekbit merged 1 commit into
rancher:masterfrom
sceneryback:feature/fix-helper-logs
Jun 10, 2025
Merged

use existing kubeClient when saving helper logs#502
derekbit merged 1 commit into
rancher:masterfrom
sceneryback:feature/fix-helper-logs

Conversation

@sceneryback

Copy link
Copy Markdown
Contributor

when saving helper logs, there is no need to create a new kubeClient. Just use the existing one in provisioner

Signed-off-by: sceneryback <afterbreeze@hotmail.com>
@sceneryback

Copy link
Copy Markdown
Contributor Author

/assign

@sceneryback

Copy link
Copy Markdown
Contributor Author

Hi @derekbit please take a look

@derekbit derekbit left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Thanks for contribution.

@derekbit
derekbit merged commit faf5257 into rancher:master Jun 10, 2025
blake-hamm added a commit to blake-hamm/bhamm-lab that referenced this pull request Jun 9, 2026
…provisioner.git to v0.0.36 (#176)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [https://github.com/rancher/local-path-provisioner.git](https://github.com/rancher/local-path-provisioner) | patch | `v0.0.31` → `v0.0.36` |

---

### Release Notes

<details>
<summary>rancher/local-path-provisioner (https://github.com/rancher/local-path-provisioner.git)</summary>

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

[Compare Source](rancher/local-path-provisioner@v0.0.35...v0.0.36)

#### Security Fixes

- Fixed [HelperPod Template Injection](GHSA-7fxv-8wr2-mfc4), a high-severity HelperPod template injection vulnerability. A user with permission to edit the `local-path-config` ConfigMap could manipulate `helperPod.yaml` and cause the provisioner to create unsafe HelperPods during PVC provisioning or cleanup operations. This release adds HelperPod template validation to reject unsafe security-sensitive fields such as privileged containers, `hostPath` volumes, and dangerous pod security settings.

#### What's Changed

- chore(ci): bump aquasecurity/trivy-action to v0.35.0 by [@&#8203;macedogm](https://github.com/macedogm) in [#&#8203;563](rancher/local-path-provisioner#563)
- chore: remove trivy-scan.yaml by [@&#8203;derekbit](https://github.com/derekbit) in [#&#8203;565](rancher/local-path-provisioner#565)
- chore: pin GH actions to commit sha by [@&#8203;c3y1huang](https://github.com/c3y1huang) in [#&#8203;564](rancher/local-path-provisioner#564)
- chore: use registry.suse.com/bci/golang by [@&#8203;derekbit](https://github.com/derekbit) in [#&#8203;566](rancher/local-path-provisioner#566)
- chore: remove dapper by [@&#8203;derekbit](https://github.com/derekbit) in [#&#8203;567](rancher/local-path-provisioner#567)
- chore: revert to golang:1.26.1-alpine image by [@&#8203;derekbit](https://github.com/derekbit) in [#&#8203;568](rancher/local-path-provisioner#568)
- chore: update to golang 1.26.2 by [@&#8203;derekbit](https://github.com/derekbit) in [#&#8203;570](rancher/local-path-provisioner#570)
- fix: update dockerfile by [@&#8203;derekbit](https://github.com/derekbit) in [#&#8203;574](rancher/local-path-provisioner#574)
- chore: pin kind, kubectl and kustomize versins by [@&#8203;derekbit](https://github.com/derekbit) in [#&#8203;575](rancher/local-path-provisioner#575)
- fix: qualify image references to avoid short-name resolution and Docker Hub rate limits by [@&#8203;bejaratommy](https://github.com/bejaratommy) in [#&#8203;573](rancher/local-path-provisioner#573)
- helm: make debug logging configurable via values by [@&#8203;bejaratommy](https://github.com/bejaratommy) in [#&#8203;572](rancher/local-path-provisioner#572)
- fix: add helper pod template validation by [@&#8203;derekbit](https://github.com/derekbit) in [#&#8203;576](rancher/local-path-provisioner#576)
- fix: relax helper pod template validation by [@&#8203;derekbit](https://github.com/derekbit) in [#&#8203;577](rancher/local-path-provisioner#577)

#### New Contributors

- [@&#8203;c3y1huang](https://github.com/c3y1huang) made their first contribution in [#&#8203;564](rancher/local-path-provisioner#564)
- [@&#8203;bejaratommy](https://github.com/bejaratommy) made their first contribution in [#&#8203;573](rancher/local-path-provisioner#573)

**Full Changelog**: <rancher/local-path-provisioner@v0.0.35...v0.0.36>

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

[Compare Source](rancher/local-path-provisioner@v0.0.34...v0.0.35)

#### What's Changed

- Add FOSSA scanning workflow by [@&#8203;macedogm](https://github.com/macedogm) in [#&#8203;551](rancher/local-path-provisioner#551)
- Build linux/ppc64le images through build on GitHub Actions by [@&#8203;kishen-v](https://github.com/kishen-v) in [#&#8203;554](rancher/local-path-provisioner#554)
- updated golang to 1.26.0 by [@&#8203;jgoodall](https://github.com/jgoodall) in [#&#8203;557](rancher/local-path-provisioner#557)
- feat: Allow custom node affinity keys by [@&#8203;ipantchev](https://github.com/ipantchev) in [#&#8203;559](rancher/local-path-provisioner#559)
- chore: update golang to 1.26.1 by [@&#8203;derekbit](https://github.com/derekbit) in [#&#8203;561](rancher/local-path-provisioner#561)
- chore(release): bump to v0.0.35 by [@&#8203;derekbit](https://github.com/derekbit) in [#&#8203;562](rancher/local-path-provisioner#562)

#### New Contributors

- [@&#8203;macedogm](https://github.com/macedogm) made their first contribution in [#&#8203;551](rancher/local-path-provisioner#551)
- [@&#8203;jgoodall](https://github.com/jgoodall) made their first contribution in [#&#8203;557](rancher/local-path-provisioner#557)
- [@&#8203;ipantchev](https://github.com/ipantchev) made their first contribution in [#&#8203;559](rancher/local-path-provisioner#559)

**Full Changelog**: <rancher/local-path-provisioner@v0.0.34...v0.0.35>

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

[Compare Source](rancher/local-path-provisioner@v0.0.33...v0.0.34)

#### What's Changed

- fix: mitigate the impact of enforcing a pathPattern prefix by [@&#8203;mantissahz](https://github.com/mantissahz) in [#&#8203;547](rancher/local-path-provisioner#547)
- fix: read allowUnsafePathPattern from storageclass annotations by [@&#8203;derekbit](https://github.com/derekbit) in [#&#8203;548](rancher/local-path-provisioner#548)
- chore(release): bump to v0.0.34 by [@&#8203;derekbit](https://github.com/derekbit) in [#&#8203;549](rancher/local-path-provisioner#549)
- feat: allow specifying additional annotations on StorageClass by [@&#8203;utkuozdemir](https://github.com/utkuozdemir) in [#&#8203;550](rancher/local-path-provisioner#550)

#### New Contributors

- [@&#8203;utkuozdemir](https://github.com/utkuozdemir) made their first contribution in [#&#8203;550](rancher/local-path-provisioner#550)

**Full Changelog**: <rancher/local-path-provisioner@v0.0.33...v0.0.34>

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

[Compare Source](rancher/local-path-provisioner@v0.0.32...v0.0.33)

#### What's Changed

- fix: don't try to clean up pvs on nodes that are gone by [@&#8203;marcusramberg](https://github.com/marcusramberg) in [#&#8203;480](rancher/local-path-provisioner#480)
- upgrade go to 1.24.6 by [@&#8203;lizzzcai](https://github.com/lizzzcai) in [#&#8203;521](rancher/local-path-provisioner#521)
- bump go 1.25 by [@&#8203;farazkhawaja](https://github.com/farazkhawaja) in [#&#8203;526](rancher/local-path-provisioner#526)
- add storageClass.allowedTopologies in helm chart by [@&#8203;lizzzcai](https://github.com/lizzzcai) in [#&#8203;522](rancher/local-path-provisioner#522)
- fix(chart): correct ServiceAccount namespace in ClusterRoleBinding by [@&#8203;J3m3](https://github.com/J3m3) in [#&#8203;528](rancher/local-path-provisioner#528)
- Add common labels to helperPod config map template by [@&#8203;michaeldvinci](https://github.com/michaeldvinci) in [#&#8203;519](rancher/local-path-provisioner#519)
- chore: update pod\_test.go by [@&#8203;derekbit](https://github.com/derekbit) in [#&#8203;531](rancher/local-path-provisioner#531)
- fix: give clusterrole update on pvc by [@&#8203;marcusramberg](https://github.com/marcusramberg) in [#&#8203;530](rancher/local-path-provisioner#530)
- Add support for s390x architecture by [@&#8203;SanyogDeshmukh](https://github.com/SanyogDeshmukh) in [#&#8203;534](rancher/local-path-provisioner#534)
- feat: add priorityClassName support for provisioner and helper pods by [@&#8203;dibaro](https://github.com/dibaro) in [#&#8203;525](rancher/local-path-provisioner#525)
- fix: prohibit the reference path in pathPattern by [@&#8203;mantissahz](https://github.com/mantissahz) in [#&#8203;542](rancher/local-path-provisioner#542)
- chore: explicitly set `hostUsers` by [@&#8203;jcpunk](https://github.com/jcpunk) in [#&#8203;541](rancher/local-path-provisioner#541)
- fix: podDisruptionBudget renders correctly in all cases by [@&#8203;jcpunk](https://github.com/jcpunk) in [#&#8203;540](rancher/local-path-provisioner#540)
- chore(release): bump to 0.0.33 by [@&#8203;derekbit](https://github.com/derekbit) in [#&#8203;543](rancher/local-path-provisioner#543)

#### New Contributors

- [@&#8203;marcusramberg](https://github.com/marcusramberg) made their first contribution in [#&#8203;480](rancher/local-path-provisioner#480)
- [@&#8203;lizzzcai](https://github.com/lizzzcai) made their first contribution in [#&#8203;521](rancher/local-path-provisioner#521)
- [@&#8203;farazkhawaja](https://github.com/farazkhawaja) made their first contribution in [#&#8203;526](rancher/local-path-provisioner#526)
- [@&#8203;J3m3](https://github.com/J3m3) made their first contribution in [#&#8203;528](rancher/local-path-provisioner#528)
- [@&#8203;michaeldvinci](https://github.com/michaeldvinci) made their first contribution in [#&#8203;519](rancher/local-path-provisioner#519)
- [@&#8203;SanyogDeshmukh](https://github.com/SanyogDeshmukh) made their first contribution in [#&#8203;534](rancher/local-path-provisioner#534)
- [@&#8203;dibaro](https://github.com/dibaro) made their first contribution in [#&#8203;525](rancher/local-path-provisioner#525)

**Full Changelog**: <rancher/local-path-provisioner@v0.0.32...v0.0.33>

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

[Compare Source](rancher/local-path-provisioner@v0.0.31...v0.0.32)

#### What's Changed

- fix: helm install command by [@&#8203;antonengelhardt](https://github.com/antonengelhardt) in [#&#8203;468](rancher/local-path-provisioner#468)
- feat: add ability to set custom namespace by [@&#8203;tzabbi](https://github.com/tzabbi) in [#&#8203;478](rancher/local-path-provisioner#478)
- fix: multiple paths is not true random (fix [#&#8203;342](rancher/local-path-provisioner#342)) by [@&#8203;tulequ](https://github.com/tulequ) in [#&#8203;496](rancher/local-path-provisioner#496)
- Build local-path-provisioner for ppc64le by [@&#8203;kishen-v](https://github.com/kishen-v) in [#&#8203;492](rancher/local-path-provisioner#492)
- build(deps): bump golang.org/x/net from 0.34.0 to 0.38.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;488](rancher/local-path-provisioner#488)
- helm: add location for setting PodDisruptionBudget by [@&#8203;jcpunk](https://github.com/jcpunk) in [#&#8203;490](rancher/local-path-provisioner#490)
- use existing kubeClient when saving helper logs by [@&#8203;sceneryback](https://github.com/sceneryback) in [#&#8203;502](rancher/local-path-provisioner#502)
- fix: do not override nodeName, if exists by [@&#8203;BohdanTkachenko](https://github.com/BohdanTkachenko) in [#&#8203;499](rancher/local-path-provisioner#499)
- Allow overriding kubeclient burst and qps settings by [@&#8203;badstreff](https://github.com/badstreff) in [#&#8203;503](rancher/local-path-provisioner#503)
- chore: typo by [@&#8203;ldicarlo](https://github.com/ldicarlo) in [#&#8203;507](rancher/local-path-provisioner#507)
- chore: update dependencies by [@&#8203;derekbit](https://github.com/derekbit) in [#&#8203;506](rancher/local-path-provisioner#506)
- Fix helper pod tolerations by [@&#8203;sbocinec](https://github.com/sbocinec) in [#&#8203;486](rancher/local-path-provisioner#486)
- Change default nodePathMap value in storageClassConfigs in values.yml to \[] by [@&#8203;Birkenstab](https://github.com/Birkenstab) in [#&#8203;510](rancher/local-path-provisioner#510)
- Helm: Add abbility to set additional tolerations to helper pod via values by [@&#8203;verdel](https://github.com/verdel) in [#&#8203;511](rancher/local-path-provisioner#511)
- OCI  based helm chart build workflow added by [@&#8203;supu2](https://github.com/supu2) in [#&#8203;501](rancher/local-path-provisioner#501)
- fix: rename workflows by [@&#8203;derekbit](https://github.com/derekbit) in [#&#8203;512](rancher/local-path-provisioner#512)
- fix: rename workflows by [@&#8203;derekbit](https://github.com/derekbit) in [#&#8203;513](rancher/local-path-provisioner#513)
- fix: fix chart tag by [@&#8203;derekbit](https://github.com/derekbit) in [#&#8203;514](rancher/local-path-provisioner#514)
- fix: fix Invalid Semantic Version by [@&#8203;derekbit](https://github.com/derekbit) in [#&#8203;515](rancher/local-path-provisioner#515)
- chore(release): bump to v0.0.32 by [@&#8203;derekbit](https://github.com/derekbit) in [#&#8203;516](rancher/local-path-provisioner#516)

#### New Contributors

- [@&#8203;antonengelhardt](https://github.com/antonengelhardt) made their first contribution in [#&#8203;468](rancher/local-path-provisioner#468)
- [@&#8203;tzabbi](https://github.com/tzabbi) made their first contribution in [#&#8203;478](rancher/local-path-provisioner#478)
- [@&#8203;tulequ](https://github.com/tulequ) made their first contribution in [#&#8203;496](rancher/local-path-provisioner#496)
- [@&#8203;kishen-v](https://github.com/kishen-v) made their first contribution in [#&#8203;492](rancher/local-path-provisioner#492)
- [@&#8203;dependabot](https://github.com/dependabot)\[bot] made their first contribution in [#&#8203;488](rancher/local-path-provisioner#488)
- [@&#8203;jcpunk](https://github.com/jcpunk) made their first contribution in [#&#8203;490](rancher/local-path-provisioner#490)
- [@&#8203;sceneryback](https://github.com/sceneryback) made their first contribution in [#&#8203;502](rancher/local-path-provisioner#502)
- [@&#8203;BohdanTkachenko](https://github.com/BohdanTkachenko) made their first contribution in [#&#8203;499](rancher/local-path-provisioner#499)
- [@&#8203;badstreff](https://github.com/badstreff) made their first contribution in [#&#8203;503](rancher/local-path-provisioner#503)
- [@&#8203;ldicarlo](https://github.com/ldicarlo) made their first contribution in [#&#8203;507](rancher/local-path-provisioner#507)
- [@&#8203;Birkenstab](https://github.com/Birkenstab) made their first contribution in [#&#8203;510](rancher/local-path-provisioner#510)
- [@&#8203;verdel](https://github.com/verdel) made their first contribution in [#&#8203;511](rancher/local-path-provisioner#511)
- [@&#8203;supu2](https://github.com/supu2) made their first contribution in [#&#8203;501](rancher/local-path-provisioner#501)

**Full Changelog**: <rancher/local-path-provisioner@v0.0.31...v0.0.32>

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- 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 [Mend Renovate](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yMTYuMiIsInVwZGF0ZWRJblZlciI6IjQzLjIxNi4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: Renovate Bot <renovate@bhamm-lab.com>
Reviewed-on: https://codeberg.org/blake-hamm/bhamm-lab/pulls/176
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