Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/src/converters/k8s/config/gateway_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fn validate_metadata(ga: &GatewayAgent) -> Result<K8sInput, FromK8sConversionErr
"Missing namespace".to_string(),
))?;

if namespace.as_str() != "fab" {
if namespace.as_str() != "default" {
return Err(FromK8sConversionError::K8sInfra(format!(
"Invalid namespace {namespace}"
)));
Expand Down
2 changes: 1 addition & 1 deletion k8s-intf/src/bolero/crd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl TypeGenerator for LegalValue<GatewayAgent> {
metadata: ObjectMeta {
name: Some(simple_hostname(d)?),
generation: Some(d.gen_i64(Bound::Excluded(&0), Bound::Unbounded)?),
namespace: Some("fab".to_string()),
namespace: Some("default".to_string()),
..Default::default()
},
spec: d.produce::<LegalValue<GatewayAgentSpec>>()?.take(),
Expand Down
6 changes: 3 additions & 3 deletions k8s-intf/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ pub async fn watch_gateway_agent_crd(
callback: impl AsyncFn(&GatewayAgent),
) -> Result<(), WatchError> {
let client = Client::try_default().await?;
// Relevant gateway agent objects are in the "fab" namespace
let gws: Api<GatewayAgent> = Api::namespaced(client.clone(), "fab");
// Relevant gateway agent objects are in the "default" namespace
let gws: Api<GatewayAgent> = Api::namespaced(client.clone(), "default");

info!(
"Starting K8s GatewayAgent watcher. GW_API_VERSION = {}",
Expand Down Expand Up @@ -89,7 +89,7 @@ pub async fn replace_gateway_status(
status: &GatewayAgentStatus,
) -> Result<(), ReplaceStatusError> {
let client = Client::try_default().await?;
let api: Api<GatewayAgent> = Api::namespaced(client.clone(), "fab");
let api: Api<GatewayAgent> = Api::namespaced(client.clone(), "default");

for attempt_num in 0..NUM_CONFLICT_RETRIES {
let mut status_obj = api.get_status(gateway_object_name).await?;
Expand Down
2 changes: 1 addition & 1 deletion k8s-less/src/local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ pub async fn kubeless_watch_gateway_agent_crd(
Ok(crd_spec) => {
let mut crd = GatewayAgent::new(gwname, crd_spec);
crd.metadata.generation = Some(generation);
crd.metadata.namespace = Some("fab".to_string());
crd.metadata.namespace = Some("default".to_string());
generation += 1;
callback(&crd).await;
}
Expand Down
Loading