Add git repository artifacts to API
This commit is contained in:
parent
3deb7caf9a
commit
3efd54efd1
|
@ -43,6 +43,15 @@ type GitRepositorySpec struct {
|
|||
type GitRepositoryStatus struct {
|
||||
// +optional
|
||||
Conditions []RepositoryCondition `json:"conditions,omitempty"`
|
||||
|
||||
// LastUpdateTime is the timestamp corresponding to the last status
|
||||
// change of this repository.
|
||||
// +optional
|
||||
LastUpdateTime *metav1.Time `json:"lastUpdateTime,omitempty"`
|
||||
|
||||
// Path to the artifacts of the last repository sync.
|
||||
// +optional
|
||||
Artifacts string `json:"artifacts,omitempty"`
|
||||
}
|
||||
|
||||
// +kubebuilder:object:root=true
|
||||
|
|
|
@ -109,6 +109,10 @@ func (in *GitRepositoryStatus) DeepCopyInto(out *GitRepositoryStatus) {
|
|||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
if in.LastUpdateTime != nil {
|
||||
in, out := &in.LastUpdateTime, &out.LastUpdateTime
|
||||
*out = (*in).DeepCopy()
|
||||
}
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepositoryStatus.
|
||||
|
|
|
@ -69,6 +69,9 @@ spec:
|
|||
status:
|
||||
description: GitRepositoryStatus defines the observed state of GitRepository
|
||||
properties:
|
||||
artifacts:
|
||||
description: Path to the artifacts of the last repository sync.
|
||||
type: string
|
||||
conditions:
|
||||
items:
|
||||
description: RepositoryCondition contains condition information for
|
||||
|
@ -99,6 +102,11 @@ spec:
|
|||
- type
|
||||
type: object
|
||||
type: array
|
||||
lastUpdateTime:
|
||||
description: LastUpdateTime is the timestamp corresponding to the last
|
||||
status change of this repository.
|
||||
format: date-time
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
version: v1alpha1
|
||||
|
|
Loading…
Reference in New Issue