Skip to content

Commit

Permalink
remove file
Browse files Browse the repository at this point in the history
  • Loading branch information
eaudetcobello committed Nov 7, 2024
1 parent 8dc67cc commit f65a944
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 31 deletions.
10 changes: 7 additions & 3 deletions charms/worker/k8s/lib/charms/k8s/v0/k8sd_api_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,9 +534,13 @@ class FeatureRelationData(BaseModel):

@root_validator(pre=True)
def check_data(cls, values):
assert 'name' in values, "name must be provided"
assert 'version' in values, "version must be provided"
assert 'attributes' in values, "attributes must be provided"
if 'name' not in values:
raise ValueError("The 'name' field must be provided")
if 'version' not in values:
raise ValueError("The 'version' field must be provided")
if 'attributes' not in values:
raise ValueError("The 'attributes' field must be provided")
return values

class GetKubeConfigResponse(BaseRequestModel):
"""Response model for getting the kubeconfig from the cluster.
Expand Down
28 changes: 0 additions & 28 deletions redeploy.sh

This file was deleted.

0 comments on commit f65a944

Please sign in to comment.