Make VolatileTime compatible with controller-gen (#2104)

This commit is contained in:
Markus Thömmes 2021-04-26 12:14:39 +02:00 committed by GitHub
parent 78b8140ed1
commit 2a0fc657a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,8 @@ import (
// Thus differing VolatileTime values are not considered different.
// Note, go-cmp will still return inequality, see unit test if you
// need this behavior for go-cmp.
//
// +kubebuilder:validation:Type=string
type VolatileTime struct {
Inner metav1.Time `json:",inline"`
}