Skip to content

Commit

Permalink
refactor: refactor controller with factory
Browse files Browse the repository at this point in the history
Signed-off-by: iGxnon <[email protected]>
  • Loading branch information
iGxnon committed Sep 11, 2023
1 parent a8fd402 commit a8e8eda
Show file tree
Hide file tree
Showing 16 changed files with 204 additions and 1,030 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
cargo build --release
cd build
cp ../target/release/xline-operator .
docker build . -t datenlord/xline-operator:latest -f operator.Dockerfile
docker build . -t xline-kv/xline-operator:latest -f operator.Dockerfile
- name: 'E2E CI'
env:
KIND_CLUSTER_IMAGE: kindest/node:${{ matrix.k8s }}
Expand Down
5 changes: 0 additions & 5 deletions build/xline-operator.Dockerfile

This file was deleted.

4 changes: 2 additions & 2 deletions operator-k8s/src/consts.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#![allow(unused)] // TODO remove

use std::time::Duration;

/// The default requeue duration to achieve eventual consistency
pub(crate) const DEFAULT_REQUEUE_DURATION: Duration = Duration::from_secs(600);
/// The field manager identifier of xline operator
pub(crate) const FIELD_MANAGER: &str = "xlineoperator.datenlord.io";
/// The emptyDir volume name of each pod if there is no data pvc specified
pub(crate) const DATA_EMPTY_DIR_NAME: &str = "xline-data-empty-dir";
/// The image used for cronjob to trigger backup
/// The following command line tool should be available in this image
/// 1. curl
Expand Down
2 changes: 0 additions & 2 deletions operator-k8s/src/controller/cluster/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// Controller v1alpha
mod v1alpha;
/// Controller v1alpha1
mod v1alpha1;

Expand Down
Loading

0 comments on commit a8e8eda

Please sign in to comment.