Add container rename support

Signed-off-by: jason yang <jasonyangshadow@gmail.com>
This commit is contained in:
jason yang
2023-12-21 23:32:10 -07:00
committed by Jonathon Anderson
parent 7d17bcc6fa
commit d262ec10ef
10 changed files with 822 additions and 385 deletions

View File

@@ -84,6 +84,13 @@ message ContainerSyncUserParameter {
string containerName = 1;
}
// ContainerRenameParameter is the input for ContainerRename
message ContainerRenameParameter {
string containerName = 1;
string targetName = 2;
bool build = 3;
}
// Nodes
// NodeNames is an array of node ids.
@@ -275,6 +282,14 @@ service WWApi {
};
}
// ContainerRename renames the container
rpc ContainerRename(ContainerRenameParameter) returns (google.protobuf.Empty) {
option (google.api.http) = {
post: "/v1/containerrename"
body: "*"
};
}
// Nodes
// NodeAdd adds one or more nodes for management by Warewulf and returns