Skip to content

Commit

Permalink
kind: provider scripts consider KUBEVIRTCI_PATH (#1284)
Browse files Browse the repository at this point in the history
The env variable is considered by the standard k8s providers, but not by
the kind providers. This change lets them consider the env var.

Signed-off-by: Daniel Hiller <[email protected]>
  • Loading branch information
dhiller authored Oct 1, 2024
1 parent d5c1f38 commit e60d15b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions cluster-up/cluster/kind-1.28/provider.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ else
fi

function set_kind_params() {
version=$(cat cluster-up/cluster/$KUBEVIRT_PROVIDER/version)
version=$(cat "${KUBEVIRTCI_PATH}/cluster/$KUBEVIRT_PROVIDER/version")
export KIND_VERSION="${KIND_VERSION:-$version}"

image=$(cat cluster-up/cluster/$KUBEVIRT_PROVIDER/image)
image=$(cat "${KUBEVIRTCI_PATH}/cluster/$KUBEVIRT_PROVIDER/image")
export KIND_NODE_IMAGE="${KIND_NODE_IMAGE:-$image}"
}

Expand Down
4 changes: 2 additions & 2 deletions cluster-up/cluster/kind-1.30-vgpu/provider.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ else
fi

function set_kind_params() {
version=$(cat cluster-up/cluster/$KUBEVIRT_PROVIDER/version)
version=$(cat "${KUBEVIRTCI_PATH}/cluster/$KUBEVIRT_PROVIDER/version")
export KIND_VERSION="${KIND_VERSION:-$version}"

image=$(cat cluster-up/cluster/$KUBEVIRT_PROVIDER/image)
image=$(cat "${KUBEVIRTCI_PATH}/cluster/$KUBEVIRT_PROVIDER/image")
export KIND_NODE_IMAGE="${KIND_NODE_IMAGE:-$image}"
}

Expand Down
2 changes: 1 addition & 1 deletion cluster-up/cluster/kind-ovn/provider.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function down() {
}

function _kubectl() {
export KUBECONFIG=$(./cluster-up/kubeconfig.sh)
export KUBECONFIG=$(${KUBEVIRTCI_PATH}/kubeconfig.sh)
kubectl "$@"
}

Expand Down
4 changes: 2 additions & 2 deletions cluster-up/cluster/kind-sriov/provider.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ function print_available_nics() {
}

function set_kind_params() {
version=$(cat cluster-up/cluster/$KUBEVIRT_PROVIDER/version)
version=$(cat "${KUBEVIRTCI_PATH}/cluster/$KUBEVIRT_PROVIDER/version")
export KIND_VERSION="${KIND_VERSION:-$version}"

image=$(cat cluster-up/cluster/$KUBEVIRT_PROVIDER/image)
image=$(cat "${KUBEVIRTCI_PATH}/cluster/$KUBEVIRT_PROVIDER/image")
export KIND_NODE_IMAGE="${KIND_NODE_IMAGE:-$image}"
}

Expand Down

0 comments on commit e60d15b

Please sign in to comment.