Skip to content

Commit

Permalink
Pydantic2 PR fix (#2421)
Browse files Browse the repository at this point in the history
Co-authored-by: Fangchen Li <fangchen.li@outlook.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Amit Kumar <dtu.amit@gmail.com>
  • Loading branch information
4 people committed Apr 22, 2024
1 parent 85d3a75 commit 2f85ece
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/_nebari/stages/infrastructure/__init__.py
Expand Up @@ -91,10 +91,10 @@ class GCPInputVars(schema.Base):
release_channel: str
networking_mode: str
network: str
subnetwork: str = None
ip_allocation_policy: Dict[str, str] = None
master_authorized_networks_config: Dict[str, str] = None
private_cluster_config: GCPPrivateClusterConfig = None
subnetwork: Optional[str] = None
ip_allocation_policy: Optional[Dict[str, str]] = None
master_authorized_networks_config: Optional[Dict[str, str]] = None
private_cluster_config: Optional[GCPPrivateClusterConfig] = None


class AzureNodeGroupInputVars(schema.Base):
Expand All @@ -112,11 +112,11 @@ class AzureInputVars(schema.Base):
node_groups: Dict[str, AzureNodeGroupInputVars]
resource_group_name: str
node_resource_group_name: str
vnet_subnet_id: str = None
vnet_subnet_id: Optional[str] = None
private_cluster_enabled: bool
tags: Dict[str, str] = {}
max_pods: int = None
network_profile: Dict[str, str] = None
max_pods: Optional[int] = None
network_profile: Optional[Dict[str, str]] = None


class AWSNodeGroupInputVars(schema.Base):
Expand All @@ -133,8 +133,8 @@ class AWSNodeGroupInputVars(schema.Base):
class AWSInputVars(schema.Base):
name: str
environment: str
existing_security_group_id: str = None
existing_subnet_ids: List[str] = None
existing_security_group_id: Optional[str] = None
existing_subnet_ids: Optional[List[str]] = None
region: str
kubernetes_version: str
node_groups: List[AWSNodeGroupInputVars]
Expand Down

0 comments on commit 2f85ece

Please sign in to comment.