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

Fix hard-coded component label for services_enabled=True #654

Merged
merged 2 commits into from Nov 10, 2022

Conversation

dolfinus
Copy link
Contributor

@dolfinus dolfinus commented Oct 22, 2022

I've set up KubeSpawner with following settings:

c.KubeSpawner.component_label = "mylabel"
c.KubeSpawner.services_enabled = True

But created services were not bound to the notebook pod because 'component' label is hard-coded in make_service function, and always have singleuser-server value.

Fixed that by moving selector build outside the make_service function.
Added tests for custom component_label value passed with different values of services_enabled.

@dolfinus dolfinus changed the title Fix services_enabled with component_label Fix hard-coded component label for services_enabled=True Oct 22, 2022
@dolfinus dolfinus force-pushed the service_component_name branch 2 times, most recently from a5a171a to 89e645c Compare October 25, 2022 07:56
@dolfinus dolfinus force-pushed the service_component_name branch 3 times, most recently from 4c6f4ab to a700718 Compare November 9, 2022 15:52
@dolfinus dolfinus marked this pull request as draft November 9, 2022 16:02
@dolfinus dolfinus force-pushed the service_component_name branch 2 times, most recently from 5df58db to c6a76bc Compare November 9, 2022 16:52
@dolfinus dolfinus marked this pull request as ready for review November 9, 2022 16:58
kubespawner/spawner.py Outdated Show resolved Hide resolved
kubespawner/spawner.py Outdated Show resolved Hide resolved
kubespawner/spawner.py Outdated Show resolved Hide resolved
@consideRatio
Copy link
Member

@dolfinus if this looks good to you, I suggest we go for a merge!

Super thankful for your thorough work and wants to do what I can manage to help you retain a momentum!!

@consideRatio
Copy link
Member

image

Rocket approval :)

@dolfinus dolfinus deleted the service_component_name branch November 10, 2022 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants