truecharts / public

Community Helm Chart Repository
https://truecharts.org
GNU Affero General Public License v3.0
1.13k stars 617 forks source link

Transmission template not working if TRANSMISSION_RPC_WHITELIST is set #9303

Closed tafkam closed 1 year ago

tafkam commented 1 year ago

App Name

transmission

SCALE Version

22.12.2

App Version

since 16.0.14

Application Events

[EFAULT] Failed to update chart release: Error: UPGRADE FAILED: template: transmission/templates/common.yaml:15:30: executing "transmission/templates/common.yaml" at <.Values.chartContext.podCIDR>: can't evaluate field Values in type string

Application Logs

Error: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 426, in run
    await self.future
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 461, in __run_body
    rv = await self.method(*([self] + args))
  File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1186, in nf
    res = await f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1318, in nf
    return await func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/middlewared/plugins/chart_releases_linux/chart_release.py", line 553, in do_update
    await self.middleware.call('chart.release.helm_action', chart_release, chart_path, config, 'update')
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1386, in call
    return await self._call(
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1346, in _call
    return await self.run_in_executor(prepared_call.executor, methodobj, *prepared_call.args)
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1249, in run_in_executor
    return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
  File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3/dist-packages/middlewared/plugins/chart_releases_linux/helm.py", line 44, in helm_action
    raise CallError(f'Failed to {tn_action} chart release: {stderr.decode()}')
middlewared.service_exception.CallError: [EFAULT] Failed to update chart release: Error: UPGRADE FAILED: template: transmission/templates/common.yaml:15:30: executing "transmission/templates/common.yaml" at <.Values.chartContext.podCIDR>: can't evaluate field Values in type string

Application Configuration

set the option/application environment "TRANSMISSION_RPC_WHITELIST" to any non-null value

Describe the bug

If using TRANSMISSION_RPC_WHITELIST the helm chart can't be rendered/templated due to changes in this PR https://github.com/truecharts/charts/pull/8978/files in the common.yaml template

To Reproduce

set the option/application environment "TRANSMISSION_RPC_WHITELIST" to any non-null value

Expected Behavior

according to the helm chart i would expect that TRANSMISSION_RPC_WHITELIST is rendered with my values and additionally the podCIDR

Screenshots

image

Additional Context

nope

I've read and agree with the following

tafkam commented 1 year ago

oopsies, duplicate of #9186

truecharts-admin commented 1 year ago

This issue is locked to prevent necro-posting on closed issues. Please create a new issue or contact staff on discord of the problem persists