Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to get k8s resulting object #492

Open
wirwolf opened this issue Nov 18, 2023 · 1 comment
Open

failed to get k8s resulting object #492

wirwolf opened this issue Nov 18, 2023 · 1 comment

Comments

@wirwolf
Copy link

wirwolf commented Nov 18, 2023

Description

Hey team. I deploy this chart for applying migration in my project. And after sometimes when I run helm-dashboard I see this error in trace

WARN[0201] Failed to get resource info for ***********-mysql-migration-34562855 stage/***********-mysql-migration-34562855: failed to get k8s object, cause: failed to get k8s resulting object, cause: jobs.batch "***********-mysql-migration-34562855" not found
 at github.com/komodorio/helm-dashboard/pkg/dashboard/objects.(*K8s).GetResource()
        /home/runner/work/helm-dashboard/helm-dashboard/pkg/dashboard/objects/kubectl.go:143
 at github.com/komodorio/helm-dashboard/pkg/dashboard/objects.(*K8s).GetResourceInfo()
        /home/runner/work/helm-dashboard/helm-dashboard/pkg/dashboard/objects/kubectl.go:150
 at github.com/komodorio/helm-dashboard/pkg/dashboard/handlers.(*HelmHandler).Resources()
        /home/runner/work/helm-dashboard/helm-dashboard/pkg/dashboard/handlers/helmHandlers.go:163
 at github.com/gin-gonic/gin.(*Context).Next()
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:174
 at github.com/komodorio/helm-dashboard/pkg/dashboard.errorHandler()
        /home/runner/work/helm-dashboard/helm-dashboard/pkg/dashboard/api.go:27
 at github.com/gin-gonic/gin.(*Context).Next()
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:174
 at github.com/komodorio/helm-dashboard/pkg/dashboard.noCache()
        /home/runner/work/helm-dashboard/helm-dashboard/pkg/dashboard/api.go:23
 at github.com/gin-gonic/gin.(*Context).Next()
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:174
 at github.com/komodorio/helm-dashboard/pkg/dashboard.contextSetter.func1()
        /home/runner/work/helm-dashboard/helm-dashboard/pkg/dashboard/api.go:59
 at github.com/gin-gonic/gin.(*Context).Next()
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:174
 at github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1()
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:102
 at github.com/gin-gonic/gin.(*Context).Next()
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:174
 at github.com/gin-gonic/gin.LoggerWithConfig.func1()
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:240
 at github.com/gin-gonic/gin.(*Context).Next()
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:174
 at github.com/gin-gonic/gin.(*Engine).handleHTTPRequest()
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:620
 at github.com/gin-gonic/gin.(*Engine).ServeHTTP()
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:576
 at net/http.serverHandler.ServeHTTP()
        /opt/hostedtoolcache/go/1.20.5/x64/src/net/http/server.go:2936
 at net/http.(*conn).serve()
        /opt/hostedtoolcache/go/1.20.5/x64/src/net/http/server.go:1995
 at runtime.goexit()
        /opt/hostedtoolcache/go/1.20.5/x64/src/runtime/asm_amd64.s:1598

Maybe reason - job deleted after ttlSecondsAfterFinished

Screenshots

No response

Additional information

No response

@undera
Copy link
Collaborator

undera commented Nov 18, 2023

So this is by design - the resource is missing and log message explains that. Probably just the message could be less "scary".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants