Skip to content

make namespace configurable #23

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

Merged
merged 1 commit into from
Nov 21, 2022
Merged

make namespace configurable #23

merged 1 commit into from
Nov 21, 2022

Conversation

MichaelClifford
Copy link
Collaborator

Updated the SDK so that the namespace is more easily configurable. However, it still defaults to the "default" namespace. Also added a function get_current_namespace that will return the name of the the namespace you are currently working in.

@MichaelClifford
Copy link
Collaborator Author

/do not merge

After some testing, it looks like this will deploy the AW into the correct namespace, but attempts to deploy the ray pods into the "default" namespace.

Needs more testing, before merging.

@MichaelClifford
Copy link
Collaborator Author

Most Recent update should be good :)

@MichaelClifford MichaelClifford force-pushed the handleNamespaces branch 2 times, most recently from be48c21 to 4e30a64 Compare November 1, 2022 14:20
@MichaelClifford
Copy link
Collaborator Author

OK, this has been tested and rebased on top the most recent commits and includes changes to configure the dashboard route to the correct namespace as well.

Copy link
Collaborator

@Maxusmusti Maxusmusti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

namespace arg with a default of "default" also has to be added to the main() function of generate_yaml.py, but otherwise lgtm!

@MichaelClifford
Copy link
Collaborator Author

thanks @Maxusmusti, changed!

Copy link
Collaborator

@Maxusmusti Maxusmusti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just one more tiny addition

env = {}

outfile = generate_appwrapper(name, min_cpu, max_cpu, min_memory, max_memory, gpu, workers, template, image, instascale, instance_types, env)
outfile = generate_appwrapper(name, min_cpu, max_cpu, min_memory, max_memory, gpu, workers, template, image, instascale, instance_types, namespace, env)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the generate_appwrapper def, you have namespace as the second argument, so it probably needs to be the second argument in this call as well

Copy link
Collaborator

@Maxusmusti Maxusmusti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, feel free to merge!

@MichaelClifford MichaelClifford merged commit 59ffc2d into main Nov 21, 2022
@Maxusmusti Maxusmusti deleted the handleNamespaces branch January 10, 2023 09:47
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

Successfully merging this pull request may close these issues.

2 participants