Skip to content

Commit c535685

Browse files
committed
revert WiP
1 parent 6256818 commit c535685

File tree

4 files changed

+6
-19
lines changed

4 files changed

+6
-19
lines changed

flux_local/kustomize_controller/controller.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from dataclasses import dataclass
2727

2828
from flux_local.store import Store, Status, Artifact
29-
from flux_local.source_controller.artifact import GitArtifact, OCIArtifact, ExternalArtifact
29+
from flux_local.source_controller.artifact import GitArtifact, OCIArtifact
3030
from flux_local.manifest import (
3131
NamedResource,
3232
Kustomization,
@@ -275,7 +275,7 @@ async def reconcile(
275275
self._store.update_status(resource_id, Status.FAILED, error=msg)
276276
return
277277

278-
if isinstance(artifact, (GitArtifact, OCIArtifact, ExternalArtifact)):
278+
if isinstance(artifact, (GitArtifact, OCIArtifact)):
279279
ks_path_part = kustomization.path.strip("./")
280280
# Ensure Path objects are used for joining
281281
resolved_path = Path(artifact.local_path)
@@ -293,7 +293,7 @@ async def reconcile(
293293
else:
294294
msg = (
295295
f"Source artifact {source_ref_id.namespaced_name} for Kustomization {resource_id.namespaced_name} "
296-
f"is not a GitArtifact, OCIArtifact, or ExternalArtifact (type: {type(artifact).__name__})"
296+
f"is not a GitArtifact or OCIArtifact (type: {type(artifact).__name__})"
297297
)
298298
self._store.update_status(resource_id, Status.FAILED, error=msg)
299299
return

flux_local/source_controller/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@
1212
"SourceControllerConfig",
1313
"GitArtifact",
1414
"OCIArtifact",
15-
"ExternalArtifact",
1615
]

flux_local/source_controller/artifact.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,3 @@ class OCIArtifact(Artifact):
4141

4242
ref: OCIRepositoryRef | None = None
4343
"""Information about the version of the OCI repository."""
44-
45-
46-
@dataclass(frozen=True, kw_only=True)
47-
class ExternalArtifact(Artifact):
48-
"""External artifact.
49-
50-
This object is written when the ExternalArtifact is reconciled. The path
51-
references a local filesystem path at the specified ref of the artifact.
52-
"""
53-
54-
local_path: str
55-
"""Local filesystem path to the external artifact."""

flux_local/tool/selector.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ def add_selector_flags(args: ArgumentParser) -> None:
7777
)
7878
args.add_argument(
7979
"--sources",
80-
help="Optional GitRepository, OCIRepository or ExternalArtifact"
81-
"sources to restrict to e.g. `flux-system`. Can include optional"
82-
"map of repository source to relative path e.g. `cluster=./k8s/`",
80+
help="Optional GitRepository or OCIRepository sources to restrict "
81+
"to e.g. `flux-system`. Can include optional map of repository "
82+
"source to relative path e.g. `cluster=./k8s/`",
8383
action=SourceAppendAction,
8484
)
8585
args.add_argument(

0 commit comments

Comments
 (0)