Update Tiltfile to differentiate between aks and kind cluster #5289
Labels
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
Tiltfile uses
if "aks" in settings.get("kustomize_substitutions", {}).get("MGMT_CLUSTER_NAME", ""):
to check if the tilt is being used with AKS cluster as a management cluster.This is an inefficient approach. Especially when a user is switching from AKS -> KIND.
Suggested approach:
MGMT_CLUSTER_TYPE
saved to an .env file in the repo directory withMGMT_CLUSTER_TYPE=aks
when runningmake aks-create
. Source this env file before runningtilt-up
. The env file must be updated when runningmake kind-create
.OR
MGMT_CLUSTER_TYPE
every timeaks-create
orkind-create
is called. Tilt-settings.yaml gets parsed in Tiltfilecluster-api-provider-azure/Tiltfile
Line 41 in 6bce7f8
if "aks" in settings.get("kustomize_substitutions", {}).get("MGMT_CLUSTER_NAME", ""):
in the Tiltfile with appropriate if condition.The text was updated successfully, but these errors were encountered: