Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RPD-314] Remove non-modular Terraform files #212

Open
wants to merge 2 commits into
base: feature/modular-stacks
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/matcha_ml/cli/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@
"Did you know that Matcha tea was created by accident?",
"The brewing temperature of the water affects the taste of Matcha",
"Samurai's drank Matcha before battles",
"Matcha is provisioning Kubernetes which orchestrates tools",
"Seldon Core is used for model deployment",
"MLflow is used as an experiment tracker",
"Matcha originated in China during the Tang Dynasty (618-907 AD) but became popular in Japan during the 12th century. ",
"Matcha is made from shade-grown tea leaves. The leaves are covered for several weeks before harvest to increase chlorophyll content and develop a rich green color.",
"Matcha is maintained by Fuzzy Labs",
"Everything being provisioned is fully open source",
]
11 changes: 1 addition & 10 deletions src/matcha_ml/core/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
MatchaConfigComponentProperty,
MatchaConfigService,
)

from matcha_ml.constants import DEFAULT_STACK, LLM_STACK, STACK_MODULES
from matcha_ml.core._validation import is_valid_prefix, is_valid_region
from matcha_ml.errors import MatchaError, MatchaInputError
Expand All @@ -28,8 +27,6 @@
from matcha_ml.state import MatchaStateService, RemoteStateManager
from matcha_ml.state.matcha_state import MatchaState
from matcha_ml.templates.azure_template import (
DEFAULT_STACK_TF,
LLM_STACK_TF,
AzureTemplate,
)

Expand Down Expand Up @@ -308,20 +305,14 @@ def provision(
project_directory, ".matcha", "infrastructure", "resources"
)

stack = MatchaConfigService.get_stack()
if stack is not None:
stack_name = stack.value

template = os.path.join(
os.path.dirname(__file__),
os.pardir,
"infrastructure",
"modules",
)

azure_template = AzureTemplate(
LLM_STACK_TF if stack_name == StackType.LLM.value else DEFAULT_STACK_TF
)
azure_template = AzureTemplate()

zenml_version = infer_zenml_version()
config = azure_template.build_template_configuration(
Expand Down
34 changes: 0 additions & 34 deletions src/matcha_ml/infrastructure/default/.gitignore

This file was deleted.

183 changes: 0 additions & 183 deletions src/matcha_ml/infrastructure/default/.terraform.lock.hcl

This file was deleted.

67 changes: 0 additions & 67 deletions src/matcha_ml/infrastructure/default/README.md

This file was deleted.

41 changes: 0 additions & 41 deletions src/matcha_ml/infrastructure/default/aks/README.md

This file was deleted.

19 changes: 0 additions & 19 deletions src/matcha_ml/infrastructure/default/aks/main.tf

This file was deleted.

Loading