oracle / mysql-operator

Create, operate and scale self-healing MySQL clusters in Kubernetes
870 stars 235 forks source link

mysql-operator failed when installing to kubernetes 1.16.x #307

Open kktam opened 4 years ago

kktam commented 4 years ago

Is this a BUG REPORT or FEATURE REQUEST?

BUG REPORT

When installing mysql-operator into Kubernetes 1.16 using helm, (following instructions from https://github.com/oracle/mysql-operator/blob/master/docs/tutorial.md) the installation failed with following error

helm install mysql-operator mysql-operator --debug
install.go:148: [debug] Original chart version: ""
install.go:165: [debug] CHART PATH: C:\Users\abc\code\digitalocean\mysql\mysql-operator\mysql-operator

Error: unable to build kubernetes objects from release manifest: unable to recognize "": no matches for kind "Deployment" in version "apps/v1beta1"
helm.go:76: [debug] unable to recognize "": no matches for kind "Deployment" in version "apps/v1beta1"
unable to build kubernetes objects from release manifest
helm.sh/helm/v3/pkg/action.(*Install).Run
        /home/circleci/helm.sh/helm/pkg/action/install.go:231
main.runInstall
        /home/circleci/helm.sh/helm/cmd/helm/install.go:209
main.newInstallCmd.func1
        /home/circleci/helm.sh/helm/cmd/helm/install.go:115
github.com/spf13/cobra.(*Command).execute
        /go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:826
github.com/spf13/cobra.(*Command).ExecuteC
        /go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914
github.com/spf13/cobra.(*Command).Execute
        /go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864
main.main
        /home/circleci/helm.sh/helm/cmd/helm/helm.go:75
runtime.main
        /usr/local/go/src/runtime/proc.go:203
runtime.goexit
        /usr/local/go/src/runtime/asm_amd64.s:1357

Versions

MySQL Operator Version: based on github master branch, commit 9aebcc3 on May 15, 2019

Environment:

What happened?

Helm install resulted in an error.

What you expected to happen?

Helm install chart into Kubernetes cluster.

How to reproduce it (as minimally and precisely as possible)?

Follow https://github.com/oracle/mysql-operator/blob/master/docs/tutorial.md

Anything else we need to know?

kktam commented 4 years ago

Wondering if this is related to following 2 bugs

https://github.com/helm/helm/issues/7073 and https://github.com/oracle/mysql-operator/issues/304

GLYASAI commented 4 years ago

I have the same problem, so I modified the code, you can refer to this PR #308

aesirteam commented 4 years ago

kube-apiserver add args: --runtime-config=api/all=true

try agian

JannikZed commented 4 years ago

facing the same issue.. when will PR #308 be merged?