Skip to content

Commit

Permalink
made changes to crd validation schema
Browse files Browse the repository at this point in the history
  • Loading branch information
senthilrch committed Jan 30, 2020
1 parent e981cf0 commit 6bb886b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deploy/fledged-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ spec:
type: object
required:
- spec
- status
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
Expand Down Expand Up @@ -74,6 +73,7 @@ spec:
required:
- message
- reason
- startTime
- status
properties:
completionTime:
Expand Down
4 changes: 2 additions & 2 deletions pkg/apis/fledged/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type ImageCache struct {
metav1.ObjectMeta `json:"metadata,omitempty"`

Spec ImageCacheSpec `json:"spec"`
Status ImageCacheStatus `json:"status"`
Status ImageCacheStatus `json:"status,omitempty"`
}

// CacheSpecImages specifies the Images to be cached
Expand All @@ -51,7 +51,7 @@ type ImageCacheStatus struct {
Reason string `json:"reason"`
Message string `json:"message"`
Failures map[string]NodeReasonMessageList `json:"failures,omitempty"`
StartTime *metav1.Time `json:"startTime,omitempty"`
StartTime *metav1.Time `json:"startTime"`
CompletionTime *metav1.Time `json:"completionTime,omitempty"`
}

Expand Down

0 comments on commit 6bb886b

Please sign in to comment.