Revert ClusterStatus -> Status rename
This commit is contained in:
		
							parent
							
								
									7b4128d4bc
								
							
						
					
					
						commit
						7dbb654612
					
				|  | @ -31,7 +31,7 @@ type controllerInformer interface { | ||||||
| 	GetOperatorConfig() *config.Config | 	GetOperatorConfig() *config.Config | ||||||
| 	GetStatus() *spec.ControllerStatus | 	GetStatus() *spec.ControllerStatus | ||||||
| 	TeamClusterList() map[string][]spec.NamespacedName | 	TeamClusterList() map[string][]spec.NamespacedName | ||||||
| 	ClusterStatus(team, namespace, cluster string) (*cluster.Status, error) | 	ClusterStatus(team, namespace, cluster string) (*cluster.ClusterStatus, error) | ||||||
| 	ClusterLogs(team, namespace, cluster string) ([]*spec.LogEntry, error) | 	ClusterLogs(team, namespace, cluster string) ([]*spec.LogEntry, error) | ||||||
| 	ClusterHistory(team, namespace, cluster string) ([]*spec.Diff, error) | 	ClusterHistory(team, namespace, cluster string) ([]*spec.Diff, error) | ||||||
| 	ClusterDatabasesMap() map[string][]string | 	ClusterDatabasesMap() map[string][]string | ||||||
|  |  | ||||||
|  | @ -849,8 +849,8 @@ func (c *Cluster) GetCurrentProcess() Process { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // GetStatus provides status of the cluster
 | // GetStatus provides status of the cluster
 | ||||||
| func (c *Cluster) GetStatus() *Status { | func (c *Cluster) GetStatus() *ClusterStatus { | ||||||
| 	return &Status{ | 	return &ClusterStatus{ | ||||||
| 		Cluster: c.Spec.ClusterName, | 		Cluster: c.Spec.ClusterName, | ||||||
| 		Team:    c.Spec.TeamID, | 		Team:    c.Spec.TeamID, | ||||||
| 		Status:  c.Status, | 		Status:  c.Status, | ||||||
|  |  | ||||||
|  | @ -52,8 +52,8 @@ type WorkerStatus struct { | ||||||
| 	CurrentProcess Process | 	CurrentProcess Process | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // Status describes status of the cluster
 | // ClusterStatus describes status of the cluster
 | ||||||
| type Status struct { | type ClusterStatus struct { | ||||||
| 	Team                string | 	Team                string | ||||||
| 	Cluster             string | 	Cluster             string | ||||||
| 	MasterService       *v1.Service | 	MasterService       *v1.Service | ||||||
|  |  | ||||||
|  | @ -15,7 +15,7 @@ import ( | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| // ClusterStatus provides status of the cluster
 | // ClusterStatus provides status of the cluster
 | ||||||
| func (c *Controller) ClusterStatus(team, namespace, cluster string) (*cluster.Status, error) { | func (c *Controller) ClusterStatus(team, namespace, cluster string) (*cluster.ClusterStatus, error) { | ||||||
| 
 | 
 | ||||||
| 	clusterName := spec.NamespacedName{ | 	clusterName := spec.NamespacedName{ | ||||||
| 		Namespace: namespace, | 		Namespace: namespace, | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue