fprint-1.7.0
less than a minute
KOSI Plugin fprint Version 1.7.0
Summary
The fprint plugin functions similarly to the print plugin by allowing messages to be displayed as key-value pairs. However, fprint extends this functionality by enabling the inclusion of variables from other plugins, which are also printed as part of the message.
For details on handling variables from other plugins, see the loop-plugin Reference.
Keys
Key | Description | |
---|---|---|
message | Mandatory | A string that represents the command-line output message. |
variables | - | A list of strings representing variable names. If these variables were created by other plugins, fprint will retrieve and include their values in the message. |
Example
languageversion = "1.0.0";
apiversion = "kubernative/kubeops/sina/user/v4";
name = "kosi-example-packagev3";
description = "kosi-example-package";
version = "0.1.0";
docs = "docs.tgz";
logo = "logo.png";
files =
{
input = "template.yaml";
}
containers =
{
example = ["docker.io", "nginx", "latest"];
}
install
{
set
(
variable = "name";
value = "root";
)
set
(
variable = "ips";
value = "00";
)
fprint
(
message = "Hello {0} with the ips {1}";
variables = "["name","ips"]";
);
}