merge-1.6.0
less than a minute
KOSI Plugin merge Version 1.6.0
Summary
The merge plugin allows to merge two files.
Currently only XML files are supported.
Keys
Key | Description | |
---|---|---|
backupPath | A backup of file1 is created in this path. |
|
file1 | Mandatory | This is the file that is used as the target for merging. |
file2 | Mandatory | This is the source that will be added to target file1 . |
Note: If
file2
is a file, then the file is used as source for merging. Iffile2
is a directory, then all files in the folder are used as source for merging.
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
{
merge(file1= "myXML.xml";file2="/root/filesIwantToMergeDirectory/";backupPath="/root/backupPath/forFile1/");
}