From 1f6f43137f78dc1a5c6538c959de23ecfa2f7c50 Mon Sep 17 00:00:00 2001 From: "Homayoon (Hue) Alimohammadi" Date: Fri, 24 Jan 2025 20:27:10 +0400 Subject: [PATCH] Add comment for seed --- charms/worker/k8s/lib/charms/k8s/v0/k8sd_api_manager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/charms/worker/k8s/lib/charms/k8s/v0/k8sd_api_manager.py b/charms/worker/k8s/lib/charms/k8s/v0/k8sd_api_manager.py index abdf5281..a2aca0aa 100644 --- a/charms/worker/k8s/lib/charms/k8s/v0/k8sd_api_manager.py +++ b/charms/worker/k8s/lib/charms/k8s/v0/k8sd_api_manager.py @@ -608,6 +608,8 @@ class RefreshCertificatesPlanMetadata(BaseModel, allow_population_by_field_name= of the CertificateSigningRequests that need to be signed externally (for worker nodes). """ + # NOTE(Hue): Alias is because of a naming mismatch: + # https://github.com/canonical/k8s-snap-api/blob/6d4139295b37800fb2b3fcce9fc260e6caf284b9/api/v1/rpc_refresh_certificates_plan.go#L12 seed: Optional[int] = Field(default=None, alias="seconds") certificate_signing_requests: Optional[list[str]] = Field( default=None, alias="certificate-signing-requests"