Skip to content

Commit

Permalink
Default ClusterIP for minikube bit allow LoadBalancer override.
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamDumpleton committed Sep 20, 2024
1 parent e3a7423 commit 05af649
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ clusterPackages:
defaultHttpVersions:
- "HTTP/1.1"
service:
type: LoadBalancer
type: ClusterIP
useHostPorts: true
cert-manager:
enabled: #@ isClusterPackageEnableByDefault("cert-manager")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
def check_infra(val):
if val["infraProvider"] in ["aws", "gcp", "azure", "minikube"]:
if val["infraProvider"] in ["minikube"]:
return val["service"]["type"] in ["ClusterIP", "LoadBalancer"] or fail("{} infra provider requires service.type to be ClusterIP or LoadBalancer".format(val["infraProvider"]))
end
if val["infraProvider"] in ["aws", "gcp", "azure"]:
return val["service"]["type"] == "LoadBalancer" or fail("{} infra provider requires service.type to be LoadBalancer".format(val["infraProvider"]))
end
if val["infraProvider"] in ["kind"]:
Expand Down

0 comments on commit 05af649

Please sign in to comment.