Skip to content
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

Variable Error #44

Closed
jo316it opened this issue Aug 29, 2023 · 2 comments
Closed

Variable Error #44

jo316it opened this issue Aug 29, 2023 · 2 comments

Comments

@jo316it
Copy link

jo316it commented Aug 29, 2023

Well, when I get in to the part where you have to put variables above:

export INSTANCE_ID=openedx-01
export TUTOR_ROOT=~/deployments/tutor-k8s/$INSTANCE_ID
tutor plugins enable k8s_harmony
tutor config save -i --set K8S_NAMESPACE=$INSTANCE_ID

This error occours:

Error: Missing configuration value: 'K8S_NAMESPACE' is undefined"
But if ai tip echo “$K8S_NAMESPACE” this variable exists.

Someone just saw this error?

@bradenmacdonald
Copy link
Contributor

But if ai tip echo “$K8S_NAMESPACE” this variable exists.

It sounds like you might have it set as an environment variable? But it's a tutor config variable.

I'm not sure why you're getting that error as the setting definitely exists. At the very least you can find the instance's config.yml file and change the setting manually.

Or perhaps you didn't set the $INSTANCE_ID environment variable correctly? In that case, running tutor config save -i --set K8S_NAMESPACE=$INSTANCE_ID would set the tutor K8S_NAMESPACE variable to an empty string, which could cause the error you are seeing. Type echo $INSTANCE_ID and make sure something is printed out.

@jo316it
Copy link
Author

jo316it commented Aug 29, 2023

Hi Branden, thank you to asnwer.
Grace to you I got it. I put the manualy the K8S_NAMESPACE on config.yml and now it's work fine!

@jo316it jo316it closed this as completed Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants