You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What did you do?
I was trying to generate a new operator using the operator-sdk new command: operator-sdk new simple-operator --helm-chart=ps-helm/simple-chart --api-version=ps.net/v1alpha1 --kind=Simple --type=helm
What did you expect to see?
A successful project creation.
$ operator-sdk new jedi-operator --helm-chart=/tmp/simple-without --api-version=ps.net/v1alpha1 --kind=Simple --type=helm
INFO[0000] Creating new Helm operator 'simple-operator'.
INFO[0000] Created helm-charts/jedi-core/
INFO[0000] Created build/Dockerfile
INFO[0000] Created watches.yaml
INFO[0000] Created deploy/service_account.yaml
INFO[0000] Created deploy/role.yaml
INFO[0000] Created deploy/role_binding.yaml
INFO[0000] Created deploy/operator.yaml
INFO[0000] Created deploy/crds/ps_v1alpha1_jedi_crd.yaml
INFO[0000] Created deploy/crds/ps_v1alpha1_jedi_cr.yaml
INFO[0000] Run git init ...
Initialized empty Git repository in ./simple-operator/.git/
INFO[0000] Run git init done
INFO[0000] Project creation complete.
What did you see instead? Under which circumstances?
INFO[0000] Creating new Helm operator 'simple-operator'.
Error: failed to create helm chart: open simple-operator/helm-charts/simple-chat/templates/mongo/deployment.yaml: no such file or directory
Usage:
operator-sdk new <project-name> [flags]
Flags:
--api-version string Kubernetes apiVersion and has a format of $GROUP_NAME/$VERSION (e.g app.example.com/v1alpha1) - used with "ansible" or "helm" types
--cluster-scoped Generate cluster-scoped resources instead of namespace-scoped
--generate-playbook Generate a playbook skeleton. (Only used for --type ansible)
--helm-chart string Initialize helm operator with existing helm chart (<URL>, <repo>/<name>, or local path)
--helm-chart-repo string Chart repository URL for the requested helm chart
--helm-chart-version string Specific version of the helm chart (default is latest version)
-h, --help help for new
--kind string Kubernetes CustomResourceDefintion kind. (e.g AppService) - used with "ansible" or "helm" types
--skip-git-init Do not init the directory as a git repository
--type string Type of operator to initialize (choices: "go", "ansible" or "helm") (default "go")
Bug Report
What did you do?
I was trying to generate a new operator using the operator-sdk new command:
operator-sdk new simple-operator --helm-chart=ps-helm/simple-chart --api-version=ps.net/v1alpha1 --kind=Simple --type=helm
What did you expect to see?
A successful project creation.
What did you see instead? Under which circumstances?
Environment
operator-sdk version:
6d26d94
kubernetes version output
helm
Additional context

The simple-chart that I was using had sub directories under the template directory:
The text was updated successfully, but these errors were encountered: