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

feat: Setup package meta and script entry #7

Merged
merged 2 commits into from
Jan 31, 2023
Merged
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
8 changes: 6 additions & 2 deletions eks_updater.py → eksupdate/cli.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from eksupdate.starter import main
import argparse
if __name__ == "__main__":


def entry():
example_text = '''
example:

Expand Down Expand Up @@ -39,4 +41,6 @@
args = parser.parse_args()
main(args)



if __name__ == "__main__":
entry()
2 changes: 0 additions & 2 deletions eksupdate/starter.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
from platform import python_branch, version
from .src.boto_aws import update_cluster, is_cluster_exists, get_Asgs, outdated_lt, addAutoScaling, add_node, get_num_of_instances, get_latest_instance, wait_for_ready, get_outdated_Asg, worker_terminate, status_of_cluster,check_asg_autoscaler,enable_disable_autoscaler
import time
import datetime
from .src.k8s_client import find_node, drain_nodes, unschedule_old_nodes, update_addons, delete_node,is_cluster_auto_scaler_present,clus_auto_enable_disable
from .src.self_managed import get_node_groups, Update_nodeGroup, get_asg_node_groups,filter_node_groups
from .src.latest_ami import get_latestami
import argparse
from .src.eks_get_image_type import get_ami_name
from .src.preflight_module import pre_flight_checks
from .src.ekslogs import logs_pusher
Expand Down
9 changes: 0 additions & 9 deletions installer.py

This file was deleted.

Loading