diff --git a/kubernetes.go b/kubernetes.go index 4a98ee6..7fbc522 100644 --- a/kubernetes.go +++ b/kubernetes.go @@ -55,6 +55,7 @@ type KubernetesCluster struct { KubeConfig string `json:"kubeconfig"` KubernetesVersion string `json:"kubernetes_version"` APIEndPoint string `json:"api_endpoint"` + MasterIP string `json:"master_ip"` DNSEntry string `json:"dns_entry"` UpgradeAvailableTo string `json:"upgrade_available_to"` Tags []string `json:"tags"` diff --git a/kubernetes_test.go b/kubernetes_test.go index 46b1dfc..5f86d25 100644 --- a/kubernetes_test.go +++ b/kubernetes_test.go @@ -20,6 +20,7 @@ func TestListKubernetesClusters(t *testing.T) { "kubeconfig": "YAML_VERSION_OF_KUBECONFIG_HERE\n", "kubernetes_version": "0.8.1", "api_endpoint": "https://your.cluster.ip.address:6443", + "master_ip": "your.cluster.ip.address", "dns_entry": "69a23478-a89e-41d2-97b1-6f4c341cee70.k8s.civo.com", "tags": [], "created_at": "2019-09-23T13:02:59.000+01:00", @@ -80,6 +81,7 @@ func TestListKubernetesClusters(t *testing.T) { KubeConfig: "YAML_VERSION_OF_KUBECONFIG_HERE\n", KubernetesVersion: "0.8.1", APIEndPoint: "https://your.cluster.ip.address:6443", + MasterIP: "your.cluster.ip.address", DNSEntry: "69a23478-a89e-41d2-97b1-6f4c341cee70.k8s.civo.com", CreatedAt: createAt, Tags: []string{}, @@ -168,6 +170,7 @@ func TestNewKubernetesClusters(t *testing.T) { "kubeconfig": "YAML_VERSION_OF_KUBECONFIG_HERE\n", "kubernetes_version": "0.8.1", "api_endpoint": "https://your.cluster.ip.address:6443", + "master_ip": "your.cluster.ip.address", "dns_entry": "69a23478-a89e-41d2-97b1-6f4c341cee70.k8s.civo.com", "tags": [], "created_at": "2019-09-23T13:02:59.000+01:00", @@ -233,6 +236,7 @@ func TestNewKubernetesClusters(t *testing.T) { KubeConfig: "YAML_VERSION_OF_KUBECONFIG_HERE\n", KubernetesVersion: "0.8.1", APIEndPoint: "https://your.cluster.ip.address:6443", + MasterIP: "your.cluster.ip.address", DNSEntry: "69a23478-a89e-41d2-97b1-6f4c341cee70.k8s.civo.com", CreatedAt: createAt, Tags: []string{}, @@ -280,6 +284,7 @@ func TestGetKubernetesClusters(t *testing.T) { "kubeconfig": "YAML_VERSION_OF_KUBECONFIG_HERE\n", "kubernetes_version": "0.8.1", "api_endpoint": "https://your.cluster.ip.address:6443", + "master_ip": "your.cluster.ip.address", "dns_entry": "69a23478-a89e-41d2-97b1-6f4c341cee70.k8s.civo.com", "tags": [], "created_at": "2019-09-23T13:02:59.000+01:00", @@ -336,6 +341,7 @@ func TestGetKubernetesClusters(t *testing.T) { KubeConfig: "YAML_VERSION_OF_KUBECONFIG_HERE\n", KubernetesVersion: "0.8.1", APIEndPoint: "https://your.cluster.ip.address:6443", + MasterIP: "your.cluster.ip.address", DNSEntry: "69a23478-a89e-41d2-97b1-6f4c341cee70.k8s.civo.com", CreatedAt: createAt, Tags: []string{}, @@ -383,6 +389,7 @@ func TestUpdateKubernetesClusters(t *testing.T) { "kubeconfig": "YAML_VERSION_OF_KUBECONFIG_HERE\n", "kubernetes_version": "0.8.1", "api_endpoint": "https://your.cluster.ip.address:6443", + "master_ip": "your.cluster.ip.address", "dns_entry": "69a23478-a89e-41d2-97b1-6f4c341cee70.k8s.civo.com", "tags": [], "created_at": "2019-09-23T13:02:59.000+01:00", @@ -444,6 +451,7 @@ func TestUpdateKubernetesClusters(t *testing.T) { KubeConfig: "YAML_VERSION_OF_KUBECONFIG_HERE\n", KubernetesVersion: "0.8.1", APIEndPoint: "https://your.cluster.ip.address:6443", + MasterIP: "your.cluster.ip.address", DNSEntry: "69a23478-a89e-41d2-97b1-6f4c341cee70.k8s.civo.com", CreatedAt: createAt, Tags: []string{},