Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 0da66d1

Browse files
committed
chore: controller cleanup
Signed-off-by: Shane Utt <[email protected]>
1 parent d5adbf4 commit 0da66d1

File tree

4 files changed

+5
-12
lines changed

4 files changed

+5
-12
lines changed

controlplane/src/gateway_controller.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ use tracing::{debug, error, info, warn};
4646
pub async fn reconcile(gateway: Arc<Gateway>, ctx: Arc<Context>) -> Result<Action> {
4747
let start = Instant::now();
4848
let client = ctx.client.clone();
49+
4950
let name = gateway
5051
.metadata
5152
.name
@@ -222,7 +223,7 @@ pub async fn reconcile(gateway: Arc<Gateway>, ctx: Arc<Context>) -> Result<Actio
222223
pub async fn controller(ctx: Context) -> Result<()> {
223224
let gateway = Api::<Gateway>::all(ctx.client.clone());
224225
gateway
225-
.list(&ListParams::default().limit(1))
226+
.list(&ListParams::default())
226227
.await
227228
.map_err(Error::CRDNotFoundError)?;
228229

controlplane/src/gatewayclass_controller.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ use tracing::*;
3434
pub async fn reconcile(gateway_class: Arc<GatewayClass>, ctx: Arc<Context>) -> Result<Action> {
3535
let start = Instant::now();
3636
let client = ctx.client.clone();
37+
3738
let name = gateway_class
3839
.metadata
3940
.name
@@ -68,7 +69,7 @@ pub async fn reconcile(gateway_class: Arc<GatewayClass>, ctx: Arc<Context>) -> R
6869
pub async fn controller(ctx: Context) -> Result<()> {
6970
let gwc_api = Api::<GatewayClass>::all(ctx.client.clone());
7071
gwc_api
71-
.list(&ListParams::default().limit(1))
72+
.list(&ListParams::default())
7273
.await
7374
.map_err(Error::CRDNotFoundError)?;
7475

controlplane/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
16+
1617
use controlplane::*;
1718
use std::net::{IpAddr, Ipv4Addr, SocketAddr, SocketAddrV4, SocketAddrV6};
1819

controlplane/src/route_utils.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,6 @@ pub async fn is_route_managed(
5858
continue;
5959
}
6060

61-
if let Some(port) = parent_ref.port
62-
&& !gateway
63-
.spec
64-
.listeners
65-
.iter()
66-
.any(|listener| listener.port == port && listener.protocol == "TCP")
67-
{
68-
continue;
69-
}
70-
7161
return Ok(Some(gateway));
7262
}
7363

0 commit comments

Comments
 (0)