When adding an Ingress after the newest update, you receive an error "can't evaluate field namespace in type interface()". This is after following the recommended disabling of Ingress prior to updating the app then re-enabling after.
To Reproduce
Disable Ingress
Update any app to newest chart.
Go back and re-enable Ingress
View error
Expected Behavior
Ingress to be applied accordingly.
Screenshots
N/A
Additional Context
Error: Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/middlewared/job.py", line 427, in run
await self.future
File "/usr/lib/python3/dist-packages/middlewared/job.py", line 465, in __run_body
rv = await self.method(*([self] + args))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/service/crud_service.py", line 194, in nf
rv = await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 44, in nf
res = await f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 177, in nf
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/plugins/chart_releases_linux/chart_release.py", line 559, 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 1399, in call
return await self._call(
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1353, 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 1251, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/plugins/chart_releases_linux/helm.py", line 49, in helm_action
raise CallError(f'Failed to {tn_action} App: {errmsg}')
middlewared.service_exception.CallError: [EFAULT] Failed to update App: Error: UPGRADE FAILED: template: adminer/templates/common.yaml:2:3: executing "adminer/templates/common.yaml" at <include "tc.v1.common.loader.all" .>: error calling include: template: adminer/charts/common/templates/loader/_all.tpl:6:6: executing "tc.v1.common.loader.all" at <include "tc.v1.common.loader.apply" .>: error calling include: template: adminer/charts/common/templates/loader/_apply.tpl:56:6: executing "tc.v1.common.loader.apply" at <include "tc.v1.common.spawner.ingress" .>: error calling include: template: adminer/charts/common/templates/spawner/_ingress.tpl:58:10: executing "tc.v1.common.spawner.ingress" at <include "tc.v1.common.class.ingress" (dict "rootCtx" $ "objectData" $objectData)>: error calling include: template: adminer/charts/common/templates/class/_ingress.tpl:24:6: executing "tc.v1.common.class.ingress" at <include "tc.v1.common.lib.ingress.integration.traefik" (dict "rootCtx" $rootCtx "objectData" $objectData)>: error calling include: template: adminer/charts/common/templates/lib/ingress/integrations/_traefik.tpl:57:85: executing "tc.v1.common.lib.ingress.integration.traefik" at <$mid.namespace>: can't evaluate field namespace in type interface {}
I've read and agree with the following
[X] I've checked all open and closed issues and my issue is not there.
App Name
Any
Operating System
TrueNAS SCALE 23.10.1
App Version
N/A
Application Events
Application Logs
Application Configuration
N/A
Describe the bug
When adding an Ingress after the newest update, you receive an error "can't evaluate field namespace in type interface()". This is after following the recommended disabling of Ingress prior to updating the app then re-enabling after.
To Reproduce
Expected Behavior
Ingress to be applied accordingly.
Screenshots
N/A
Additional Context
I've read and agree with the following