-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Env vs config file error when I tried to use both of them #11367
Comments
This issue is currently awaiting triage. If CAPI contributors determine this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
clusterctl uses the viper library by default
i tried adding a new line in this unit test:
and reading it later:
it works as expected, i.e. both config from file and env vars are read. the error comes from
so seems the feature gate is not read correctly. but checking from where the FG comes from in this case, it is applied as a flag value by using kustomize:
and that only works from env vars i.e. viper and config is not in the picture, i would think. are you sure adding these EXP_ vars in the clusterctl config works? |
@ksemele Can you please share at which time you ran which clusterctl commands with which content of the clusterctl.yaml file? |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
What steps did you take and what happened?
I followed this manual from capv for simple test vSphere cluster.
So I skipped
Set required environment variables:
part because of I have an existing config file here:~/.cluster-api/clusterctl.yaml
I added 2 extra envs to my env and checked that they are exist:
When I tried to apply a
cluster.yaml
file I got an validation error:What did you expect to happen?
Cluster is created.
Cluster API version
1.8.4
Kubernetes version
1.31.1
Anything else you would like to add?
I think there are some errors with envs vs configfile...
Because when I added
EXP_KUBEADM_BOOTSTRAP_FORMAT_IGNITION: true
to my existing~/.cluster-api/clusterctl.yaml
This error is gone.
I also created the task first in the capv repo, but they said that this is probably a problem in
clusterctl
: kubernetes-sigs/cluster-api-provider-vsphere#3245Label(s) to be applied
/kind bug
One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels.
The text was updated successfully, but these errors were encountered: