Skip to content

Commit

Permalink
[INFRA-2155] Removing aladdin dns-sync
Browse files Browse the repository at this point in the history
  • Loading branch information
vitali-federau-fivestars committed Nov 13, 2023
1 parent 4ea881b commit bdec963
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 77 deletions.
3 changes: 1 addition & 2 deletions aladdin/commands/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
COMMON_OPTION_PARSER, HELM_OPTION_PARSER, CHART_OPTION_PARSER, container_command
)
from aladdin.lib.cluster_rules import ClusterRules
from aladdin.commands import sync_ingress, sync_dns
from aladdin.commands import sync_ingress
from aladdin.config import load_git_configs
from aladdin.lib.helm_rules import HelmRules
from aladdin.lib.git import Git
Expand Down Expand Up @@ -111,4 +111,3 @@ def deploy(
)
if not dry_run:
sync_ingress.sync_ingress(namespace)
sync_dns.sync_dns(namespace)
3 changes: 1 addition & 2 deletions aladdin/commands/rollback.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from aladdin.lib.arg_tools import add_namespace_argument, container_command
from aladdin.commands import sync_ingress, sync_dns
from aladdin.commands import sync_ingress
from aladdin.lib.helm_rules import HelmRules
from aladdin.lib.k8s.helm import Helm

Expand Down Expand Up @@ -28,4 +28,3 @@ def rollback(project, num_versions, namespace, chart=None):
helm.rollback_relative(HelmRules.get_release_name(chart or project), num_versions, namespace)

sync_ingress.sync_ingress(namespace)
sync_dns.sync_dns(namespace)
3 changes: 1 addition & 2 deletions aladdin/commands/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
COMMON_OPTION_PARSER, HELM_OPTION_PARSER, CHARTS_OPTION_PARSER, container_command
)
from aladdin.lib.cluster_rules import ClusterRules
from aladdin.commands import sync_ingress, sync_dns
from aladdin.commands import sync_ingress
from aladdin.lib.helm_rules import HelmRules
from aladdin.lib.k8s.helm import Helm
from aladdin.lib.project_conf import ProjectConf
Expand Down Expand Up @@ -76,4 +76,3 @@ def start(
# Sync if any helm.start() call succeeded, even if a subsequent one failed
if not dry_run:
sync_ingress.sync_ingress(namespace)
sync_dns.sync_dns(namespace)
3 changes: 1 addition & 2 deletions aladdin/commands/stop.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from aladdin.lib.arg_tools import CHARTS_OPTION_PARSER, COMMON_OPTION_PARSER, container_command
from aladdin.lib.cluster_rules import ClusterRules
from aladdin.commands import sync_ingress, sync_dns
from aladdin.commands import sync_ingress
from aladdin.lib.helm_rules import HelmRules
from aladdin.lib.k8s.helm import Helm
from aladdin.lib.project_conf import ProjectConf
Expand Down Expand Up @@ -43,4 +43,3 @@ def stop(namespace, charts):
# Sync if any helm.stop() call succeeded, even if a subsequent one failed
if sync_required:
sync_ingress.sync_ingress(namespace)
sync_dns.sync_dns(namespace)
52 changes: 0 additions & 52 deletions aladdin/commands/sync_dns.py

This file was deleted.

3 changes: 1 addition & 2 deletions aladdin/commands/undeploy.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from aladdin.lib.arg_tools import add_namespace_argument, container_command
from aladdin.lib.cluster_rules import ClusterRules
from aladdin.commands import sync_ingress, sync_dns
from aladdin.commands import sync_ingress
from aladdin.lib.helm_rules import HelmRules
from aladdin.lib.k8s.helm import Helm

Expand Down Expand Up @@ -30,4 +30,3 @@ def undeploy(project, namespace, chart=None):
helm.stop(HelmRules.get_release_name(chart or project), namespace)

sync_ingress.sync_ingress(namespace)
sync_dns.sync_dns(namespace)
2 changes: 0 additions & 2 deletions aladdin/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
scale,
start,
stop,
sync_dns,
sync_ingress,
tail,
undeploy,
Expand Down Expand Up @@ -62,7 +61,6 @@ def cli():
scale,
start,
stop,
sync_dns,
sync_ingress,
tail,
undeploy,
Expand Down
13 changes: 0 additions & 13 deletions docs/sync_dns_cmd.md

This file was deleted.

0 comments on commit bdec963

Please sign in to comment.