truecharts / public

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

[traefik] apiVersion Not set #1526

Closed justusschock closed 2 years ago

justusschock commented 2 years ago

SCALE version

TrueNAS-SCALE-22.02-RC.1-2

App Version 2.5.5_10.0.25

Application Events N/a (cannot install app successfully)

Application Logs N/a (cannot install app successfully)

Application Configuration

Application Name: trf2
Version: 10.0.25
:
Show Advanced Controller Settings: false
Show Expert Configuration Options: false
Image Environment:
Timezone: 'America/Los_Angeles' timezone
UMASK: 002
Show Expert Config: false
Traefik Pilot:
Enable: false
ingressClass:
Enable: true
isDefaultClass: true
Logs:
General Logs:
Log Level: Errors
Access Logs:
Enable: false
Configure Service Entrypoint:
Main Service:
Service Type: Simple
Service's Port(s) Configuration:
Main Entrypoint Configuration:
Show Advanced settings: false
Entrypoints Port: 9000
TCP Service:
Service Type: Simple
Service's Port(s) Configuration:
web Entrypoint Configuration:
Show Advanced settings: false
Entrypoints Port: 80
Redirect to: websecure
websecure Entrypoints Configuration:
Show Advanced settings: false
Entrypoints Port: 9443
metrics Service:
Service Type: Simple
Service's Port(s) Configuration:
metrics Entrypoints Configurations:
Port: 9100
Show Advanced settings: false
Enable Ingress: false
Show Expert Configuration Options: false
Show Advanced Security Settings: false
Pod Security Context:
runAsUser: 568
runAsGroup: 568
fsGroup: 568
When should we take ownership?: OnRootMismatch
Set Custom Resource Limits/Requests (Advanced): false
:
VPN:
Type: disabled
Codeserver:
enabled: false
Promtail:
enabled: false
Netshoot:
enabled: false
(Advanced) Horizontal Pod Autoscaler:
enabled: false

Describe the bug Cannot deploy traefik app with ingressClass enabled

To Reproduce

Expected behavior Deployment Works

Additional context The stacktrace is given as:

Error: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 382, in run
    await self.future
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 418, in __run_body
    rv = await self.method(*([self] + args))
  File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1131, in nf
    res = await f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1263, 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_create
    await self.middleware.call(
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1310, in call
    return await self._call(
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1278, 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 1182, 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/chart_release.py", line 674, in helm_action
    raise CallError(f'Failed to {tn_action} chart release: {stderr.decode()}')
middlewared.service_exception.CallError: [EFAULT] Failed to install chart release: Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: error validating "": error validating data: apiVersion not set
PrivatePuffin commented 2 years ago

We currently do not support ingressClass yet.

justusschock commented 2 years ago

@Ornias1993 what about removing it from the config ui then?

PrivatePuffin commented 2 years ago

@Ornias1993 what about removing it from the config ui then?

SBM/SME features like this are planned for Bluefin (aka Q4 2022/ Q1 2023).

i'm not going through the rabbit hole of adding and readding features to the GUI, because people start messing with advanced features and discover they don't work as expected yet.


We're currently under heavy project restructure to free dev time for features like this.

PrivatePuffin commented 2 years ago

Should be fixed in the release for next week.

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