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
(cherry picked from commit c1ebd08)
  • Loading branch information
scrocquesel authored and gsmet committed May 3, 2023
1 parent 32151fc commit 892c74a
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 892c74a

Please sign in to comment.