Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

[WIP] Better cluster tests #12

Merged
merged 7 commits into from
Jan 31, 2019
Merged

[WIP] Better cluster tests #12

merged 7 commits into from
Jan 31, 2019

Conversation

robmorgan
Copy link
Contributor

This PR expands the GKE tests to check the health of the Kubernetes cluster.

@robmorgan robmorgan changed the base branch from master to module-design January 25, 2019 02:54
@@ -4,8 +4,19 @@ output "cluster_endpoint" {
value = "${module.gke_cluster.endpoint}"
}

output "client_certificate" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's my understanding that we've disabled this type of auth and these outputs won't do anything?

@yorinasub17
Copy link
Contributor

The code LGTM. We still have to figure out why the copy isn't working as expected.

# required for gcloud and kubectl to authenticate correctly
echo $GCLOUD_SERVICE_KEY | gcloud auth activate-service-account --key-file=-
gcloud --quiet config set project ${GOOGLE_PROJECT_ID}
gcloud --quiet config set compute/zone ${GOOGLE_COMPUTE_ZONE}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need a zone set specifically, or do we really want a region?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I swear something was failing if only the project was set. I added zone and it worked, but I didn't try region. Could test it.

output "cluster_ca_certificate" {
description = "The public certificate that is the root of trust for the cluster. Encoded as base64."
description = "The public certificate that is the root of trust for the cluster."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's likely still worth noting that these are base64'ed so users know to decode them to use them.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think technically I actually decode them now directly in the module, which may or may not be a good idea.

@robmorgan robmorgan force-pushed the better-cluster-tests branch from 41d832b to 462bb06 Compare January 31, 2019 02:40
@robmorgan robmorgan merged commit 8103773 into module-design Jan 31, 2019
@robmorgan robmorgan deleted the better-cluster-tests branch January 31, 2019 03:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants