Skip to content

Commit

Permalink
chore: remove OOBE removal
Browse files Browse the repository at this point in the history
  • Loading branch information
dsluijk committed Dec 11, 2022
1 parent 2538d39 commit cfa2154
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 115 deletions.
5 changes: 1 addition & 4 deletions src/resources/authentik/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ use serde_json::{json, Map};
use tokio::time::Duration;

use super::{
clusteraccount, crd, deployment, ingress, remove_oobe, secret, service, serviceaccount,
servicegroup,
clusteraccount, crd, deployment, ingress, secret, service, serviceaccount, servicegroup,
};

pub struct Controller {
Expand Down Expand Up @@ -49,15 +48,13 @@ impl Controller {
serviceaccount::reconcile(&obj, self.client.clone()).await?;
servicegroup::reconcile(&obj, self.client.clone()).await?;
secret::reconcile(&obj, self.client.clone()).await?;
remove_oobe::reconcile(&obj, self.client.clone()).await?;

info!("Reconcilidation of Authentik finished successfully, re-queued for 30 minutes.");
Ok(Action::requeue(Duration::from_secs(30 * 60)))
}

pub async fn cleanup(&self, obj: Arc<crd::Authentik>) -> Result<Action> {
// Cleanup all parts.
remove_oobe::cleanup(obj.as_ref(), self.client.clone()).await?;
secret::cleanup(obj.as_ref(), self.client.clone()).await?;
servicegroup::cleanup(obj.as_ref(), self.client.clone()).await?;
serviceaccount::cleanup(obj.as_ref(), self.client.clone()).await?;
Expand Down
1 change: 0 additions & 1 deletion src/resources/authentik/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ pub mod labels;
mod clusteraccount;
mod deployment;
mod ingress;
mod remove_oobe;
mod secret;
mod service;
mod serviceaccount;
Expand Down
110 changes: 0 additions & 110 deletions src/resources/authentik/remove_oobe.rs

This file was deleted.

0 comments on commit cfa2154

Please sign in to comment.