-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement rudimentary version of ORI & controllers (#524)
ORI is the `onmetal-runtime-interface`, a protobuf-based interface for creating any `MachinePool` provider implementation. The `ori` api defines the types and operations expected, the `machinepoollet/controllers` tries to create a basic controller that, using the `ori` interface, can reconcile `Machine`s for an `ori` implementation.
- Loading branch information
Showing
24 changed files
with
16,502 additions
and
216 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" | ||
REPO_ROOT="$SCRIPT_DIR/.." | ||
CODEGEN_PKG="${CODEGEN_PKG:-"$( (go mod download > /dev/null 2>&1) && go list -m -f '{{.Dir}}' k8s.io/code-generator)"}" | ||
|
||
VGOPATH="$(mktemp -d)" | ||
#trap 'rm -rf "$VGOPATH"' EXIT | ||
|
||
# Setup virtual GOPATH so the codegen tools work as expected. | ||
( | ||
cd "$REPO_ROOT" | ||
go run github.com/onmetal/vgopath "$VGOPATH" | ||
) | ||
|
||
export GOPATH="$VGOPATH" | ||
export GO111MODULE=off | ||
|
||
( | ||
cd "$REPO_ROOT" | ||
protoc \ | ||
--proto_path ./ori/apis/runtime/v1alpha1 \ | ||
--proto_path "$VGOPATH/src" \ | ||
--gogo_out=plugins=grpc:"$REPO_ROOT" \ | ||
./ori/apis/runtime/v1alpha1/api.proto | ||
) |
Oops, something went wrong.