Skip to content

Deployment fails with "panic: interface conversion: interface {} is nil, not map[string]interface {}" #20

@johanneskastl

Description

@johanneskastl

I am currently trying to understand how to install OpenUnison using ouctl. But the deployment fails.

It might well be that I am missing information in my values.yaml file, but it would be nice to hint at the user, what that might be. I find no trace of interface anywhere...

$ ouctl install-auth-portal OpenUnison/values.yaml
Loading values from OpenUnison/values.yaml...
...loaded
Checking for the Dashboard namespace kubernetes-dashboard
Dashboard namespace kubernetes-dashboard already exists
Checking for the OpenUnison namespace openunison
OpenUnison namespace openunison already exists
panic: interface conversion: interface {} is nil, not map[string]interface {}

goroutine 1 [running]:
github.com/tremolosecurity/openunison-control/openunison.(*OpenUnisonDeployment).setupSecret(0xc0005cc3c0, 0xc00035cde0?)
        /home/runner/work/openunison-control/openunison-control/openunison/deployer.go:1168 +0xa65
github.com/tremolosecurity/openunison-control/openunison.(*OpenUnisonDeployment).DeployAuthPortal(0xc0005cc3c0)
        /home/runner/work/openunison-control/openunison-control/openunison/deployer.go:1391 +0x33a
github.com/tremolosecurity/openunison-control/cmd.glob..func2(0x3c1e000?, {0xc00059a870?, 0x1?, 0x1?})
        /home/runner/work/openunison-control/openunison-control/cmd/installAuthPortal.go:49 +0x2ea
github.com/spf13/cobra.(*Command).execute(0x3c1e000, {0xc00059a840, 0x1, 0x1})
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:920 +0x847
github.com/spf13/cobra.(*Command).ExecuteC(0x3c1dd20)
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:1044 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:968
github.com/tremolosecurity/openunison-control/cmd.Execute()
        /home/runner/work/openunison-control/openunison-control/cmd/root.go:51 +0x25
main.main()
        /home/runner/work/openunison-control/openunison-control/main.go:16 +0x8a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions