Skip to content

Commit

Permalink
Add comment for seed
Browse files Browse the repository at this point in the history
  • Loading branch information
HomayoonAlimohammadi committed Jan 24, 2025
1 parent 23e4185 commit 1f6f431
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charms/worker/k8s/lib/charms/k8s/v0/k8sd_api_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1f6f431

Please sign in to comment.