bash-1.4.0

KOSI Plugin bash Version 1.4.0

Summary

With the bash-Plugin the user is able to execute commands inside a bash-shell.

Examples

Key Description
command Mandatory set this to string of one or more commands.

Note: The command has to be surrounded by double quotes, otherwise it will not be recognized. You can append multiple commands seprated by a ;.

Example 1

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 =
{
  guestbook= "guestbook.tgz";
  gbValues= "gbValues.yaml";
  values2= "values2.yaml";
}

containers =
{
    example=["docker.io", "nginx", "latest"];
}

install
{
    cmd(command='"echo Using the bash plugin."');
    bash(command='"echo Hello World!"');
}

Output

2023-12-01 10:32:28 Info:      use plugin bash if available
using the bash-plugin-update
Hello World!

Example 2

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 =
{
  guestbook= "guestbook.tgz";
  gbValues= "gbValues.yaml";
  values2= "values2.yaml";
}

containers =
{
    example=["docker.io", "nginx", "latest"];
}

install
{
    cmd(command='"echo using the bash-plugin-update"');
    bash(command='"echo 1.Hello;echo 2.World;echo 3.Hello World."');
} 

Output

2023-12-01 10:32:28 Info:      use plugin bash if available
using the bash-plugin-update
1.Hello
2.World
3.Hello World.