Selaa lähdekoodia

Added IngressIP to cluster model

jnfrati 5 vuotta sitten
vanhempi
sitoutus
89c41ba1c2
1 muutettua tiedostoa jossa 7 lisäystä ja 0 poistoa
  1. 7 0
      internal/models/cluster.go

+ 7 - 0
internal/models/cluster.go

@@ -66,6 +66,9 @@ type Cluster struct {
 
 	// CertificateAuthorityData for the cluster, encrypted at rest
 	CertificateAuthorityData []byte `json:"certificate-authority-data,omitempty"`
+
+	// The ingress ip for the cluster
+	IngressIP string `json:"ingress_ip"`
 }
 
 // ClusterExternal is an external Cluster to be shared over REST
@@ -86,6 +89,9 @@ type ClusterExternal struct {
 
 	// The infra id, if cluster was provisioned with Porter
 	InfraID uint `json:"infra_id"`
+
+	// The ingress ip for the cluster
+	IngressIP string `json:"ingress_ip"`
 }
 
 // Externalize generates an external Cluster to be shared over REST
@@ -107,6 +113,7 @@ func (c *Cluster) Externalize() *ClusterExternal {
 		Server:    c.Server,
 		Service:   serv,
 		InfraID:   c.InfraID,
+		IngressIP: c.IngressIP,
 	}
 }