k8s-helper-cli 0.2.5__tar.gz → 0.2.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {k8s_helper_cli-0.2.5 → k8s_helper_cli-0.2.7}/PKG-INFO +1 -1
- {k8s_helper_cli-0.2.5 → k8s_helper_cli-0.2.7}/pyproject.toml +1 -1
- {k8s_helper_cli-0.2.5 → k8s_helper_cli-0.2.7}/src/k8s_helper/__init__.py +1 -1
- {k8s_helper_cli-0.2.5 → k8s_helper_cli-0.2.7}/src/k8s_helper/cli.py +63 -67
- {k8s_helper_cli-0.2.5 → k8s_helper_cli-0.2.7}/src/k8s_helper_cli.egg-info/PKG-INFO +1 -1
- {k8s_helper_cli-0.2.5 → k8s_helper_cli-0.2.7}/LICENSE +0 -0
- {k8s_helper_cli-0.2.5 → k8s_helper_cli-0.2.7}/README.md +0 -0
- {k8s_helper_cli-0.2.5 → k8s_helper_cli-0.2.7}/setup.cfg +0 -0
- {k8s_helper_cli-0.2.5 → k8s_helper_cli-0.2.7}/src/k8s_helper/config.py +0 -0
- {k8s_helper_cli-0.2.5 → k8s_helper_cli-0.2.7}/src/k8s_helper/core.py +0 -0
- {k8s_helper_cli-0.2.5 → k8s_helper_cli-0.2.7}/src/k8s_helper/utils.py +0 -0
- {k8s_helper_cli-0.2.5 → k8s_helper_cli-0.2.7}/src/k8s_helper_cli.egg-info/SOURCES.txt +0 -0
- {k8s_helper_cli-0.2.5 → k8s_helper_cli-0.2.7}/src/k8s_helper_cli.egg-info/dependency_links.txt +0 -0
- {k8s_helper_cli-0.2.5 → k8s_helper_cli-0.2.7}/src/k8s_helper_cli.egg-info/entry_points.txt +0 -0
- {k8s_helper_cli-0.2.5 → k8s_helper_cli-0.2.7}/src/k8s_helper_cli.egg-info/requires.txt +0 -0
- {k8s_helper_cli-0.2.5 → k8s_helper_cli-0.2.7}/src/k8s_helper_cli.egg-info/top_level.txt +0 -0
- {k8s_helper_cli-0.2.5 → k8s_helper_cli-0.2.7}/tests/test_core.py +0 -0
- {k8s_helper_cli-0.2.5 → k8s_helper_cli-0.2.7}/tests/test_integration.py +0 -0
@@ -748,64 +748,61 @@ def create_eks_cluster(
|
|
748
748
|
|
749
749
|
if wait:
|
750
750
|
console.print("⏳ Waiting for cluster to become active...")
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
console.print("✅ Node group is now active!")
|
766
|
-
console.print("🎉 Cluster is ready with worker nodes!")
|
767
|
-
else:
|
768
|
-
console.print("❌ Timeout waiting for node group to become active")
|
769
|
-
elif create_nodegroup and not wait:
|
770
|
-
# Create node group now that cluster is active
|
771
|
-
nodegroup_name = cluster_info.get('node_group_name') or f"{name}-nodegroup"
|
772
|
-
console.print(f"🔧 Creating node group: {nodegroup_name}")
|
773
|
-
try:
|
774
|
-
with console.status("Creating node group..."):
|
775
|
-
nodegroup_info = eks_client.create_nodegroup(
|
776
|
-
cluster_name=name,
|
777
|
-
nodegroup_name=nodegroup_name,
|
778
|
-
instance_types=instance_type_list,
|
779
|
-
ami_type=ami_type,
|
780
|
-
capacity_type=capacity_type,
|
781
|
-
scaling_config=scaling_config
|
782
|
-
# No SSH key for automatic creation
|
783
|
-
)
|
784
|
-
console.print(f"✅ Node group creation initiated: {nodegroup_name}")
|
785
|
-
console.print(f"📋 Node group ARN: {nodegroup_info['nodegroup_arn']}")
|
786
|
-
|
787
|
-
console.print(f"⏳ Waiting for node group to become active...")
|
788
|
-
if eks_client.wait_for_nodegroup_active(name, nodegroup_name):
|
789
|
-
console.print("✅ Node group is now active!")
|
790
|
-
console.print("🎉 Cluster is ready with worker nodes!")
|
791
|
-
else:
|
792
|
-
console.print("❌ Timeout waiting for node group to become active")
|
793
|
-
except Exception as e:
|
794
|
-
console.print(f"❌ Failed to create node group: {e}")
|
795
|
-
|
796
|
-
# Show next steps
|
797
|
-
console.print(f"\n🚀 Next steps:")
|
798
|
-
console.print(f" 1. Configure kubectl: aws eks update-kubeconfig --name {name} --region {region}")
|
799
|
-
if create_nodegroup:
|
800
|
-
console.print(f" 2. Verify nodes: kubectl get nodes")
|
801
|
-
console.print(f" 3. Verify connection: kubectl get svc")
|
802
|
-
console.print(f" 4. Deploy applications: k8s-helper apply <app-name> <image>")
|
751
|
+
if eks_client.wait_for_cluster_active(name):
|
752
|
+
console.print("✅ EKS cluster is now active!")
|
753
|
+
|
754
|
+
# Show cluster status
|
755
|
+
status = eks_client.get_cluster_status(name)
|
756
|
+
console.print(f"🔗 Endpoint: {status['endpoint']}")
|
757
|
+
|
758
|
+
# If node group was created, wait for it too
|
759
|
+
if create_nodegroup and 'nodegroup_info' in cluster_info:
|
760
|
+
nodegroup_name = cluster_info['nodegroup_info']['nodegroup_name']
|
761
|
+
console.print(f"⏳ Waiting for node group {nodegroup_name} to become active...")
|
762
|
+
if eks_client.wait_for_nodegroup_active(name, nodegroup_name):
|
763
|
+
console.print("✅ Node group is now active!")
|
764
|
+
console.print("🎉 Cluster is ready with worker nodes!")
|
803
765
|
else:
|
804
|
-
console.print(
|
805
|
-
|
806
|
-
|
766
|
+
console.print("❌ Timeout waiting for node group to become active")
|
767
|
+
elif create_nodegroup and not wait:
|
768
|
+
# Create node group now that cluster is active
|
769
|
+
nodegroup_name = cluster_info.get('node_group_name') or f"{name}-nodegroup"
|
770
|
+
console.print(f"🔧 Creating node group: {nodegroup_name}")
|
771
|
+
try:
|
772
|
+
nodegroup_info = eks_client.create_nodegroup(
|
773
|
+
cluster_name=name,
|
774
|
+
nodegroup_name=nodegroup_name,
|
775
|
+
instance_types=instance_type_list,
|
776
|
+
ami_type=ami_type,
|
777
|
+
capacity_type=capacity_type,
|
778
|
+
scaling_config=scaling_config
|
779
|
+
# No SSH key for automatic creation
|
780
|
+
)
|
781
|
+
console.print(f"✅ Node group creation initiated: {nodegroup_name}")
|
782
|
+
console.print(f"📋 Node group ARN: {nodegroup_info['nodegroup_arn']}")
|
783
|
+
|
784
|
+
console.print(f"⏳ Waiting for node group to become active...")
|
785
|
+
if eks_client.wait_for_nodegroup_active(name, nodegroup_name):
|
786
|
+
console.print("✅ Node group is now active!")
|
787
|
+
console.print("🎉 Cluster is ready with worker nodes!")
|
788
|
+
else:
|
789
|
+
console.print("❌ Timeout waiting for node group to become active")
|
790
|
+
except Exception as e:
|
791
|
+
console.print(f"❌ Failed to create node group: {e}")
|
792
|
+
|
793
|
+
# Show next steps
|
794
|
+
console.print(f"\n🚀 Next steps:")
|
795
|
+
console.print(f" 1. Configure kubectl: aws eks update-kubeconfig --name {name} --region {region}")
|
796
|
+
if create_nodegroup:
|
797
|
+
console.print(f" 2. Verify nodes: kubectl get nodes")
|
798
|
+
console.print(f" 3. Verify connection: kubectl get svc")
|
799
|
+
console.print(f" 4. Deploy applications: k8s-helper apply <app-name> <image>")
|
807
800
|
else:
|
808
|
-
console.print("
|
801
|
+
console.print(f" 2. Create node group: k8s-helper create-nodegroup {name}")
|
802
|
+
console.print(f" 3. Verify connection: kubectl get svc")
|
803
|
+
console.print(f" 4. Deploy applications: k8s-helper apply <app-name> <image>")
|
804
|
+
else:
|
805
|
+
console.print("❌ Timeout waiting for cluster to become active")
|
809
806
|
else:
|
810
807
|
console.print(f"💡 Use 'aws eks update-kubeconfig --name {name} --region {region}' to configure kubectl")
|
811
808
|
|
@@ -906,17 +903,16 @@ def create_nodegroup(
|
|
906
903
|
|
907
904
|
if wait:
|
908
905
|
console.print("⏳ Waiting for node group to become active...")
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
console.print("❌ Timeout waiting for node group to become active")
|
906
|
+
if eks_client.wait_for_nodegroup_active(cluster_name, nodegroup_name):
|
907
|
+
console.print("✅ Node group is now active!")
|
908
|
+
console.print("🎉 You can now deploy workloads!")
|
909
|
+
|
910
|
+
# Show next steps
|
911
|
+
console.print(f"\n🚀 Next steps:")
|
912
|
+
console.print(f" 1. Verify nodes: kubectl get nodes")
|
913
|
+
console.print(f" 2. Deploy applications: k8s-helper apply <app-name> <image>")
|
914
|
+
else:
|
915
|
+
console.print("❌ Timeout waiting for node group to become active")
|
920
916
|
else:
|
921
917
|
console.print(f"💡 Use 'kubectl get nodes' to check when nodes are ready")
|
922
918
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{k8s_helper_cli-0.2.5 → k8s_helper_cli-0.2.7}/src/k8s_helper_cli.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|