@@ -96,6 +96,7 @@ type GitRepositorySpec struct {
9696
9797 // Include specifies a list of GitRepository resources which Artifacts
9898 // should be included in the Artifact produced for this GitRepository.
99+ // +optional
99100 Include []GitRepositoryInclude `json:"include,omitempty"`
100101}
101102
@@ -104,17 +105,18 @@ type GitRepositorySpec struct {
104105type GitRepositoryInclude struct {
105106 // GitRepositoryRef specifies the GitRepository which Artifact contents
106107 // must be included.
108+ // +required
107109 GitRepositoryRef meta.LocalObjectReference `json:"repository"`
108110
109111 // FromPath specifies the path to copy contents from, defaults to the root
110112 // of the Artifact.
111113 // +optional
112- FromPath string `json:"fromPath"`
114+ FromPath string `json:"fromPath,omitempty "`
113115
114116 // ToPath specifies the path to copy contents to, defaults to the name of
115117 // the GitRepositoryRef.
116118 // +optional
117- ToPath string `json:"toPath"`
119+ ToPath string `json:"toPath,omitempty "`
118120}
119121
120122// GetFromPath returns the specified FromPath.
@@ -169,7 +171,8 @@ type GitRepositoryVerification struct {
169171
170172 // SecretRef specifies the Secret containing the public keys of trusted Git
171173 // authors.
172- SecretRef meta.LocalObjectReference `json:"secretRef,omitempty"`
174+ // +required
175+ SecretRef meta.LocalObjectReference `json:"secretRef"`
173176}
174177
175178// GitRepositoryStatus records the observed state of a Git repository.
0 commit comments