public class HelmService extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CHART_FILENAME |
static Pattern |
CHART_FRAGMENT_PATTERN |
static Pattern |
VALUES_FRAGMENT_PATTERN |
| Constructor and Description |
|---|
HelmService(org.eclipse.jkube.kit.common.JKubeConfiguration jKubeConfiguration,
org.eclipse.jkube.kit.config.resource.ResourceServiceConfig resourceServiceConfig,
org.eclipse.jkube.kit.common.KitLogger logger) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsYamlFiles(File directory) |
void |
generateHelmCharts(HelmConfig helmConfig)
Generates Helm Charts for the provided
HelmConfig. |
void |
lint(HelmConfig helmConfig) |
void |
uploadHelmChart(HelmConfig helm)
Uploads the charts defined in the provided
HelmConfig to the applicable configured repository. |
public static final String CHART_FILENAME
public static final Pattern CHART_FRAGMENT_PATTERN
public static final Pattern VALUES_FRAGMENT_PATTERN
public HelmService(org.eclipse.jkube.kit.common.JKubeConfiguration jKubeConfiguration,
org.eclipse.jkube.kit.config.resource.ResourceServiceConfig resourceServiceConfig,
org.eclipse.jkube.kit.common.KitLogger logger)
public void generateHelmCharts(HelmConfig helmConfig) throws IOException
HelmConfig.helmConfig - Configuration for which to generate the Charts.IOException - in case of any I/O exception when writing the Chart files.public void uploadHelmChart(HelmConfig helm) throws BadUploadException, IOException
HelmConfig to the applicable configured repository.
For Charts with versions ending in "-SNAPSHOT" the HelmConfig.getSnapshotRepository() is used.
HelmConfig.getStableRepository() is used for other versions.
helm - Configuration for which to generate the Charts.BadUploadException - in case the chart cannot be uploaded.IOException - in case of any I/O exception when .public void lint(HelmConfig helmConfig)
public static boolean containsYamlFiles(File directory)
Copyright © 2024. All rights reserved.