cleanup
This commit is contained in:
parent
979bec7d91
commit
97ffb6a6de
6 changed files with 7 additions and 266 deletions
7
.gitignore
vendored
7
.gitignore
vendored
|
|
@ -3,3 +3,10 @@ release/
|
||||||
build/
|
build/
|
||||||
edge-provider
|
edge-provider
|
||||||
garm-provider-edge-connect
|
garm-provider-edge-connect
|
||||||
|
|
||||||
|
.DS_Store
|
||||||
|
.envrc
|
||||||
|
devbox.json
|
||||||
|
devbox.lock
|
||||||
|
|
||||||
|
kubeconfig.yaml
|
||||||
|
|
|
||||||
|
|
@ -1,74 +0,0 @@
|
||||||
{
|
|
||||||
"name": "garm-ny9HeeQYw2rl",
|
|
||||||
"tools": [
|
|
||||||
{
|
|
||||||
"os": "osx",
|
|
||||||
"architecture": "x64",
|
|
||||||
"download_url": "https://github.com/actions/runner/releases/download/v2.299.1/actions-runner-osx-x64-2.299.1.tar.gz",
|
|
||||||
"filename": "actions-runner-osx-x64-2.299.1.tar.gz",
|
|
||||||
"sha256_checksum": "b0128120f2bc48e5f24df513d77d1457ae845a692f60acf3feba63b8d01a8fdc"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"os": "linux",
|
|
||||||
"architecture": "x64",
|
|
||||||
"download_url": "https://github.com/actions/runner/releases/download/v2.299.1/actions-runner-linux-x64-2.299.1.tar.gz",
|
|
||||||
"filename": "actions-runner-linux-x64-2.299.1.tar.gz",
|
|
||||||
"sha256_checksum": "147c14700c6cb997421b9a239c012197f11ea9854cd901ee88ead6fe73a72c74"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"os": "win",
|
|
||||||
"architecture": "x64",
|
|
||||||
"download_url": "https://github.com/actions/runner/releases/download/v2.299.1/actions-runner-win-x64-2.299.1.zip",
|
|
||||||
"filename": "actions-runner-win-x64-2.299.1.zip",
|
|
||||||
"sha256_checksum": "f7940b16451d6352c38066005f3ee6688b53971fcc20e4726c7907b32bfdf539"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"os": "linux",
|
|
||||||
"architecture": "arm",
|
|
||||||
"download_url": "https://github.com/actions/runner/releases/download/v2.299.1/actions-runner-linux-arm-2.299.1.tar.gz",
|
|
||||||
"filename": "actions-runner-linux-arm-2.299.1.tar.gz",
|
|
||||||
"sha256_checksum": "a4d66a766ff3b9e07e3e068a1d88b04e51c27c9b94ae961717e0a5f9ada998e6"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"os": "linux",
|
|
||||||
"architecture": "arm64",
|
|
||||||
"download_url": "https://github.com/actions/runner/releases/download/v2.299.1/actions-runner-linux-arm64-2.299.1.tar.gz",
|
|
||||||
"filename": "actions-runner-linux-arm64-2.299.1.tar.gz",
|
|
||||||
"sha256_checksum": "debe1cc9656963000a4fbdbb004f475ace5b84360ace2f7a191c1ccca6a16c00"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"os": "osx",
|
|
||||||
"architecture": "arm64",
|
|
||||||
"download_url": "https://github.com/actions/runner/releases/download/v2.299.1/actions-runner-osx-arm64-2.299.1.tar.gz",
|
|
||||||
"filename": "actions-runner-osx-arm64-2.299.1.tar.gz",
|
|
||||||
"sha256_checksum": "f73849b9a78459d2e08b9d3d2f60464a55920de120e228b0645b01abe68d9072"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"os": "win",
|
|
||||||
"architecture": "arm64",
|
|
||||||
"download_url": "https://github.com/actions/runner/releases/download/v2.299.1/actions-runner-win-arm64-2.299.1.zip",
|
|
||||||
"filename": "actions-runner-win-arm64-2.299.1.zip",
|
|
||||||
"sha256_checksum": "d1a9d8209f03589c8dc05ee17ae8d194756377773a4010683348cdd6eefa2da7"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"repo_url": "https://github.com/gabriel-samfira/scripts",
|
|
||||||
"callback-url": "https://garm.example.com/api/v1/callbacks",
|
|
||||||
"metadata-url": "https://garm.example.com/api/v1/metadata",
|
|
||||||
"instance-token": "super secret JWT token",
|
|
||||||
"extra_specs": {
|
|
||||||
"my_custom_config": "some_value"
|
|
||||||
},
|
|
||||||
"ca-cert-bundle": null,
|
|
||||||
"github-runner-group": "my_group",
|
|
||||||
"os_type": "linux",
|
|
||||||
"arch": "amd64",
|
|
||||||
"flavor": "m1.small",
|
|
||||||
"image": "8ed8a690-69b6-49eb-982f-dcb466895e2d",
|
|
||||||
"labels": [
|
|
||||||
"ubuntu",
|
|
||||||
"openstack",
|
|
||||||
"runner-controller-id:f9286791-1589-4f39-a106-5b68c2a18af4",
|
|
||||||
"runner-pool-id:9dcf590a-1192-4a9c-b3e4-e0902974c2c0"
|
|
||||||
],
|
|
||||||
"pool_id": "9dcf590a"
|
|
||||||
}
|
|
||||||
84
test.sh
84
test.sh
|
|
@ -1,84 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
export GARM_COMMAND="CreateInstance"
|
|
||||||
export GARM_CONTROLLER_ID="50cb196d"
|
|
||||||
export GARM_INTERFACE_VERSION="v0.1.0"
|
|
||||||
export GARM_POOL_ID="50fa68a5"
|
|
||||||
export GARM_PROVIDER_CONFIG_FILE="/home/chris/ipcei/projects/garm-provider-edge-connect/config/config.toml"
|
|
||||||
|
|
||||||
cat <<EOF | go run main.go
|
|
||||||
{
|
|
||||||
"name": "garm-ny9HeeQYw2rl",
|
|
||||||
"tools": [
|
|
||||||
{
|
|
||||||
"os": "osx",
|
|
||||||
"architecture": "x64",
|
|
||||||
"download_url": "https://github.com/actions/runner/releases/download/v2.299.1/actions-runner-osx-x64-2.299.1.tar.gz",
|
|
||||||
"filename": "actions-runner-osx-x64-2.299.1.tar.gz",
|
|
||||||
"sha256_checksum": "b0128120f2bc48e5f24df513d77d1457ae845a692f60acf3feba63b8d01a8fdc"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"os": "linux",
|
|
||||||
"architecture": "x64",
|
|
||||||
"download_url": "https://github.com/actions/runner/releases/download/v2.299.1/actions-runner-linux-x64-2.299.1.tar.gz",
|
|
||||||
"filename": "actions-runner-linux-x64-2.299.1.tar.gz",
|
|
||||||
"sha256_checksum": "147c14700c6cb997421b9a239c012197f11ea9854cd901ee88ead6fe73a72c74"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"os": "win",
|
|
||||||
"architecture": "x64",
|
|
||||||
"download_url": "https://github.com/actions/runner/releases/download/v2.299.1/actions-runner-win-x64-2.299.1.zip",
|
|
||||||
"filename": "actions-runner-win-x64-2.299.1.zip",
|
|
||||||
"sha256_checksum": "f7940b16451d6352c38066005f3ee6688b53971fcc20e4726c7907b32bfdf539"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"os": "linux",
|
|
||||||
"architecture": "arm",
|
|
||||||
"download_url": "https://github.com/actions/runner/releases/download/v2.299.1/actions-runner-linux-arm-2.299.1.tar.gz",
|
|
||||||
"filename": "actions-runner-linux-arm-2.299.1.tar.gz",
|
|
||||||
"sha256_checksum": "a4d66a766ff3b9e07e3e068a1d88b04e51c27c9b94ae961717e0a5f9ada998e6"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"os": "linux",
|
|
||||||
"architecture": "arm64",
|
|
||||||
"download_url": "https://github.com/actions/runner/releases/download/v2.299.1/actions-runner-linux-arm64-2.299.1.tar.gz",
|
|
||||||
"filename": "actions-runner-linux-arm64-2.299.1.tar.gz",
|
|
||||||
"sha256_checksum": "debe1cc9656963000a4fbdbb004f475ace5b84360ace2f7a191c1ccca6a16c00"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"os": "osx",
|
|
||||||
"architecture": "arm64",
|
|
||||||
"download_url": "https://github.com/actions/runner/releases/download/v2.299.1/actions-runner-osx-arm64-2.299.1.tar.gz",
|
|
||||||
"filename": "actions-runner-osx-arm64-2.299.1.tar.gz",
|
|
||||||
"sha256_checksum": "f73849b9a78459d2e08b9d3d2f60464a55920de120e228b0645b01abe68d9072"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"os": "win",
|
|
||||||
"architecture": "arm64",
|
|
||||||
"download_url": "https://github.com/actions/runner/releases/download/v2.299.1/actions-runner-win-arm64-2.299.1.zip",
|
|
||||||
"filename": "actions-runner-win-arm64-2.299.1.zip",
|
|
||||||
"sha256_checksum": "d1a9d8209f03589c8dc05ee17ae8d194756377773a4010683348cdd6eefa2da7"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"repo_url": "https://github.com/gabriel-samfira/scripts",
|
|
||||||
"callback-url": "https://garm.example.com/api/v1/callbacks",
|
|
||||||
"metadata-url": "https://garm.example.com/api/v1/metadata",
|
|
||||||
"instance-token": "super secret JWT token",
|
|
||||||
"extra_specs": {
|
|
||||||
"my_custom_config": "some_value"
|
|
||||||
},
|
|
||||||
"ca-cert-bundle": null,
|
|
||||||
"github-runner-group": "my_group",
|
|
||||||
"os_type": "linux",
|
|
||||||
"arch": "amd64",
|
|
||||||
"flavor": "m1.small",
|
|
||||||
"image": "8ed8a690-69b6-49eb-982f-dcb466895e2d",
|
|
||||||
"labels": [
|
|
||||||
"ubuntu",
|
|
||||||
"openstack",
|
|
||||||
"runner-controller-id:f9286791-1589-4f39-a106-5b68c2a18af4",
|
|
||||||
"runner-pool-id:9dcf590a-1192-4a9c-b3e4-e0902974c2c0"
|
|
||||||
],
|
|
||||||
"pool_id": "9dcf590a"
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
5
testdata/provider.rc
vendored
5
testdata/provider.rc
vendored
|
|
@ -1,5 +0,0 @@
|
||||||
export GARM_COMMAND="ListInstances"
|
|
||||||
export GARM_CONTROLLER_ID="f77082bb-7035-4494-934c-3df4dff82675"
|
|
||||||
export GARM_POOL_ID="93639d57-edce-4f8f-902c-b3701d2d0d1b"
|
|
||||||
export GARM_PROVIDER_CONFIG_FILE="/home/ubuntu/config.toml"
|
|
||||||
export GARM_INSTANCE_ID="garm-test"
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
export GARM_COMMAND="DeleteInstance"
|
|
||||||
export GARM_CONTROLLER_ID="50cb196d"
|
|
||||||
export GARM_INTERFACE_VERSION="v0.1.0"
|
|
||||||
export GARM_POOL_ID="50fa68a5"
|
|
||||||
export GARM_PROVIDER_CONFIG_FILE="/home/chris/ipcei/projects/garm-provider-edge-connect/config/config.toml"
|
|
||||||
export GARM_INSTANCE_ID="garm-FbqZV9JufazZ"
|
|
||||||
|
|
||||||
cat <<EOF | go run main.go
|
|
||||||
EOF
|
|
||||||
92
testpod.yaml
92
testpod.yaml
|
|
@ -1,92 +0,0 @@
|
||||||
{
|
|
||||||
"apiVersion": "v1",
|
|
||||||
"kind": "Pod",
|
|
||||||
"metadata": {
|
|
||||||
"labels": {
|
|
||||||
"run": "garm-50cb196d-50fa68a5-garm-ff7ugu1ab8yo"
|
|
||||||
},
|
|
||||||
"name": "garm-50cb196d-50fa68a5-garm-ff7ugu1ab8yo"
|
|
||||||
},
|
|
||||||
"spec": {
|
|
||||||
"containers": [
|
|
||||||
{
|
|
||||||
"env": [
|
|
||||||
{
|
|
||||||
"name": "RUNNER_GITEA_INSTANCE",
|
|
||||||
"value": "https://gitea.com"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "RUNNER_GROUP"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "RUNNER_NAME",
|
|
||||||
"value": "garm-Ff7Ugu1AB8YO"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "RUNNER_LABELS",
|
|
||||||
"value": "n,runner-controller-id=50cb196d-0d3d-4223-996f-11e5f10c30ba,runner-pool-id=50fa68a5-cadf-4d84-a78a-eafeb3bfd0b0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "RUNNER_NO_DEFAULT_LABELS",
|
|
||||||
"value": "true"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "DISABLE_RUNNER_UPDATE",
|
|
||||||
"value": "true"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "RUNNER_WORKDIR",
|
|
||||||
"value": "/runner/_work/"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "GITHUB_URL",
|
|
||||||
"value": "https://gitea.com"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "RUNNER_EPHEMERAL",
|
|
||||||
"value": "true"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "RUNNER_TOKEN",
|
|
||||||
"value": "dummy"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "METADATA_URL",
|
|
||||||
"value": "https://garm.garm-provider-test.t09.de/api/v1/metadata"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "BEARER_TOKEN",
|
|
||||||
"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlYTc2MjgxLWM2ZTYtNDRkNy04M2IwLTA3YjZjNTRhNWNmMCIsIm5hbWUiOiJnYXJtLUROendIZnB3ajJJcSIsInByb3ZpZGVyX2lkIjoiNTBmYTY4YTUtY2FkZi00ZDg0LWE3OGEtZWFmZWIzYmZkMGIwIiwic2NvcGUiOiJyZXBvc2l0b3J5IiwiZW50aXR5IjoiQ2hyaXN0b3BoZXIuSGFzZS9nYXJtLXRlc3QiLCJjcmVhdGVfYXR0ZW1wdCI6MCwiZm9yZ2VfdHlwZSI6ImdpdGVhIiwiaXNzIjoiZ2FybSIsImV4cCI6MTc1NzQxOTg0MX0.ukbdJo7n64m9l2olye3NRq3KK59iFVjXY5eom08W2UQ"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "CALLBACK_URL",
|
|
||||||
"value": "https://garm.garm-provider-test.t09.de/api/v1/callbacks"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "JIT_CONFIG_ENABLED",
|
|
||||||
"value": "false"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"image": "edp.buildth.ing/devfw-cicd/garm-act-runner:1",
|
|
||||||
"imagePullPolicy": "Always",
|
|
||||||
"name": "mganter-test",
|
|
||||||
"resources": {
|
|
||||||
},
|
|
||||||
"volumeMounts": [
|
|
||||||
{
|
|
||||||
"mountPath": "/runner",
|
|
||||||
"name": "cache-volume"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"volumes": [
|
|
||||||
{
|
|
||||||
"name": "cache-volume",
|
|
||||||
"emptyDir": {}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"status": {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue