Skip to content

Commit

Permalink
test: default namespace and set image pull policy
Browse files Browse the repository at this point in the history
Ensure the namespace is always set correctly to openebs by default.
Set the image pull policy properly (wrong var was used...)

Signed-off-by: Tiago Castro <[email protected]>
  • Loading branch information
tiagolobocastro committed Jan 7, 2025
1 parent f0a4ac2 commit 723bdfd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ci/ci-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
set -e

SNAP_CLASS="$(realpath deploy/sample/lvmsnapclass.yaml)"
export OPENEBS_NAMESPACE=${OPENEBS_NAMESPACE:-openebs}

export TEST_DIR="tests"

Expand Down Expand Up @@ -72,7 +73,7 @@ sudo sed -i '/^[^#]*thin_pool_autoextend_percent/ s/= .*/= 20/' /etc/lvm/lvm.con

# Prepare env for running BDD tests
# Minikube is already running
helm install lvm-localpv ./deploy/helm/charts -n "$OPENEBS_NAMESPACE" --create-namespace --set lvmPlugin.pullPolicy=Never --set analytics.enabled=false
helm install lvm-localpv ./deploy/helm/charts -n "$OPENEBS_NAMESPACE" --create-namespace --set lvmPlugin.image.pullPolicy=Never --set analytics.enabled=false
kubectl apply -f "${SNAP_CLASS}"

dumpAgentLogs() {
Expand Down
2 changes: 1 addition & 1 deletion tests/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func init() {

OpenEBSNamespace = os.Getenv("OPENEBS_NAMESPACE")
if OpenEBSNamespace == "" {
klog.Fatalf("OPENEBS_NAMESPACE environment variable not set")
os.Setenv("OPENEBS_NAMESPACE", "openebs")
}

var err error
Expand Down

0 comments on commit 723bdfd

Please sign in to comment.