Skip to content

Commit

Permalink
fix(k8s): align fields names with ones used in compute user-data (#806)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored Dec 26, 2024
1 parent bcc8934 commit 2cf774e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions scaleway-async/scaleway_async/k8s/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -724,13 +724,13 @@ def unmarshal_ExternalNodeAuth(data: Any) -> ExternalNodeAuth:

args: Dict[str, Any] = {}

field = data.get("node_token", None)
field = data.get("node_secret_key", None)
if field is not None:
args["node_token"] = field
args["node_secret_key"] = field

field = data.get("api_url", None)
field = data.get("metadata_url", None)
if field is not None:
args["api_url"] = field
args["metadata_url"] = field

return ExternalNodeAuth(**args)

Expand Down
4 changes: 2 additions & 2 deletions scaleway-async/scaleway_async/k8s/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1414,9 +1414,9 @@ class ExternalNode:

@dataclass
class ExternalNodeAuth:
node_token: str
node_secret_key: str

api_url: str
metadata_url: str


@dataclass
Expand Down
8 changes: 4 additions & 4 deletions scaleway/scaleway/k8s/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -724,13 +724,13 @@ def unmarshal_ExternalNodeAuth(data: Any) -> ExternalNodeAuth:

args: Dict[str, Any] = {}

field = data.get("node_token", None)
field = data.get("node_secret_key", None)
if field is not None:
args["node_token"] = field
args["node_secret_key"] = field

field = data.get("api_url", None)
field = data.get("metadata_url", None)
if field is not None:
args["api_url"] = field
args["metadata_url"] = field

return ExternalNodeAuth(**args)

Expand Down
4 changes: 2 additions & 2 deletions scaleway/scaleway/k8s/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1414,9 +1414,9 @@ class ExternalNode:

@dataclass
class ExternalNodeAuth:
node_token: str
node_secret_key: str

api_url: str
metadata_url: str


@dataclass
Expand Down

0 comments on commit 2cf774e

Please sign in to comment.