Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
RWDai committed May 20, 2024
1 parent 9d08267 commit 7cfc392
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/config/src/service/k8s/convert/route_k8s_conv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use k8s_gateway_api::{
};
use kube::{api::ObjectMeta, ResourceExt};
use spacegate_model::{
constants::GATEWAY_CONTROLLER_NAME,
constants::{DEFAULT_NAMESPACE, GATEWAY_CONTROLLER_NAME},
ext::k8s::{
crd::{http_spaceroute::HttpSpacerouteStatus, sg_filter::K8sSgFilterSpecTargetRef},
helper_struct::{BackendObjectRefKind, SgTargetKind},
Expand Down Expand Up @@ -402,7 +402,7 @@ impl SgBackendRefConv for SgBackendRef {
group: None,
kind: BackendObjectRefKind::Service.into(),
name: k8s_param.name,
namespace: k8s_param.namespace,
namespace: Some(k8s_param.namespace.unwrap_or(DEFAULT_NAMESPACE.to_string())),
port: self.port,
},
BackendHost::File { path } => BackendObjectReference {
Expand Down

0 comments on commit 7cfc392

Please sign in to comment.