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

[feature][WPN-270] Create and delete route for "/labs/" #25

Merged
merged 3 commits into from
Jan 29, 2025

Conversation

dragonleman
Copy link
Contributor

@dragonleman dragonleman commented Jan 27, 2025

Create and delete route for /labs/ only

"namespace": self.namespace,
"labels": {
"app": "wp-nginx",
"route": "public"
Copy link
Member

@ponsfrilus ponsfrilus Jan 27, 2025

Choose a reason for hiding this comment

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

Will all our routes be public? Asking for inside.epfl.ch.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Routes created only for "labs" -> line 698 -> so they have to be "public"

Copy link
Member

Choose a reason for hiding this comment

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

So the function's name should be create_labs_route? Maybe the "public" should be a parameter so the function is generic?

Copy link
Member

Choose a reason for hiding this comment

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

As discussed today, route will also be used at least for subdomains, so a generic function would be better.

wp-operator.py Outdated Show resolved Hide resolved
wp-operator.py Outdated
except ApiException as e:
if e.status != 404:
raise e
logging.info(f" ↳ [{self.namespace}/{self.name}] Route object {route_name} already deleted")
Copy link
Member

Choose a reason for hiding this comment

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

Route object {route_name} does not exist rather than already deleted?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same as line 376

Copy link
Member

Choose a reason for hiding this comment

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

So the line 376 should be changed too?

wp-operator.py Outdated Show resolved Hide resolved
Copy link
Member

@ponsfrilus ponsfrilus left a comment

Choose a reason for hiding this comment

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

Please see comments

@dragonleman dragonleman changed the title WPN-270: Create and Delete route WPN-270: create and delete route for "/labs/" Jan 27, 2025
Copy link
Member

@ponsfrilus ponsfrilus left a comment

Choose a reason for hiding this comment

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

Please see comments.

@dragonleman dragonleman changed the title WPN-270: create and delete route for "/labs/" [featzre][WPN-270] : create and delete route for "/labs/" Jan 29, 2025
@dragonleman dragonleman changed the title [featzre][WPN-270] : create and delete route for "/labs/" [feature][WPN-270] Create and delete route for "/labs/" Jan 29, 2025
@dragonleman dragonleman merged commit 99e00bc into main Jan 29, 2025
@dragonleman dragonleman deleted the feature/WPN-270 branch January 29, 2025 14:57
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