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
{{ message }}
Repository navigation
"failed: no objects visited" error when creating only secrets via helm #4670
Issue Description
I have a helm template which I am using to create secrets. I created a chart which only creates secrets for my applications. When I run the chart in --debug --dry-run mode it works fine and I do not get any error. But when I actually try to create a secret from it I get below error:
But When i run kubectl get secrets I see that my secret named test-secrets was created successfully. And when I use kubectl describe I even see the content.
Reacted by Domonkos Czinke, Ahmed Refaey, Raj Perera, Vytis Valentinavičius, Mirko Pluhar, maberny, Alex M, Reza Farrahi M, Nando Theessen, Tony Apuzzo and 35 more
changed the title [-][BUG] no objects visited error when creating secret only[/-][+][BUG] no objects visited error when creating only secrets via helm[/+]on Sep 19, 2018
changed the title [-][BUG] no objects visited error when creating only secrets via helm[/-][+][BUG] "failed: no objects visited" error when creating only secrets via helm[/+]on Sep 19, 2018
Reacted by Ahmed Refaey, Cassondra Foesch, Tony Apuzzo, sergogi, Aliaksandr Parfianiuk, Anand Dasari, Tanvir Alam, Rudolf Dobiáš, Maciek Opala, nejtr0n and 3 more
@Krishna1408 thanks for the quick response. Yeah it was failing our jenkins job until i realized it is "harmless". I just added a || true to the end for now until a fix is in.
@Krishna1408@bradleyd
I had the same issue with the error "failed: no objects visited" trying to create secrets by helm.
After removing unused annotations the deployment works with following version:
As there are not so many people raising this issue it's been neglected till now.. I hope someone sees it and take some action. I'll see if I can do anything to fix it.
Reacted by Patrice Amiel, Matt Revell, Michael Dye, Jakub Korzeniowski, myelinproj, Sarmad Ali, Alok Adhao, Yaniv Oliver, rbq, suhaschikkanna and 9 more
This is an issue for me as well. I want to deploy a job, some roles (and a few other objects_ to perform some tasks, but since there is no deployment, statefulset, etc... the helm install fails. As a work around I'm looking at having to create a deployment that does essentially nothing.
If I'm understanding the reports here, are all the resources within the chart are marked as a hook? Hooks are considered "un-managed" by tiller. If everything is marked as a hook and there are no other objects to install, that would definitely trigger this error.
I'm not sure if that would be considered a bug though given that this was an intentional design decision. What's the use case here for having a chart with only hooks but no resources?
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.
Helm 3:
Per the description I created a chart (helm create chart foo). In that chart I removed everything under templates and created a single template file:
$ helm version
version.BuildInfo{Version:"v3.7.2", GitCommit:"663a896f4a815053445eec4153677ddc24a0a361", GitTreeState:"clean", GoVersion:"go1.17.4"}
And following reproducing steps:
helm create foo
cd foo && rm -r ./templates
mkdir -p ./crds/
cat <<EOF > ./crds/test.yamlapiVersion: apiextensions.k8s.io/v1kind: CustomResourceDefinitionmetadata: # name must match the spec fields below, and be in the form: <plural>.<group> name: crontabs.stable.example.comspec: # group name to use for REST API: /apis/<group>/<version> group: stable.example.com # list of versions supported by this CustomResourceDefinition versions: - name: v1 # Each version can be enabled/disabled by Served flag. served: true # One and only one version must be marked as the storage version. storage: true schema: openAPIV3Schema: type: object properties: spec: type: object properties: cronSpec: type: string image: type: string replicas: type: integer # either Namespaced or Cluster scope: Namespaced names: # plural name to be used in the URL: /apis/<group>/<version>/<plural> plural: crontabs # singular name to be used as an alias on the CLI and for display singular: crontab # kind is normally the CamelCased singular type. Your resource manifests use this. kind: CronTab # shortNames allow shorter string to match your resource on the CLI shortNames: - ctEOF
helm install test.
Activity
[-][BUG] no objects visited error when creating secret only[/-][+][BUG] no objects visited error when creating only secrets via helm[/+][-][BUG] no objects visited error when creating only secrets via helm[/-][+][BUG] "failed: no objects visited" error when creating only secrets via helm[/+]bradleyd commentedon Oct 31, 2018
FWIW, am seeing the same with a Job instead of secrets. I am using helm
I am using hooks as well.
I have another chart that does almost the same thing but I do not get the error output like
thanks
Krishna1408 commentedon Oct 31, 2018
HI @bradleyd, this issue happens for :
It's not a big issue but it is quite annoying
bradleyd commentedon Oct 31, 2018
@Krishna1408 thanks for the quick response. Yeah it was failing our jenkins job until i realized it is "harmless". I just added a
|| trueto the end for now until a fix is in.StephGit commentedon Dec 5, 2018
@Krishna1408 @bradleyd
I had the same issue with the error "failed: no objects visited" trying to create secrets by helm.
After removing unused annotations the deployment works with following version:
Annotations removed:
helm upgrade --install ...Krishna1408 commentedon Dec 5, 2018
As there are not so many people raising this issue it's been neglected till now.. I hope someone sees it and take some action. I'll see if I can do anything to fix it.
jesseeichar commentedon Jan 1, 2019
This is an issue for me as well. I want to deploy a job, some roles (and a few other objects_ to perform some tasks, but since there is no deployment, statefulset, etc... the helm install fails. As a work around I'm looking at having to create a deployment that does essentially nothing.
Jean85 commentedon Mar 14, 2019
Can someone re-label this issue as a bug? It renders impossible to use jobs as hooks as documented here
bacongobbler commentedon Mar 14, 2019
This particular error occurs when a chart does not define any templates.
If I'm understanding the reports here, are all the resources within the chart are marked as a hook? Hooks are considered "un-managed" by tiller. If everything is marked as a hook and there are no other objects to install, that would definitely trigger this error.
I'm not sure if that would be considered a bug though given that this was an intentional design decision. What's the use case here for having a chart with only hooks but no resources?
59 remaining items
cdenneen commentedon May 27, 2021
/remove-lifecycle stale
github-actions commentedon Aug 27, 2021
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.
invidian commentedon Aug 27, 2021
Not stale
github-actions commentedon Nov 26, 2021
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.
invidian commentedon Nov 26, 2021
Not stale
joejulian commentedon Jan 13, 2022
Helm 2 is no longer supported.
Helm 3:
Per the description I created a chart (
helm create chart foo). In that chart I removed everything under templates and created a single template file:I set the chart's values.yaml as specified in the issue description:
Then install it
Is this issue still valid for helm 3?
joejulian commentedon Jan 13, 2022
Also tried with making it a hook with no error:
invidian commentedon Jan 14, 2022
With the following Helm version:
And following reproducing steps:
I no longer get any warnings or errors!
joejulian commentedon Mar 17, 2022
Thanks for confirming. I'll close this issue then.