Update PropagatedVersion using k8s API conventions
@@ -27,19 +27,20 @@ type PropagatedVersionSpec struct {
// PropagatedVersionStatus defines the observed state of PropagatedVersion
type PropagatedVersionStatus struct {
// The observed version of the template for this resource.
- TemplateVersion string `json:"templateVersion,omitempty"`
+ TemplateVersion string `json:"templateVersion"`
// The observed version of the overrides for this resource.
- OverrideVersion string `json:"overridesVersion,omitempty"`
+ OverrideVersion string `json:"overridesVersion"`
// The last versions produced in each cluster for this resource.
+ // +optional
ClusterVersions []ClusterObjectVersion `json:"clusterVersions,omitempty"`
}
type ClusterObjectVersion struct {
// The name of the cluster the version is for.
- ClusterName string `json:"clusterName,omitempty"`
+ ClusterName string `json:"clusterName"`
// The last version produced for the resource by a federation
// operation.
- Version string `json:"version,omitempty"`
+ Version string `json:"version"`
}
// +genclient
@@ -60,7 +61,7 @@ type PropagatedVersion struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
- Spec PropagatedVersionSpec `json:"spec,omitempty"`
+ // +optional
Status PropagatedVersionStatus `json:"status,omitempty"`
}
