Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Vendordata to metadata #579

Merged
merged 2 commits into from
Aug 16, 2022
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
5 changes: 5 additions & 0 deletions config/crd/bases/tinkerbell.org_hardware.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,11 @@ spec:
UserData is the user data to configure in the hardware's
metadata
type: string
vendorData:
description:
VendorData is the vendor data to configure in the hardware's
metadata
type: string
type: object
status:
description: HardwareStatus defines the observed state of Hardware.
Expand Down
5 changes: 5 additions & 0 deletions pkg/apis/core/v1alpha1/hardware_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ type HardwareSpec struct {
// metadata
//+optional
UserData *string `json:"userData,omitempty"`

// VendorData is the vendor data to configure in the hardware's
// metadata
//+optional
VendorData *string `json:"vendorData,omitempty"`
}

// Interface represents a network interface configuration for Hardware.
Expand Down
5 changes: 5 additions & 0 deletions pkg/apis/core/v1alpha1/zz_generated.deepcopy.go

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

16 changes: 13 additions & 3 deletions protos/packet/packet.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 protos/packet/packet.proto
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ message Metadata {
Storage storage = 13;
repeated string ssh_keys = 14;
bool network_ready = 15;
string vendordata = 16;
}
message Custom {
Instance.OperatingSystem preinstalled_operating_system_version = 1;
Expand Down