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

no matches for kind "ClickHouseInstallation" in version "clickhouse.altinity.com/v1" #91

Closed
3 tasks done
mands opened this issue Aug 5, 2021 · 2 comments
Closed
3 tasks done
Labels
bug Something isn't working

Comments

@mands
Copy link

mands commented Aug 5, 2021

Bug description

When trying to install on GKE/GCP, I get the following error (note, I'm a helm newbie, so this may be a simple error on my side - but I think i've followed the docs correctly). I've tried older chart versions, like 3.0.3, but still get the same error.

$  helm --kube-context analytics --namespace posthog --debug install posthog posthog/posthog --values ./posthog-values-v2.yaml --atomic --create-namespace --dry-run
install.go:173: [debug] Original chart version: ""
install.go:190: [debug] CHART PATH: /home/mands/.cache/helm/repository/posthog-3.2.0.tgz
install.go:194: [debug] WARNING: This chart or one of its subcharts contains CRDs. Rendering may fail or contain inaccuracies.
Error: unable to build kubernetes objects from release manifest: unable to recognize "": no matches for kind "ClickHouseInstallation" in version "clickhouse.altinity.com/v1"
helm.go:88: [debug] unable to recognize "": no matches for kind "ClickHouseInstallation" in version "clickhouse.altinity.com/v1"
unable to build kubernetes objects from release manifest
helm.sh/helm/v3/pkg/action.(*Install).Run
	helm.sh/helm/v3/pkg/action/install.go:265
main.runInstall
	helm.sh/helm/v3/cmd/helm/install.go:242
main.newInstallCmd.func2
	helm.sh/helm/v3/cmd/helm/install.go:120
github.com/spf13/cobra.(*Command).execute
	github.com/spf13/cobra@v1.1.3/command.go:852
github.com/spf13/cobra.(*Command).ExecuteC
	github.com/spf13/cobra@v1.1.3/command.go:960
github.com/spf13/cobra.(*Command).Execute
	github.com/spf13/cobra@v1.1.3/command.go:897
main.main
	helm.sh/helm/v3/cmd/helm/helm.go:87
runtime.main
	runtime/proc.go:225
runtime.goexit
	runtime/asm_amd64.s:1371

Values file

cloud: "gcp"
ingress:
  hostname: xyz.example.com
  gcp:
    ip_name: "posthog"
  nginx:
    enabled: false
certManager:
  enabled: false
metrics:
  enabled: false

#clickhouseOperator:
#  enabled: false
#clickhouse:
#  enabled: false
  • Uncommenting the above sections in the yaml that disable ClickHouse allow the install operation to complete, but obviously without ClickHouse

Expected behavior

  • The dry-run completes and outputs the generates k8s objects

How to reproduce

  1. Run the commands above

Environment

  • Deployment platform (gcp/aws/...): GCP
  • Chart version/commit: 3.2.0
  • Posthog version: default for chart version

Additional context

$ helm version
version.BuildInfo{Version:"v3.6.3", GitCommit:"d506314abfb5d21419df8c7e7e68012379db2354", GitTreeState:"clean", GoVersion:"go1.16.5"}

$ kubectl --context=analytics version
Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.5", GitCommit:"6b1d87acf3c8253c123756b9e61dac642678305f", GitTreeState:"archive", BuildDate:"2021-03-30T00:00:00Z", GoVersion:"go1.16", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"20+", GitVersion:"v1.20.8-gke.900", GitCommit:"28ab8501be88ea42e897ca8514d7cd0b436253d9", GitTreeState:"clean", BuildDate:"2021-06-30T09:23:36Z", GoVersion:"go1.15.13b5", Compiler:"gc", Platform:"linux/amd64"}

Thank you for your bug report – we love squashing them!

@mands mands added the bug Something isn't working label Aug 5, 2021
@tiina303
Copy link
Contributor

tiina303 commented Aug 5, 2021

hi, the dry-run likely fails because of CRDs not being downloaded (I ran into the same thing a little while ago 😅 ), you can see the message also

install.go:194: [debug] WARNING: This chart or one of its subcharts contains CRDs. Rendering may fail or contain inaccuracies.

I believe the actual install will work fine (or dry-run after you've downloaded the CRDs or installed the chart which downloads them). Please re-open the issue if that's not the case.

@tiina303 tiina303 closed this as completed Aug 5, 2021
@mands
Copy link
Author

mands commented Aug 6, 2021

Thanks for the feedback - can confirm the chart deployed fine when not in --dry-run mode!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants