Skip to content

Commit

Permalink
Lowercase enum values to avoid hypen in k8s flavor accronym
Browse files Browse the repository at this point in the history
  • Loading branch information
scrocquesel committed Apr 29, 2023
1 parent 2c6c42b commit c1ebd08
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,17 +197,17 @@ private RunningDevService startKubernetes(DockerStatusBuildItem dockerStatusBuil
final Supplier<RunningDevService> defaultKubernetesClusterSupplier = () -> {
KubernetesContainer container;
switch (config.flavor) {
case API_ONLY:
case api_only:
container = new ApiServerContainer(
config.apiVersion.map(version -> findOrElseThrow(version, ApiServerContainerVersion.class))
.orElseGet(() -> latest(ApiServerContainerVersion.class)));
break;
case K3S:
case k3s:
container = new K3sContainer(
config.apiVersion.map(version -> findOrElseThrow(version, K3sContainerVersion.class))
.orElseGet(() -> latest(K3sContainerVersion.class)));
break;
case KIND:
case kind:
container = new KindContainer(
config.apiVersion.map(version -> findOrElseThrow(version, KindContainerVersion.class))
.orElseGet(() -> latest(KindContainerVersion.class)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class KubernetesDevServicesBuildTimeConfig {
/**
* The flavor to use (kind, k3s or api-only). Default to api-only.
*/
@ConfigItem(defaultValue = "API_ONLY")
@ConfigItem(defaultValue = "api-only")
public Flavor flavor;

/**
Expand Down Expand Up @@ -70,14 +70,14 @@ public static enum Flavor {
/**
* kind (needs priviledge docker)
*/
KIND,
kind,
/**
* k3s (needs priviledge docker)
*/
K3S,
k3s,
/**
* api only
*/
API_ONLY;
api_only;
}
}

0 comments on commit c1ebd08

Please sign in to comment.