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