Skip to content

Commit

Permalink
Add support for auto-generated names in metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
birgirst committed Mar 1, 2018
1 parent 4882fa1 commit 445bd6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion k8s/models/common.py
Expand Up @@ -9,8 +9,9 @@


class ObjectMeta(Model):
name = RequiredField(six.text_type)
name = Field(six.text_type)
namespace = Field(six.text_type, "default")
resourceVersion = ReadOnlyField(six.text_type)
labels = Field(dict)
annotations = Field(dict)
generateName = Field(six.text_type)

0 comments on commit 445bd6d

Please sign in to comment.