-
Notifications
You must be signed in to change notification settings - Fork 39
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
Remove IngressRouteTCP
and IngressRoute
for Stopped Instances
#1067
Conversation
Signed-off-by: Ian Stanton <ian@tembo.io>
Signed-off-by: Ian Stanton <ian@tembo.io>
Signed-off-by: Ian Stanton <ian@tembo.io>
Signed-off-by: Ian Stanton <ian@tembo.io>
Signed-off-by: Ian Stanton <ian@tembo.io>
@@ -196,7 +197,48 @@ async fn apply_ingress_route_tcp( | |||
Ok(()) | |||
} | |||
|
|||
async fn delete_ingress_route_tcp( | |||
pub async fn delete_ingress_route( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be DRY'd up with the function below
namespace, | ||
cdb_name, | ||
resources.items.len(), | ||
std::any::type_name::<R>(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Include resource type so we can see what resource we're looking for.
@@ -697,6 +697,7 @@ mod test { | |||
client: Client, | |||
cdb_name: &str, | |||
namespace: &str, | |||
list_params: &ListParams, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pass in ListParams
for flexibility
|
||
#[tokio::test] | ||
#[ignore] | ||
async fn functional_test_hibernate_with_app_service() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New test for hibernate + app service
IngressRouteTCP
for Stopped Instances #1058, which removesIngressRouteTCP
resources for stopped instances.IngressRoute
resources for stopped instances. When these are left in place,traefik
logs the following error:list_params
parameter tolist_resources
for flexibility when listing resources in tests.