Skip to content

Commit

Permalink
chore(helm): remove local from compute log manager options (#7924)
Browse files Browse the repository at this point in the history
  • Loading branch information
rexledesma committed May 17, 2022
1 parent 06149b6 commit 17fa439
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

class ComputeLogManagerType(str, Enum):
NOOP = "NoOpComputeLogManager"
LOCAL = "LocalComputeLogManager" # deprecated in favor of noop
AZURE = "AzureBlobComputeLogManager"
GCS = "GCSComputeLogManager"
S3 = "S3ComputeLogManager"
Expand Down
11 changes: 2 additions & 9 deletions helm/dagster/schema/schema_tests/test_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,16 +414,9 @@ def test_custom_run_coordinator_config(template: HelmTemplate):
assert instance["run_coordinator"]["config"] == config


@pytest.mark.parametrize(
"compute_log_manager_type",
[ComputeLogManagerType.NOOP, ComputeLogManagerType.LOCAL],
ids=["noop", "local compute log manager becomes noop"],
)
def test_noop_compute_log_manager(
template: HelmTemplate, compute_log_manager_type: ComputeLogManagerType
):
def test_noop_compute_log_manager(template: HelmTemplate):
helm_values = DagsterHelmValues.construct(
computeLogManager=ComputeLogManager.construct(type=compute_log_manager_type)
computeLogManager=ComputeLogManager.construct(type=ComputeLogManagerType.NOOP)
)

configmaps = template.render(helm_values)
Expand Down
2 changes: 1 addition & 1 deletion helm/dagster/templates/configmap-instance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ data:
{{- $computeLogManagerType := .Values.computeLogManager.type }}
compute_logs:
{{- if has $computeLogManagerType (list "NoOpComputeLogManager" "LocalComputeLogManager") -}}
{{- if eq $computeLogManagerType "NoOpComputeLogManager" -}}
{{- include "dagsterYaml.computeLogManager.noop" . | indent 6 -}}
{{- else if eq $computeLogManagerType "AzureBlobComputeLogManager" }}
{{- include "dagsterYaml.computeLogManager.azure" . | indent 6 -}}
Expand Down
1 change: 0 additions & 1 deletion helm/dagster/values.schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion helm/dagster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ dagit:
computeLogManager:
# Type can be one of [
# NoOpComputeLogManager,
# LocalComputeLogManager (deprecated - if set, NoOpComputeLogManager will be used instead),
# AzureBlobComputeLogManager,
# GCSComputeLogManager,
# S3ComputeLogManager,
Expand Down

0 comments on commit 17fa439

Please sign in to comment.