Skip to content

Commit

Permalink
fix: Make operator namespaced
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalezzfelipe committed Nov 7, 2024
1 parent 665ad34 commit db2a685
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bin/operator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async fn main() -> Result<()> {
let context = Arc::new(K8sContext::new(client.clone(), config));

// Create controller for MyApp custom resource
let api: Api<HydraDoomNode> = Api::all(client);
let api: Api<HydraDoomNode> = Api::default_namespaced(client);
info!("Running controller.");
let controller = Controller::new(api, Default::default())
.run(reconcile, error_policy, context.clone())
Expand Down
2 changes: 1 addition & 1 deletion src/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ impl K8sContext {
}

async fn patch_statuses(&self) -> anyhow::Result<()> {
let api: Api<HydraDoomNode> = Api::all(self.client.clone());
let api: Api<HydraDoomNode> = Api::default_namespaced(self.client.clone());
let crds = api.list(&ListParams::default()).await?;

let mut awaitables = vec![];
Expand Down

0 comments on commit db2a685

Please sign in to comment.