Skip to content

Commit

Permalink
Fix inline volumeSource marshalling for LocalSpec (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalsaha committed Jan 17, 2018
1 parent d62b7a7 commit 85deef4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions apis/stash/types.go
Expand Up @@ -19,7 +19,7 @@ const (
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

type Restic struct {
metav1.TypeMeta `json:",inline,omitempty"`
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ResticSpec `json:"spec,omitempty"`
Status ResticStatus `json:"status,omitempty"`
Expand Down Expand Up @@ -77,9 +77,9 @@ type Backend struct {
}

type LocalSpec struct {
VolumeSource core.VolumeSource `json:",inline"`
MountPath string `json:"mountPath,omitempty"`
SubPath string `json:"subPath,omitempty"`
core.VolumeSource `json:",inline"`
MountPath string `json:"mountPath,omitempty"`
SubPath string `json:"subPath,omitempty"`
}

type S3Spec struct {
Expand Down
6 changes: 3 additions & 3 deletions apis/stash/v1alpha1/types.go
Expand Up @@ -77,9 +77,9 @@ type Backend struct {
}

type LocalSpec struct {
VolumeSource core.VolumeSource `json:",inline"`
MountPath string `json:"mountPath,omitempty"`
SubPath string `json:"subPath,omitempty"`
core.VolumeSource `json:",inline"`
MountPath string `json:"mountPath,omitempty"`
SubPath string `json:"subPath,omitempty"`
}

type S3Spec struct {
Expand Down

0 comments on commit 85deef4

Please sign in to comment.