modules/mu/clouds/google/container_cluster.rb in cloud-mu-3.0.0beta vs modules/mu/clouds/google/container_cluster.rb in cloud-mu-3.0.0
- old
+ new
@@ -462,11 +462,11 @@
kubeconfig: kube_conf,
outputdir: @deploy.deploy_dir
)
end
- MU.log %Q{How to interact with your Kubernetes cluster\nkubectl --kubeconfig "#{kube_conf}" get events --all-namespaces\nkubectl --kubeconfig "#{kube_conf}" get all\nkubectl --kubeconfig "#{kube_conf}" create -f some_k8s_deploy.yml\nkubectl --kubeconfig "#{kube_conf}" get nodes}, MU::SUMMARY
+ MU.log %Q{How to interact with your GKE cluster\nkubectl --kubeconfig "#{kube_conf}" get events --all-namespaces\nkubectl --kubeconfig "#{kube_conf}" get all\nkubectl --kubeconfig "#{kube_conf}" create -f some_k8s_deploy.yml\nkubectl --kubeconfig "#{kube_conf}" get nodes}, MU::SUMMARY
end
# Locate an existing ContainerCluster or ContainerClusters and return an array containing matching GCP resource descriptors for those that match.
# @return [Array<Hash<String,OpenStruct>>]: The cloud provider's complete descriptions of matching ContainerClusters
@@ -1054,9 +1054,17 @@
credentials: cluster["credentials"]
)
cluster['dependencies'] << {
"type" => "user",
"name" => cluster["name"]
+ }
+ end
+
+ if cluster['dependencies']
+ cluster['dependencies'].each { |dep|
+ if dep['type'] == "vpc"
+ dep['phase'] = "groom"
+ end
}
end
if (cluster['pod_ip_block_name'] or cluster['services_ip_block_name']) and
cluster['custom_subnet']