[PANIC RECOVER] cannot parse '': quantities must match the regular expression '^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$' goroutine 70 [running]:
github.com/labstack/echo/v4/middleware.RecoverWithConfig.func1.1.1()
/go/pkg/mod/github.com/labstack/echo/[email protected]/middleware/recover.go:93 +0x14e
panic({0x13bb5c0, 0xc000480e20})
/usr/local/go/src/runtime/panic.go:884 +0x212
k8s.io/apimachinery/pkg/api/resource.MustParse({0x0, 0x0})
/go/pkg/mod/k8s.io/[email protected]/pkg/api/resource/quantity.go:139 +0x1ce
github.com/Payback159/tenama/handlers.(*Container).craftNamespaceQuotaSpecification(0xc0003e7eb0, {0xc00040d4a0, 0x1e})
/build/handlers/api_namespaces.go:395 +0x70
github.com/Payback159/tenama/handlers.(*Container).CreateNamespace(0xc0003e7eb0, {0x17a9cb8, 0xc000424960})
/build/handlers/api_namespaces.go:80 +0x467
github.com/labstack/echo/v4/middleware.BasicAuthWithConfig.func1.1({0x17a9cb8, 0xc000424960})
/go/pkg/mod/github.com/labstack/echo/[email protected]/middleware/basic_auth.go:93 +0x42a
github.com/labstack/echo/v4.(*Echo).add.func1({0x17a9cb8, 0xc000424960})
/go/pkg/mod/github.com/labstack/echo/[email protected]/echo.go:536 +0x51
github.com/labstack/echo/v4/middleware.RecoverWithConfig.func1.1({0x17a9cb8, 0xc000424960})
/go/pkg/mod/github.com/labstack/echo/[email protected]/middleware/recover.go:119 +0xfe
github.com/labstack/echo/v4/middleware.LoggerWithConfig.func2.1({0x17a9cb8, 0xc000424960})
/go/pkg/mod/github.com/labstack/echo/[email protected]/middleware/logger.go:119 +0xe2
github.com/labstack/echo/v4.(*Echo).ServeHTTP(0xc0003738c0, {0x179a138?, 0xc0001aa380}, 0xc00019a300)
/go/pkg/mod/github.com/labstack/echo/[email protected]/echo.go:646 +0x3d1
net/http.serverHandler.ServeHTTP({0x178e440?}, {0x179a138, 0xc0001aa380}, 0xc00019a300)
/usr/local/go/src/net/http/server.go:2947 +0x30c
net/http.(*conn).serve(0xc000424a00, {0x179aba0, 0xc000436330})
/usr/local/go/src/net/http/server.go:1991 +0x607
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:3102 +0x4db
goroutine 1 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7f4f4682f218, 0x72)
/usr/local/go/src/runtime/netpoll.go:305 +0x89
internal/poll.(*pollDesc).wait(0xc000434200?, 0x6?, 0x0)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x32
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Accept(0xc000434200)
/usr/local/go/src/internal/poll/fd_unix.go:614 +0x234
net.(*netFD).accept(0xc000434200)
/usr/local/go/src/net/fd_unix.go:172 +0x35
net.(*TCPListener).accept(0xc0003e8690)
/usr/local/go/src/net/tcpsock_posix.go:142 +0x28
net.(*TCPListener).AcceptTCP(0xc0003e8690)
/usr/local/go/src/net/tcpsock.go:275 +0x3d
github.com/labstack/echo/v4.tcpKeepAliveListener.Accept({0x440a40?})
/go/pkg/mod/github.com/labstack/echo/[email protected]/echo.go:957 +0x1d
net/http.(*Server).Serve(0xc00042a000, {0x178f9f8, 0xc00031b520})
/usr/local/go/src/net/http/server.go:3070 +0x385
github.com/labstack/echo/v4.(*Echo).Start(0xc0003738c0, {0x157a2a4, 0x5})
/go/pkg/mod/github.com/labstack/echo/[email protected]/echo.go:663 +0xce
main.main()
/build/main.go:193 +0xb49
goroutine 20 [sleep, 1 minutes]:
time.Sleep(0x1a3185c5000)
/usr/local/go/src/runtime/time.go:195 +0x135
main.cleanupNamespaces(0xc000366a80, {0xc0003795d0, 0x6}, {0xc000379580?, 0x0?})
/build/main.go:93 +0x6b
created by main.main
/build/main.go:186 +0x9cd
goroutine 25 [IO wait]:
internal/poll.runtime_pollWait(0x7f4f4682f038, 0x72)
/usr/local/go/src/runtime/netpoll.go:305 +0x89
internal/poll.(*pollDesc).wait(0xc000198380?, 0xc000436eb1?, 0x0)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x32
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Read(0xc000198380, {0xc000436eb1, 0x1, 0x1})
/usr/local/go/src/internal/poll/fd_unix.go:167 +0x25a
net.(*netFD).Read(0xc000198380, {0xc000436eb1?, 0x0?, 0x0?})
/usr/local/go/src/net/fd_posix.go:55 +0x29
net.(*conn).Read(0xc00031a040, {0xc000436eb1?, 0x0?, 0x0?})
/usr/local/go/src/net/net.go:183 +0x45
net/http.(*connReader).backgroundRead(0xc000436ea0)
/usr/local/go/src/net/http/server.go:678 +0x3f
created by net/http.(*connReader).startBackgroundRead
/u
That Tenama creates a namespace as expected and does not set/ignore the non-existent limits or requests value.
Currently it works only if all values are set. So