-
Notifications
You must be signed in to change notification settings - Fork 66
Error: json: unknown field "env" #202
Comments
I think you're right: It is My version:
What version do you use? Also, you can try the new overlay to install it:
|
Changing instances of |
@parthmishra would you be able to give me some info/tips/pointers on how to do this? Apologies but i'm a total newbie here so not sure how/where to change these references. |
Sure, in apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
commonLabels:
kustomize.component: metadata
namespace: kubeflow
generatorOptions:
# name suffix hash is not propagated correctly to base resources
disableNameSuffixHash: true
configMapGenerator:
- name: metadata-db-parameters
# env: params.env
envs:
- params.env
secretGenerator:
- name: metadata-db-secrets
# env: secrets.env
envs:
- secrets.env
... And then I re-ran the kustomize command and it should work. |
Thanks! Unfortunately i'm now getting this error:
My
If i run
I think that might be because i installed it via these instructions but i believe that should be the latest. |
Seems like this issue is related to my new error. Googling furiously. |
You need to change envs: secrets.env to envs:
- secrets.env And repeat for The top portion is interpreted as a string and thus causing the error when it's supposed to be a list. |
Now i'm getting:
Apologies for the back and forth, hopefully might be useful for others who might run into this. |
Ah that's my bad, I forgot to say that you need to do this in the base file as well ( |
Thanks! I got a load of output so looks like it did something :) Will try work through one of the metadata pipelines to confirm. |
Although last line of output said:
But not sure if that's a non issue or not. Some other output that suggests maybe did not work:
|
okay moving to envs worked. is this just happening because i downloaded the latest available kustomize ? is there any up to date documentation about what keys to use, or are valid in regards of latest version or updates. it was rather unclear. {Version:kustomize/v3.5.4 GitCommit:3af514fa9f85430f0c1557c4a0291e62112ab026 BuildDate:2020-01-11T03:12:59Z GoOs:linux GoArch:amd64} |
Hi @parthmishra I am facing a similar issue, (#2650)
Please let me know how I should change my file.
|
Issue-Label Bot is automatically applying the labels:
Please mark this comment with 👍 or 👎 to give our bot feedback! |
/kind bug
I'm trying to install metadata onto my gcp kubeflow following the docs here.
However when i run
I get this error:
I found this issue which seems to suggest whats going on. But i have no idea how to implement a work around to get metadata install on my cluster.
It feels like might be easy enough but unfortunately i really don't know what i'm doing when it comes to kubeflow and kubernetes troubleshooting.
Has anyone else run into this?
Enviornment
The text was updated successfully, but these errors were encountered: