Skip to content

Commit 2a202cb

Browse files
authored
By accident machine-allocation-type was optional (#29)
1 parent 6549b35 commit 2a202cb

File tree

4 files changed

+100
-103
lines changed

4 files changed

+100
-103
lines changed

doc/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14663,7 +14663,7 @@ <h3 id="metalstack.api.v2.MachineAllocation">MachineAllocation</h3>
1466314663
<tr>
1466414664
<td>allocation_type</td>
1466514665
<td><a href="#metalstack.api.v2.MachineAllocationType">MachineAllocationType</a></td>
14666-
<td>optional</td>
14666+
<td></td>
1466714667
<td><p>AllocationType of this machine </p></td>
1466814668
</tr>
1466914669

@@ -15762,7 +15762,7 @@ <h3 id="metalstack.api.v2.MachineServiceCreateRequest">MachineServiceCreateReque
1576215762
<tr>
1576315763
<td>allocation_type</td>
1576415764
<td><a href="#metalstack.api.v2.MachineAllocationType">MachineAllocationType</a></td>
15765-
<td>optional</td>
15765+
<td></td>
1576615766
<td><p>AllocationType of this machine </p></td>
1576715767
</tr>
1576815768

go/metalstack/api/v2/machine.pb.go

Lines changed: 14 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/metalstack/api/v2/machine.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ message MachineServiceCreateRequest {
125125
// NTPServer the ntp servers used for the machine
126126
repeated NTPServer ntp_server = 17 [(buf.validate.field).repeated.max_items = 10];
127127
// AllocationType of this machine
128-
optional MachineAllocationType allocation_type = 18 [(buf.validate.field).enum.defined_only = true];
128+
MachineAllocationType allocation_type = 18 [(buf.validate.field).enum.defined_only = true];
129129
// FirewallRules to be applied if this is a firewall
130130
FirewallRules firewall_rules = 19;
131131
}
@@ -290,7 +290,7 @@ message MachineAllocation {
290290
// AWS limits the max userdata size to 16k, lets allow twice as much
291291
string userdata = 12 [(buf.validate.field).string = {max_len: 32768}];
292292
// AllocationType of this machine
293-
optional MachineAllocationType allocation_type = 13 [(buf.validate.field).enum.defined_only = true];
293+
MachineAllocationType allocation_type = 13 [(buf.validate.field).enum.defined_only = true];
294294
// FirewallRules to be applied if this is a firewall
295295
FirewallRules firewall_rules = 14;
296296
// DNSServers for this machine

0 commit comments

Comments
 (0)