@@ -24,19 +24,19 @@ import (
2424 "github.com/kubefleet-dev/kubefleet/apis"
2525)
2626
27- // make sure the UpdateRunObj and UpdateRunObjList interfaces are implemented by the
27+ // make sure the StagedUpdateRunObj and StagedUpdateRunObjList interfaces are implemented by the
2828// ClusterStagedUpdateRun and StagedUpdateRun types.
29- var _ UpdateRunObj = & ClusterStagedUpdateRun {}
30- var _ UpdateRunObj = & StagedUpdateRun {}
31- var _ UpdateRunObjList = & ClusterStagedUpdateRunList {}
32- var _ UpdateRunObjList = & StagedUpdateRunList {}
29+ var _ StagedUpdateRunObj = & ClusterStagedUpdateRun {}
30+ var _ StagedUpdateRunObj = & StagedUpdateRun {}
31+ var _ StagedUpdateRunObjList = & ClusterStagedUpdateRunList {}
32+ var _ StagedUpdateRunObjList = & StagedUpdateRunList {}
3333
34- // make sure the UpdateStrategyObj and UpdateStrategyObjList interfaces are implemented by the
34+ // make sure the StagedUpdateStrategyObj and StagedUpdateStrategyObjList interfaces are implemented by the
3535// ClusterStagedUpdateStrategy and StagedUpdateStrategy types.
36- var _ UpdateStrategyObj = & ClusterStagedUpdateStrategy {}
37- var _ UpdateStrategyObj = & StagedUpdateStrategy {}
38- var _ UpdateStrategyObjList = & ClusterStagedUpdateStrategyList {}
39- var _ UpdateStrategyObjList = & StagedUpdateStrategyList {}
36+ var _ StagedUpdateStrategyObj = & ClusterStagedUpdateStrategy {}
37+ var _ StagedUpdateStrategyObj = & StagedUpdateStrategy {}
38+ var _ StagedUpdateStrategyObjList = & ClusterStagedUpdateStrategyList {}
39+ var _ StagedUpdateStrategyObjList = & StagedUpdateStrategyList {}
4040
4141// make sure the ApprovalRequestObj and ApprovalRequestObjList interfaces are implemented by the
4242// ClusterApprovalRequest and ApprovalRequest types.
@@ -59,23 +59,23 @@ type UpdateRunStatusGetterSetter interface {
5959 SetStagedUpdateRunStatus (StagedUpdateRunStatus )
6060}
6161
62- // UpdateRunObj offers the functionality to work with staged update run objects.
62+ // StagedUpdateRunObj offers the functionality to work with staged update run objects.
6363// +kubebuilder:object:generate=false
64- type UpdateRunObj interface {
64+ type StagedUpdateRunObj interface {
6565 apis.ConditionedObj
6666 UpdateRunSpecGetterSetter
6767 UpdateRunStatusGetterSetter
6868}
6969
70- // UpdateRunListItemGetter offers the functionality to get a list of UpdateRunObj items.
70+ // UpdateRunListItemGetter offers the functionality to get a list of StagedUpdateRunObj items.
7171// +kubebuilder:object:generate=false
7272type UpdateRunListItemGetter interface {
73- GetUpdateRunObjs () []UpdateRunObj
73+ GetUpdateRunObjs () []StagedUpdateRunObj
7474}
7575
76- // UpdateRunObjList offers the functionality to work with staged update run object list.
76+ // StagedUpdateRunObjList offers the functionality to work with staged update run object list.
7777// +kubebuilder:object:generate=false
78- type UpdateRunObjList interface {
78+ type StagedUpdateRunObjList interface {
7979 client.ObjectList
8080 UpdateRunListItemGetter
8181}
@@ -87,22 +87,22 @@ type UpdateStrategySpecGetterSetter interface {
8787 SetStagedUpdateStrategySpec (StagedUpdateStrategySpec )
8888}
8989
90- // UpdateStrategyObj offers the functionality to work with staged update strategy objects.
90+ // StagedUpdateStrategyObj offers the functionality to work with staged update strategy objects.
9191// +kubebuilder:object:generate=false
92- type UpdateStrategyObj interface {
92+ type StagedUpdateStrategyObj interface {
9393 client.Object
9494 UpdateStrategySpecGetterSetter
9595}
9696
97- // UpdateStrategyListItemGetter offers the functionality to get a list of UpdateStrategyObj items.
97+ // UpdateStrategyListItemGetter offers the functionality to get a list of StagedUpdateStrategyObj items.
9898// +kubebuilder:object:generate=false
9999type UpdateStrategyListItemGetter interface {
100- GetUpdateStrategyObjs () []UpdateStrategyObj
100+ GetUpdateStrategyObjs () []StagedUpdateStrategyObj
101101}
102102
103- // UpdateStrategyObjList offers the functionality to work with staged update strategy object list.
103+ // StagedUpdateStrategyObjList offers the functionality to work with staged update strategy object list.
104104// +kubebuilder:object:generate=false
105- type UpdateStrategyObjList interface {
105+ type StagedUpdateStrategyObjList interface {
106106 client.ObjectList
107107 UpdateStrategyListItemGetter
108108}
@@ -278,8 +278,8 @@ type ClusterStagedUpdateStrategyList struct {
278278}
279279
280280// GetUpdateStrategyObjs returns the update strategy objects in the list.
281- func (c * ClusterStagedUpdateStrategyList ) GetUpdateStrategyObjs () []UpdateStrategyObj {
282- objs := make ([]UpdateStrategyObj , len (c .Items ))
281+ func (c * ClusterStagedUpdateStrategyList ) GetUpdateStrategyObjs () []StagedUpdateStrategyObj {
282+ objs := make ([]StagedUpdateStrategyObj , len (c .Items ))
283283 for i := range c .Items {
284284 objs [i ] = & c .Items [i ]
285285 }
@@ -584,8 +584,8 @@ type ClusterStagedUpdateRunList struct {
584584}
585585
586586// GetUpdateRunObjs returns the update run objects in the list.
587- func (c * ClusterStagedUpdateRunList ) GetUpdateRunObjs () []UpdateRunObj {
588- objs := make ([]UpdateRunObj , len (c .Items ))
587+ func (c * ClusterStagedUpdateRunList ) GetUpdateRunObjs () []StagedUpdateRunObj {
588+ objs := make ([]StagedUpdateRunObj , len (c .Items ))
589589 for i := range c .Items {
590590 objs [i ] = & c .Items [i ]
591591 }
@@ -786,8 +786,8 @@ type StagedUpdateRunList struct {
786786}
787787
788788// GetUpdateRunObjs returns the update run objects in the list.
789- func (s * StagedUpdateRunList ) GetUpdateRunObjs () []UpdateRunObj {
790- objs := make ([]UpdateRunObj , len (s .Items ))
789+ func (s * StagedUpdateRunList ) GetUpdateRunObjs () []StagedUpdateRunObj {
790+ objs := make ([]StagedUpdateRunObj , len (s .Items ))
791791 for i := range s .Items {
792792 objs [i ] = & s .Items [i ]
793793 }
@@ -831,8 +831,8 @@ type StagedUpdateStrategyList struct {
831831}
832832
833833// GetUpdateStrategyObjs returns the update strategy objects in the list.
834- func (s * StagedUpdateStrategyList ) GetUpdateStrategyObjs () []UpdateStrategyObj {
835- objs := make ([]UpdateStrategyObj , len (s .Items ))
834+ func (s * StagedUpdateStrategyList ) GetUpdateStrategyObjs () []StagedUpdateStrategyObj {
835+ objs := make ([]StagedUpdateStrategyObj , len (s .Items ))
836836 for i := range s .Items {
837837 objs [i ] = & s .Items [i ]
838838 }
0 commit comments