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? operator-sdk new for helm2 chart version with dependencies
What did you expect to see?
don't excpect operator to be created without errors
What did you see instead? Under which circumstances?
I see the error:
NFO[0000] Creating new Helm operator 'test-operator'.
Error: failed to create helm chart: failed to fetch chart dependencies: Chart.lock is out of sync with Chart.yaml
Usage:
operator-sdk new <project-name> [flags]
Are you writing your operator in ansible, helm, or go?
helm
Additional context
Helm 2 dependencies are described in requirements.yaml and lock file is requirements.lock
in Helm 3 dependencies were moved into Chart.yaml and lock file is Chart.lock
This issue only presented for helm2 charts with dependencies.
INFO[0000] Creating new Helm operator 'test-operator'.
Error: failed to create helm chart: failed to fetch chart dependencies: Chart.lock is out of sync with Chart.yaml
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
--generate-playbook Generate a playbook skeleton. (Only used for --type ansible)
--git-init Initialize the project directory as a git repository (default false)
--header-file string Path to file containing headers for generated Go files. Copied to hack/boilerplate.go.txt
--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
--repo string Project repository path for Go operators. Used as the project's Go import path. This must be set if outside of $GOPATH/src (e.g. github.com/example-inc/my-operator)
--skip-validation Do not validate the resulting project's structure and dependencies. (Only used for --type go)
--type string Type of operator to initialize (choices: "go", "ansible" or "helm") (default "go")
--vendor Use a vendor directory for dependencies
Global Flags:
--verbose Enable verbose logging
The text was updated successfully, but these errors were encountered:
depohmel
changed the title
0.16.0 requires helm chart to be helm 3
0.16.0 requires helm chart to be helm 3 chart
Apr 8, 2020
I can confirm that this issue is fixed on master (where we've bumped to v3.1.0 with the kubernetes 1.17 changes).
Unfortunately it doesn't seem like there is a Helm release that fixes it before the Kubernetes deps are bumped to 1.17, so I don't think there's a fix we can make in to backport to v0.16.1.
As a workaround, can you try using a build from master to generate the project. Your helm-operator base image in ./build/Dockerfile should still be set to v0.16.0, so if this is just an issue during generation, that should fix it.
Bug Report
What did you do?
operator-sdk new
for helm2 chart version with dependenciesWhat did you expect to see?
don't excpect operator to be created without errors
What did you see instead? Under which circumstances?
I see the error:
Environment
operator-sdk version:
```operator-sdk version: "v0.16.0", commit: "55f1446c5f472e7d8e308dcdf36d0d7fc44fc4fd", go version: "go1.13.8 linux/amd64"````
go version:
go version go1.12.9 linux/amd64
Kubernetes version information:
Client Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.0", GitCommit:"e8462b5b5dc2584fdcd18e6bcfe9f1e4d970a529", GitTreeState:"clean", BuildDate:"2019-06-19T16:40:16Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}
Kubernetes cluster kind:
N/A
Are you writing your operator in ansible, helm, or go?
helm
Additional context
Helm 2 dependencies are described in
requirements.yaml
and lock file isrequirements.lock
in Helm 3 dependencies were moved into Chart.yaml and lock file is Chart.lock
This issue only presented for helm2 charts with dependencies.
steps to reproduce:
error:
The text was updated successfully, but these errors were encountered: