Skip to content

Commit

Permalink
Added arch to nodetemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
sssash18 committed Jan 19, 2024
1 parent 15486a6 commit 96afff6
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 8 deletions.
3 changes: 2 additions & 1 deletion docs/documents/apis.md
Original file line number Diff line number Diff line change
Expand Up @@ -2356,10 +2356,11 @@ string
</td>
<td>
<em>
string
*string
</em>
</td>
<td>
<em>(Optional)</em>
<p>Architecture of the node belonging to nodeGroup</p>
</td>
</tr>
Expand Down
1 change: 0 additions & 1 deletion kubernetes/crds/machine.sapcloud.io_machineclasses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ spec:
description: Zone of the expected node belonging to nodeGroup
type: string
required:
- architecture
- capacity
- instanceType
- region
Expand Down
3 changes: 2 additions & 1 deletion pkg/apis/machine/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,7 @@ type NodeTemplate struct {
// Zone of the node belonging to nodeGroup
Zone string

// +optional
// Architecture of the node belonging to nodeGroup
Architecture string
Architecture *string
}
3 changes: 2 additions & 1 deletion pkg/apis/machine/v1alpha1/machineclass_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ type NodeTemplate struct {
// Zone of the expected node belonging to nodeGroup
Zone string `json:"zone"`

// +optional
// Architecture of the node belonging to nodeGroup
Architecture string `json:"architecture"`
Architecture *string `json:"architecture,omitempty"`
}
4 changes: 2 additions & 2 deletions pkg/apis/machine/v1alpha1/zz_generated.conversion.go

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

5 changes: 5 additions & 0 deletions pkg/apis/machine/v1alpha1/zz_generated.deepcopy.go

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

5 changes: 5 additions & 0 deletions pkg/apis/machine/zz_generated.deepcopy.go

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

3 changes: 1 addition & 2 deletions pkg/openapi/openapi_generated.go

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

0 comments on commit 96afff6

Please sign in to comment.