Skip to content

Commit

Permalink
Fix issues with class naming
Browse files Browse the repository at this point in the history
  • Loading branch information
flamur-gogolli committed Feb 6, 2018
1 parent 71f073c commit e6e5257
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions k8s/models/pod_disruption_budget.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@
from ..fields import Field, ListField


class PodDisruptionBudgetMatchExpressions(Model):
class LabelSelectorRequirement(Model):
key = Field(six.text_type)
operator = Field(six.text_type)
values = ListField(six.text_type)


class PodDisruptionBudgetSelector(Model):
matchExpressions = Field(PodDisruptionBudgetMatchExpressions)
class LabelSelector(Model):
matchExpressions = Field(LabelSelectorRequirement)
matchLabels = Field(dict)


class PodDisruptionBudgetSpec(Model):
minAvailable = Field(six.text_type)
maxUnavailable = Field(six.text_type)
selector = Field(PodDisruptionBudgetSelector)
selector = Field(LabelSelector)


class PodDisruptionBudget(Model):
Expand Down

0 comments on commit e6e5257

Please sign in to comment.