Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernauer committed Sep 29, 2023
1 parent f367ac4 commit 1b375b4
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/operator-binary/src/operations/pdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub enum Error {

pub async fn add_pdbs(
pdb: &PdbConfig,
zookeeper: &HbaseCluster,
hbase: &HbaseCluster,
role: &HbaseRole,
client: &Client,
cluster_resources: &mut ClusterResources,
Expand All @@ -37,7 +37,7 @@ pub async fn add_pdbs(
HbaseRole::RestServer => max_unavailable_rest_servers(),
});
let pdb = PodDisruptionBudgetBuilder::new_with_role(
zookeeper,
hbase,
APP_NAME,
&role.to_string(),
OPERATOR_NAME,
Expand Down
27 changes: 27 additions & 0 deletions tests/templates/kuttl/smoke/30-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,30 @@ metadata:
status:
readyReplicas: 1
replicas: 1
---
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: test-hbase-master
status:
expectedPods: 1
currentHealthy: 1
disruptionsAllowed: 1
---
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: test-hbase-regionserver
status:
expectedPods: 1
currentHealthy: 1
disruptionsAllowed: 1
---
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: test-hbase-restserver
status:
expectedPods: 1
currentHealthy: 1
disruptionsAllowed: 1

0 comments on commit 1b375b4

Please sign in to comment.