-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
206 additions
and
327 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 17 additions & 17 deletions
34
Support/Multitenancy/Multiple-Ironic-conductors/build-api-server-container-image.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
#!/bin/bash | ||
# | ||
__dir__=$(realpath $(dirname $0)) | ||
IMAGE_NAME="quay.io/metal3-io/api-server:latest" | ||
IMAGE_NAME="quay.io/metal3-io/api-server:amd64" | ||
|
||
if [[ ${1:-""} == "-f" ]]; then | ||
docker rmi "${IMAGE_NAME}" | ||
kubectl delete -f capim-modified.yaml | ||
# kubectl delete -f capim-modified.yaml || true | ||
fi | ||
|
||
if [[ $(docker images | grep ${IMAGE_NAME}) != "" ]]; then | ||
# docker push "${IMAGE_NAME}" | ||
minikube image load "${IMAGE_NAME}" | ||
docker image save -o /tmp/api-server.tar "${IMAGE_NAME}" | ||
minikube image load /tmp/api-server.tar | ||
exit 0 | ||
fi | ||
CAPI_DIR="/tmp/cluster-api" | ||
if [[ ! -d "${CAPI_DIR}" ]]; then | ||
git clone https://github.com/kubernetes-sigs/cluster-api.git "${CAPI_DIR}" | ||
cd "${CAPI_DIR}" || exit | ||
git checkout 17a5a7466dbd87db086 | ||
fi | ||
|
||
cd "${CAPI_DIR}" || exit | ||
CAPM3_DIR="/tmp/cluster-api-provider-metal3" | ||
|
||
if [[ ! -d "${CAPM3_DIR}" ]]; then | ||
git clone https://github.com/metal3-io/cluster-api-provider-metal3.git "${CAPM3_DIR}" | ||
pushd "${CAPM3_DIR}" | ||
gh pr checkout 1610 | ||
fi | ||
|
||
INMEMORY_DIR="${CAPI_DIR}/test/infrastructure/inmemory" | ||
pushd "${CAPM3_DIR}" | ||
|
||
cp "${__dir__}/main.go" "${INMEMORY_DIR}/main.go" | ||
make build-fake-api-server | ||
|
||
cd "${INMEMORY_DIR}" || exit | ||
docker image save -o /tmp/api-server.tar "${IMAGE_NAME}" | ||
minikube image load /tmp/api-server.tar | ||
|
||
docker build --build-arg=builder_image=docker.io/library/golang:1.20.8 --build-arg=goproxy=https://proxy.golang.org,direct --build-arg=ARCH=amd64 --build-arg=ldflags="-X 'sigs.k8s.io/cluster-api/version.buildDate=2023-10-10T11:47:30Z' -X 'sigs.k8s.io/cluster-api/version.gitCommit=8ba3f47b053da8bbf63cf407c930a2ee10bfd754' -X 'sigs.k8s.io/cluster-api/version.gitTreeState=dirty' -X 'sigs.k8s.io/cluster-api/version.gitMajor=1' -X 'sigs.k8s.io/cluster-api/version.gitMinor=0' -X 'sigs.k8s.io/cluster-api/version.gitVersion=v1.0.0-4041-8ba3f47b053da8-dirty' -X 'sigs.k8s.io/cluster-api/version.gitReleaseCommit=e09ed61cc9ba8bd37b0760291c833b4da744a985'" ../../.. -t "${IMAGE_NAME}" --file Dockerfile | ||
rm -f /tmp/api-server.tar | ||
|
||
# docker push "${IMAGE_NAME}" | ||
minikube image load "${IMAGE_NAME}" | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
Support/Multitenancy/Multiple-Ironic-conductors/capim-modified.yaml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.