adding the ability to override the image completely #534

Closed
dgershman wants to merge 3 commits from dgershman/helm-chart:feature/image-override into main
First-time contributor

Description of the change

This gives the ability for someone to override the entire image as the image is bound tightly to the image.rootless value.

Benefits

Flexibility to use images that might us a different naming convention.

Possible drawbacks

N/A

Applicable issues

Additional information

⚠ BREAKING

No breaking changes.

Checklist

  • Parameters are documented in the values.yaml and added to the README.md using readme-generator-for-helm
  • Breaking changes are documented in the README.md
  • Templating unittests are added
<!-- Before you open the request please review the following guidelines and tips to help it be more easily integrated: - Describe the scope of your change - i.e. what the change does. - Describe any known limitations with your change. - Please run any tests or examples that can exercise your modified code. Thank you for contributing! We will try to review, test and integrate the change as soon as we can. --> ### Description of the change This gives the ability for someone to override the entire image as the image is bound tightly to the `image.rootless` value. ### Benefits Flexibility to use images that might us a different naming convention. ### Possible drawbacks N/A ### Applicable issues <!-- Enter any applicable Issues here (You can reference an issue using #). Please remove this section if there is no referenced issue. --> - fixes #532 ### Additional information <!-- If there's anything else that's important and relevant to your pull request, mention that information here. Please remove this section if it remains empty. --> ### ⚠ BREAKING <!-- If there's a breaking change, please shortly describe in which way users are affected and how they can mitigate it. If there are no breakings, please remove this section. --> No breaking changes. ### Checklist <!-- [Place an '[X]' (no spaces) in all applicable fields. Please remove unrelated fields.] --> - [x] Parameters are documented in the `values.yaml` and added to the `README.md` using [readme-generator-for-helm](https://github.com/bitnami-labs/readme-generator-for-helm) - [x] Breaking changes are documented in the `README.md` - [ ] Templating unittests are added
dgershman added 2 commits 2023-10-12 00:26:26 +00:00
changing variable name
Some checks failed
check-and-test / check-and-test (pull_request) Failing after 21s
75ee965c70
justusbunsi requested changes 2023-10-12 04:20:12 +00:00
justusbunsi left a comment
Member

Thanks for opening the PR. Please have a closer look at https://gitea.com/gitea/helm-chart/src/branch/main/unittests/deployment/image-configuration.yaml and add tests for the new option.

Thanks for opening the PR. Please have a closer look at https://gitea.com/gitea/helm-chart/src/branch/main/unittests/deployment/image-configuration.yaml and add tests for the new option.
Member

I think

{{- $rootless := ternary "-rootless" "" (.Values.image.rootless) -}}
must be escaped if fullOverride is defined as it auto-appends -rootless to the image name if .Values.image.rootless = true.

.Values.image.rootless needs to stay as parts of the template are conditioned on it to start a custom SSH server (which is also required for custom images then).

Overall, the whole task might be trickier than it initially seems - but certainly doable :) And yes, probably requires quite some tests.

I think https://gitea.com/gitea/helm-chart/src/commit/75ee965c7083283a25e648c3651c4921c9d2332d/templates/_helpers.tpl#L64 must be escaped if `fullOverride` is defined as it auto-appends `-rootless` to the image name if `.Values.image.rootless = true`. `.Values.image.rootless` needs to stay as parts of the template are conditioned on it to start a custom SSH server (which is also required for custom images then). Overall, the whole task might be trickier than it initially seems - but certainly doable :) And yes, probably requires quite some tests.
pat-s added the
kind
enhancement
priority
medium
status
wip
labels 2023-10-12 09:01:38 +00:00
justusbunsi added 1 commit 2023-10-13 16:09:19 +00:00
Merge branch 'main' into feature/image-override
All checks were successful
check-and-test / check-and-test (pull_request) Successful in 25s
556c7d1257

thanks for the PR. Closing this one in favor of #550

thanks for the PR. Closing this one in favor of #550
techknowlogick closed this pull request 2023-11-08 15:45:36 +00:00
All checks were successful
check-and-test / check-and-test (pull_request) Successful in 25s
Required
Details

Pull request closed

Sign in to join this conversation.
No description provided.