diff --git a/api/kuik/v1alpha1/repository_types.go b/api/kuik/v1alpha1/repository_types.go index a3f31ea4..fa8bc445 100644 --- a/api/kuik/v1alpha1/repository_types.go +++ b/api/kuik/v1alpha1/repository_types.go @@ -11,7 +11,7 @@ import ( ) type DurationOverride struct { - time.Duration `protobuf:"varint,1,opt,name=duration,casttype=time.Duration"` + time.Duration `json:"-" protobuf:"varint,1,opt,name=duration,casttype=time.Duration"` } // This re-implements metav1.Duration' UnmarshalJSON and adds support for a 'd' (days) suffix diff --git a/config/crd/bases/kuik.enix.io_repositories.yaml b/config/crd/bases/kuik.enix.io_repositories.yaml index ef1d8da6..043b2883 100644 --- a/config/crd/bases/kuik.enix.io_repositories.yaml +++ b/config/crd/bases/kuik.enix.io_repositories.yaml @@ -75,7 +75,7 @@ spec: description: UpdateInterval is the interval in human readable format (1m, 1h, 1d...) at which matched CachedImages from this Repository are updated (see spec.UpdateFilters) - type: string + type: object required: - name type: object diff --git a/helm/kube-image-keeper/crds/repository-crd.yaml b/helm/kube-image-keeper/crds/repository-crd.yaml index f9fbf589..c467c0dc 100644 --- a/helm/kube-image-keeper/crds/repository-crd.yaml +++ b/helm/kube-image-keeper/crds/repository-crd.yaml @@ -74,7 +74,7 @@ spec: description: UpdateInterval is the interval in human readable format (1m, 1h, 1d...) at which matched CachedImages from this Repository are updated (see spec.UpdateFilters) - type: string + type: object required: - name type: object