Skip to content

Commit

Permalink
Add support for additional files for Alpine (#564)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanG100 authored Sep 11, 2024
1 parent e3017e3 commit 1c32b83
Show file tree
Hide file tree
Showing 4 changed files with 320 additions and 53 deletions.
17 changes: 17 additions & 0 deletions proto/alpine.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,26 @@ package alpine;

option go_package = "github.com/openconfig/kne/proto/alpine";

message Files {
// Mount point for the files inside the pod.
string mount_dir = 1;

message FileData {
oneof file_data {
// Byte data for the startup configuration file.
bytes data = 101;
// File is always relative to the topology configuration file.
string file = 102;
}
}

map<string,FileData> files = 2;
}

// Alpine specific vendor data for KNE
message AlpineConfig {
repeated Container containers = 1;
Files files = 2;
}

message Container {
Expand Down
261 changes: 230 additions & 31 deletions proto/alpine/alpine.pb.go

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

Loading

0 comments on commit 1c32b83

Please sign in to comment.