print-1.4.0

KOSI Plugin print Version 1.4.0

Summary

The print plugin allows you to print a message on the command line.

Keys

Key Description
message Mandatory set a message to be displayed on command line

Examples

Example 1 - printing a message

languageversion = "0.1.0";
apiversion = "kubernative/kubeops/sina/user/v3";
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
{
    cmd(command='"echo Using the print-plugin"');
    print(message='"Printing example message with print plugin."');
}

Output

Using the print-plugin
2023-12-01 13:38:14 Info:      Printing example message with print plugin.

Example 2 - printing several messages

languageversion = "0.1.0";
apiversion = "kubernative/kubeops/sina/user/v3";
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
{
    cmd(command='"echo Using the print-plugin"');
    print(message='"Printing example message with print plugin."');
    print(message='"Printing example message 2 with print plugin."');
}

Output

Using the print-plugin
2023-12-01 13:41:20 Info:      Printing example message with print plugin.
2023-12-01 13:41:20 Info:      Printing example message 2 with print plugin.