Skip to content

Commit

Permalink
chore: add ExtraInfo field for extensions
Browse files Browse the repository at this point in the history
Add an extra field to extensions to store arbitrary info.

Signed-off-by: Noel Georgi <git@frezbo.dev>
  • Loading branch information
frezbo committed Apr 1, 2024
1 parent 0fc24ee commit bac366e
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 8 deletions.
1 change: 1 addition & 0 deletions api/resource/definitions/extensions/extensions.proto
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ message Metadata {
string author = 3;
string description = 4;
Compatibility compatibility = 5;
string extra_info = 6;
}

25 changes: 17 additions & 8 deletions pkg/machinery/api/resource/definitions/extensions/extensions.pb.go

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

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

1 change: 1 addition & 0 deletions pkg/machinery/extensions/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ type Metadata struct {
Author string `yaml:"author" protobuf:"3"`
Description string `yaml:"description" protobuf:"4"`
Compatibility Compatibility `yaml:"compatibility" protobuf:"5"`
ExtraInfo string `yaml:"extraInfo,omitempty" protobuf:"6"`
}

// Compatibility describes extension compatibility.
Expand Down
1 change: 1 addition & 0 deletions website/content/v1.7/reference/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1761,6 +1761,7 @@ Metadata describes base extension metadata.
| author | [string](#string) | | |
| description | [string](#string) | | |
| compatibility | [Compatibility](#talos.resource.definitions.extensions.Compatibility) | | |
| extra_info | [string](#string) | | |



Expand Down

0 comments on commit bac366e

Please sign in to comment.