public interface JKubePlugin
Currently, JKubePlugins are used in the following services:
addExtraFiles(File)
JKubePlugins are automatically loaded by JKube by declaring a dependency to a module that
contains a descriptor file at META-INF/jkube/plugin with class names line by line,
for example:
com.example.project.MyJKubePlugin
| Modifier and Type | Field and Description |
|---|---|
static String |
JKUBE_EXTRA_DIRECTORY |
| Modifier and Type | Method and Description |
|---|---|
default void |
addExtraFiles(File targetDir)
Method called by JKube's build services with a single
File argument. |
static final String JKUBE_EXTRA_DIRECTORY
default void addExtraFiles(File targetDir)
File argument.
The File argument points to a directory jkube-extra which can be easily
referenced by a Dockerfile or an Assembly configuration.
JKube plugins should create their own subdirectories under the provided jkube-extra
file location to avoid a clash with other JKube plugins.
targetDir - location of the jkube-extra directory where plugin can copy files to.Copyright © 2023. All rights reserved.