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

resource mapping not found for name: "notification-manager" #213

Open
yayuntian opened this issue Jun 30, 2023 · 1 comment
Open

resource mapping not found for name: "notification-manager" #213

yayuntian opened this issue Jun 30, 2023 · 1 comment
Assignees

Comments

@yayuntian
Copy link

yayuntian commented Jun 30, 2023

helm version
version.BuildInfo{Version:"v3.9.0", GitCommit:"7ceeda6c585217a19a1131663d8cd1f7d641b2a7", GitTreeState:"clean", GoVersion:"go1.18.2"}

notification-manager.tar v2.3.0

ERROR:

helm install notification-manager --create-namespace -n kubesphere-monitoring-system notification-manager.tar --dry-run --debug
install.go:178: [debug] Original chart version: ""
install.go:195: [debug] CHART PATH: /Users/eric/Downloads/notification/notification-manager.tar

install.go:210: [debug] WARNING: This chart or one of its subcharts contains CRDs. Rendering may fail or contain inaccuracies.
Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: resource mapping not found for name: "notification-manager" namespace: "" from "": no matches for kind "NotificationManager" in version "notification.kubesphere.io/v2beta2"
ensure CRDs are installed first
helm.go:84: [debug] resource mapping not found for name: "notification-manager" namespace: "" from "": no matches for kind "NotificationManager" in version "notification.kubesphere.io/v2beta2"
ensure CRDs are installed first
unable to build kubernetes objects from release manifest
helm.sh/helm/v3/pkg/action.(*Install).RunWithContext
	helm.sh/helm/v3/pkg/action/install.go:277
main.runInstall
	helm.sh/helm/v3/cmd/helm/install.go:264
main.newInstallCmd.func2
	helm.sh/helm/v3/cmd/helm/install.go:125
github.com/spf13/cobra.(*Command).execute
	github.com/spf13/[email protected]/command.go:856
github.com/spf13/cobra.(*Command).ExecuteC
	github.com/spf13/[email protected]/command.go:974
github.com/spf13/cobra.(*Command).Execute
	github.com/spf13/[email protected]/command.go:902
main.main
	helm.sh/helm/v3/cmd/helm/helm.go:83
runtime.main
	runtime/proc.go:250
runtime.goexit
	runtime/asm_amd64.s:1571
INSTALLATION FAILED
main.newInstallCmd.func2
	helm.sh/helm/v3/cmd/helm/install.go:127
github.com/spf13/cobra.(*Command).execute
	github.com/spf13/[email protected]/command.go:856
github.com/spf13/cobra.(*Command).ExecuteC
	github.com/spf13/[email protected]/command.go:974
github.com/spf13/cobra.(*Command).Execute
	github.com/spf13/[email protected]/command.go:902
main.main
	helm.sh/helm/v3/cmd/helm/helm.go:83
runtime.main
	runtime/proc.go:250
runtime.goexit
	runtime/asm_amd64.s:1571

@benjaminhuo

@wanjunlei
Copy link
Collaborator

The --dry-run flag will not create resources actually, so the CRD will not be created, please remove the --dry-run flag and try it again.

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