mirror of
https://github.com/kubevirt/containerized-data-importer.git
synced 2025-06-03 06:30:22 +00:00

As a developer, I would like to be able to make modifications to the CDI code and test them in my own cluster with my own storage rather than relying upon the provided CDI images. This change adds an external provider and makes some slight modifications to enable it's use. Assuming an existing kubernetes cluster with a properly configured kubectl client on your system: ```bash export KUBEVIRT_PROVIDER=external export DOCKER_REPO=quay.io/barney-rubble ``` Then running `make cluster-sync` will build the CDI Images and push them to the specified registry, generate the deployment manifests with the appropriate registry and tag, and finally deploy the CDI operator to your existing cluster. The existing workflow is unchanged, the default `make cluster-up && make cluster-sync` will work the same as it has in the past.
28 lines
1.0 KiB
Bash
Executable File
28 lines
1.0 KiB
Bash
Executable File
#Copyright 2018 The CDI Authors.
|
|
#
|
|
#Licensed under the Apache License, Version 2.0 (the "License");
|
|
#you may not use this file except in compliance with the License.
|
|
#You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
#Unless required by applicable law or agreed to in writing, software
|
|
#distributed under the License is distributed on an "AS IS" BASIS,
|
|
#WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
#See the License for the specific language governing permissions and
|
|
#limitations under the License.
|
|
|
|
CDI_DIR="$(readlink -f $(dirname $0)/../../)"
|
|
CDI_GO_PACKAGE=kubevirt.io/containerized-data-importer
|
|
BIN_DIR=${CDI_DIR}/bin
|
|
OUT_DIR=${CDI_DIR}/_out
|
|
CMD_OUT_DIR=${OUT_DIR}/cmd
|
|
TESTS_OUT_DIR=${OUT_DIR}/tests
|
|
BUILD_DIR=${CDI_DIR}/hack/build
|
|
MANIFEST_TEMPLATE_DIR=${CDI_DIR}/manifests/templates
|
|
MANIFEST_GENERATED_DIR=${CDI_DIR}/manifests/generated
|
|
SOURCE_DIRS="pkg tests tools"
|
|
APIDOCS_OUT_DIR=${OUT_DIR}/apidocs
|
|
CACHE_DIR=${OUT_DIR}/gocache
|
|
KUBEVIRT_PROVIDER=${KUBEVIRT_PROVIDER:-k8s-1.13.3}
|