Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ aaq_controller
aaq_operator
aaq_server
tmp
_ci-configs/*
kubevirtci/_ci-configs/*
0
bin/
_out/*
Expand Down
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
goveralls \
release-description \
bazel-build-images push-images \
fossa
fossa \
bump-kubevirtci
all: build

build: aaq_controller aaq_server aaq_operator
Expand All @@ -39,10 +40,6 @@ else
DO_BAZ=eval
endif

ifeq ($(origin KUBEVIRT_RELEASE), undefined)
KUBEVIRT_RELEASE="latest_nightly"
endif

all: manifests build-images

manifests:
Expand All @@ -59,10 +56,10 @@ generate-verify: generate
./hack/check-for-binaries.sh

cluster-up:
eval "KUBEVIRT_RELEASE=${KUBEVIRT_RELEASE} ./cluster-up/up.sh"
./hack/cluster-up.sh

cluster-down:
./cluster-up/down.sh
./kubevirtci/cluster-up/down.sh

push-images:
eval "DOCKER_PREFIX=${DOCKER_PREFIX} DOCKER_TAG=${DOCKER_TAG} ./hack/build/build-docker.sh push"
Expand Down Expand Up @@ -122,3 +119,6 @@ fmt:

run: build
sudo ./aaq_controller

bump-kubevirtci:
./hack/bump-kubevirtci.sh
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,14 +224,14 @@ Deploying the AAQ controller is straightforward.

### Deploy it with our CI system

AAQ includes a self-contained development and test environment. We use Docker to build, and we provide a simple way to get a test cluster up and running on your laptop. The development tools include a version of kubectl that you can use to communicate with the cluster. A wrapper script to communicate with the cluster can be invoked using ./cluster-up/kubectl.sh.
AAQ includes a self-contained development and test environment. We use Docker to build, and we provide a simple way to get a test cluster up and running on your laptop. The development tools include a version of kubectl that you can use to communicate with the cluster. A wrapper script to communicate with the cluster can be invoked using ./kubevirtci/cluster-up/kubectl.sh.

```bash
$ mkdir $GOPATH/src/kubevirt.io && cd $GOPATH/src/kubevirt.io
$ git clone https://github.com/kubevirt/application-aware-quota && cd application-aware-quota
$ make cluster-up
$ make cluster-sync
$ ./cluster-up/kubectl.sh .....
$ ./kubevirtci/cluster-up/kubectl.sh .....
```
For development on external cluster (not provisioned by our AAQ),
check out the [external provider](cluster-sync/external/README.md).
4 changes: 2 additions & 2 deletions automation/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ elif [[ $TARGET =~ k8s-.* ]]; then
export KUBEVIRT_MEMORY_SIZE=8192
fi

if [ ! -d "cluster-up/cluster/$KUBEVIRT_PROVIDER" ]; then
if [ ! -d "kubevirtci/cluster-up/cluster/$KUBEVIRT_PROVIDER" ]; then
echo "The cluster provider $KUBEVIRT_PROVIDER does not exist"
exit 1
fi

export KUBEVIRT_NUM_NODES=2

kubectl() { cluster-up/kubectl.sh "$@"; }
kubectl() { kubevirtci/cluster-up/kubectl.sh "$@"; }

export AAQ_NAMESPACE="${AAQ_NAMESPACE:-aaq}"

Expand Down
5 changes: 3 additions & 2 deletions cluster-sync/clean.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/bin/bash -e

source ./hack/build/config.sh
source ./cluster-up/hack/common.sh
source ./cluster-up/cluster/${KUBEVIRT_PROVIDER}/provider.sh
source ./hack/config-kubevirtci.sh
source ./kubevirtci/cluster-up/hack/common.sh
source ./kubevirtci/cluster-up/cluster/${KUBEVIRT_PROVIDER}/provider.sh

echo "Cleaning up ..."

Expand Down
1 change: 0 additions & 1 deletion cluster-sync/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ function wait_aaq_crd_installed {
exit 1
fi
}

4 changes: 2 additions & 2 deletions cluster-sync/sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ echo aaq

source ./hack/build/config.sh
source ./hack/build/common.sh
source ./cluster-up/hack/common.sh
source ./cluster-up/cluster/${KUBEVIRT_PROVIDER}/provider.sh
source ./kubevirtci/cluster-up/hack/common.sh
source ./kubevirtci/cluster-up/cluster/${KUBEVIRT_PROVIDER}/provider.sh

if [ "${KUBEVIRT_PROVIDER}" = "external" ]; then
AAQ_SYNC_PROVIDER="external"
Expand Down
9 changes: 0 additions & 9 deletions cluster-up/cluster/k8s-1.30/provider.sh

This file was deleted.

225 changes: 0 additions & 225 deletions cluster-up/cluster/k8s-provider-common.sh

This file was deleted.

1 change: 0 additions & 1 deletion cluster-up/cluster/kind-1.27-vgpu/image

This file was deleted.

1 change: 0 additions & 1 deletion cluster-up/cluster/kind-1.27-vgpu/version

This file was deleted.

10 changes: 0 additions & 10 deletions cluster-up/cluster/kind-sriov/OWNERS

This file was deleted.

1 change: 0 additions & 1 deletion cluster-up/cluster/kind-sriov/image

This file was deleted.

This file was deleted.

Loading