Skip to content

Commit

Permalink
feat(operator/doc): Pointers to structs (#13)
Browse files Browse the repository at this point in the history
* feat(operator/doc): Pointers to structs

* feat(operator): Only status can be modified
  • Loading branch information
german-muzquiz authored and ncknt committed Sep 11, 2019
1 parent 3602b4e commit 9a4f109
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/apis/spinnaker/v1alpha1/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
type SpinnakerServiceInterface interface {
v1.Object
runtime.Object
GetStatus() SpinnakerServiceStatus
GetStatus() *SpinnakerServiceStatus
GetExpose() ExposeConfig
GetSpinnakerConfig() SpinnakerFileSource
DeepCopyInterface() SpinnakerServiceInterface
Expand Down Expand Up @@ -36,8 +36,8 @@ func (s *SpinnakerService) GetExpose() ExposeConfig {
return s.Spec.Expose
}

func (s *SpinnakerService) GetStatus() SpinnakerServiceStatus {
return s.Status
func (s *SpinnakerService) GetStatus() *SpinnakerServiceStatus {
return &s.Status
}

func (s *SpinnakerServiceList) GetItems() []SpinnakerServiceInterface {
Expand Down

0 comments on commit 9a4f109

Please sign in to comment.