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
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: Set up Go
uses: actions/setup-go@v6
Expand All @@ -39,7 +39,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: Check spelling
uses: crate-ci/typos@master
Expand All @@ -51,7 +51,7 @@ jobs:
cache: false

- name: Lint
uses: golangci/golangci-lint-action@v8
uses: golangci/golangci-lint-action@v9
with:
args: -D protogetter --timeout=5m

Expand All @@ -60,7 +60,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: Set up Python 3.13
uses: actions/setup-python@v6
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: setup Node.js
uses: actions/setup-node@v6
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v6
- uses: release-drafter/release-drafter@v7
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36 changes: 34 additions & 2 deletions doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8683,7 +8683,8 @@ <h3 id="metalstack.api.v2.NetworkType">NetworkType</h3>
<td><p>NETWORK_TYPE_CHILD_SHARED indicates a child network of a project which allows the allocation of ips from different projects.
Connectivity to external networks is not possible, as for normal child networks.
These networks are usually used to provide connectivity to shared services which are created in child networks, e.g. storage.
With this approach the number of hops can be reduced to the bare minimum in order to increase availability and performance.</p></td>
With this approach the number of hops can be reduced to the bare minimum in order to increase availability and performance.
Only one child shared network per project is allowed.</p></td>
</tr>

</tbody>
Expand Down Expand Up @@ -10547,6 +10548,13 @@ <h3 id="metalstack.api.v2.MachineNetwork">MachineNetwork</h3>
<td><p>ASN the autonomous system number for this network </p></td>
</tr>

<tr>
<td>project</td>
<td><a href="#string">string</a></td>
<td>optional</td>
<td><p>Project is the project uuid associated with this network </p></td>
</tr>

</tbody>
</table>

Expand Down Expand Up @@ -10962,6 +10970,30 @@ <h3 id="metalstack.api.v2.MachineQuery">MachineQuery</h3>
<td><p>State this machine has </p></td>
</tr>

<tr>
<td>waiting</td>
<td><a href="#bool">bool</a></td>
<td>optional</td>
<td><p>Waiting if set to true, only waiting machines are returned.
Only useful for admins. </p></td>
</tr>

<tr>
<td>preallocated</td>
<td><a href="#bool">bool</a></td>
<td>optional</td>
<td><p>Preallocated if set to true, only machines which are preallocated are returned.
Only useful for admins. </p></td>
</tr>

<tr>
<td>not_allocated</td>
<td><a href="#bool">bool</a></td>
<td>optional</td>
<td><p>NotAllocated if set to true, only machines which are not allocated are returned.
Only useful for admins. </p></td>
</tr>

</tbody>
</table>

Expand Down Expand Up @@ -12033,7 +12065,7 @@ <h3 id="metalstack.api.v2.MachineState">MachineState</h3>
<tr>
<td>MACHINE_STATE_AVAILABLE</td>
<td>3</td>
<td><p>MACHINE_STATE_LOCKED this machine is available for all</p></td>
<td><p>MACHINE_STATE_AVAILABLE this machine is available for all</p></td>
</tr>

</tbody>
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ require (
github.com/stretchr/objx v0.5.3 // indirect
golang.org/x/exp v0.0.0-20260312153236-7ab1446f8b90 // indirect
golang.org/x/text v0.35.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20260311181403-84a4fc48630c // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20260311181403-84a4fc48630c // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20260316180232-0b37fe3546d5 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20260316180232-0b37fe3546d5 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ golang.org/x/exp v0.0.0-20260312153236-7ab1446f8b90 h1:jiDhWWeC7jfWqR9c/uplMOqJ0
golang.org/x/exp v0.0.0-20260312153236-7ab1446f8b90/go.mod h1:xE1HEv6b+1SCZ5/uscMRjUBKtIxworgEcEi+/n9NQDQ=
golang.org/x/text v0.35.0 h1:JOVx6vVDFokkpaq1AEptVzLTpDe9KGpj5tR4/X+ybL8=
golang.org/x/text v0.35.0/go.mod h1:khi/HExzZJ2pGnjenulevKNX1W67CUy0AsXcNubPGCA=
google.golang.org/genproto/googleapis/api v0.0.0-20260311181403-84a4fc48630c h1:OyQPd6I3pN/9gDxz6L13kYGJgqkpdrAohJRBeXyxlgI=
google.golang.org/genproto/googleapis/api v0.0.0-20260311181403-84a4fc48630c/go.mod h1:X2gu9Qwng7Nn009s/r3RUxqkzQNqOrAy79bluY7ojIg=
google.golang.org/genproto/googleapis/rpc v0.0.0-20260311181403-84a4fc48630c h1:xgCzyF2LFIO/0X2UAoVRiXKU5Xg6VjToG4i2/ecSswk=
google.golang.org/genproto/googleapis/rpc v0.0.0-20260311181403-84a4fc48630c/go.mod h1:4Hqkh8ycfw05ld/3BWL7rJOSfebL2Q+DVDeRgYgxUU8=
google.golang.org/genproto/googleapis/api v0.0.0-20260316180232-0b37fe3546d5 h1:CogIeEXn4qWYzzQU0QqvYBM8yDF9cFYzDq9ojSpv0Js=
google.golang.org/genproto/googleapis/api v0.0.0-20260316180232-0b37fe3546d5/go.mod h1:EIQZ5bFCfRQDV4MhRle7+OgjNtZ6P1PiZBgAKuxXu/Y=
google.golang.org/genproto/googleapis/rpc v0.0.0-20260316180232-0b37fe3546d5 h1:aJmi6DVGGIStN9Mobk/tZOOQUBbj0BPjZjjnOdoZKts=
google.golang.org/genproto/googleapis/rpc v0.0.0-20260316180232-0b37fe3546d5/go.mod h1:4Hqkh8ycfw05ld/3BWL7rJOSfebL2Q+DVDeRgYgxUU8=
google.golang.org/protobuf v1.36.11 h1:fV6ZwhNocDyBLK0dj+fg8ektcVegBBuEolpbTQyBNVE=
google.golang.org/protobuf v1.36.11/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
Expand Down
66 changes: 58 additions & 8 deletions go/metalstack/api/v2/machine.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions go/metalstack/api/v2/network.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 28 additions & 1 deletion js/metalstack/api/v2/machine_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,12 @@ export type MachineNetwork = Message<"metalstack.api.v2.MachineNetwork"> & {
* @generated from field: uint32 asn = 8;
*/
asn: number;
/**
* Project is the project uuid associated with this network
*
* @generated from field: optional string project = 9;
*/
project?: string;
};
/**
* Describes the message metalstack.api.v2.MachineNetwork.
Expand Down Expand Up @@ -1586,6 +1592,27 @@ export type MachineQuery = Message<"metalstack.api.v2.MachineQuery"> & {
* @generated from field: optional metalstack.api.v2.MachineState state = 14;
*/
state?: MachineState;
/**
* Waiting if set to true, only waiting machines are returned.
* Only useful for admins.
*
* @generated from field: optional bool waiting = 15;
*/
waiting?: boolean;
/**
* Preallocated if set to true, only machines which are preallocated are returned.
* Only useful for admins.
*
* @generated from field: optional bool preallocated = 16;
*/
preallocated?: boolean;
/**
* NotAllocated if set to true, only machines which are not allocated are returned.
* Only useful for admins.
*
* @generated from field: optional bool not_allocated = 17;
*/
notAllocated?: boolean;
};
/**
* Describes the message metalstack.api.v2.MachineQuery.
Expand Down Expand Up @@ -1940,7 +1967,7 @@ export declare enum MachineState {
*/
LOCKED = 2,
/**
* MACHINE_STATE_LOCKED this machine is available for all
* MACHINE_STATE_AVAILABLE this machine is available for all
*
* @generated from enum value: MACHINE_STATE_AVAILABLE = 3;
*/
Expand Down
4 changes: 2 additions & 2 deletions js/metalstack/api/v2/machine_pb.js

Large diffs are not rendered by default.

35 changes: 33 additions & 2 deletions js/metalstack/api/v2/machine_pb.ts

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions js/metalstack/api/v2/network_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,7 @@ export declare enum NetworkType {
* Connectivity to external networks is not possible, as for normal child networks.
* These networks are usually used to provide connectivity to shared services which are created in child networks, e.g. storage.
* With this approach the number of hops can be reduced to the bare minimum in order to increase availability and performance.
* Only one child shared network per project is allowed.
*
* @generated from enum value: NETWORK_TYPE_CHILD_SHARED = 6;
*/
Expand Down
1 change: 1 addition & 0 deletions js/metalstack/api/v2/network_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ export var NetworkType;
* Connectivity to external networks is not possible, as for normal child networks.
* These networks are usually used to provide connectivity to shared services which are created in child networks, e.g. storage.
* With this approach the number of hops can be reduced to the bare minimum in order to increase availability and performance.
* Only one child shared network per project is allowed.
*
* @generated from enum value: NETWORK_TYPE_CHILD_SHARED = 6;
*/
Expand Down
1 change: 1 addition & 0 deletions js/metalstack/api/v2/network_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -830,6 +830,7 @@ export enum NetworkType {
* Connectivity to external networks is not possible, as for normal child networks.
* These networks are usually used to provide connectivity to shared services which are created in child networks, e.g. storage.
* With this approach the number of hops can be reduced to the bare minimum in order to increase availability and performance.
* Only one child shared network per project is allowed.
*
* @generated from enum value: NETWORK_TYPE_CHILD_SHARED = 6;
*/
Expand Down
4 changes: 2 additions & 2 deletions proto/buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ plugins:
out: ../go
opt: paths=source_relative,simple
# python
- remote: buf.build/protocolbuffers/python:v33.5
- remote: buf.build/protocolbuffers/python:v34.0
out: ../python
- remote: buf.build/protocolbuffers/pyi:v33.5
- remote: buf.build/protocolbuffers/pyi:v34.0
out: ../python
- remote: buf.build/connectrpc/python:v0.8.1
out: ../python
Expand Down
Loading
Loading