feat: provide clusterName when available#22
feat: provide clusterName when available#22ofrobots wants to merge 1 commit intostephenplusplus:masterfrom
Conversation
isContainerEngine is already acquiring the clusterName when running on GKE. Provide this value on the environment.
|
It seems that the the tests are broken with/without this change. I am looking into that too. |
|
|
|
Is there anything specific you have in mind that we should add? |
|
I'm not sure of any specifics that come back, but my thought was that the whole of Putting the extra data into a bucket, such as WDYT? |
|
As you mentioned previously, this is starting to feel more and more out of place. This doesn't have anything to do auth per se. With the cluster name it seemed okay enough because we have to query the The questions that open up if you cache more attributes:
You do have a good point that adding more and more logic about metadata here isn't going to be scalable. If we need to expand this further in the future, then I think we should spin off the environment logic into a module of its own, or merge it with For now caching just |
Yes, but I would be willing to put that on the horizon for a future PR. For the remaining points, we would need a way to differentiate between:
Using that system,
If we can't find a way to be consistent, then we're not likely to get back to this task, and we'll be stuck with an out of place one-off for "clusterName". So if we just need "clusterName" for GCN, I'd rather GCN uses If we can find a way to be consistent, and there's a way to get Category A responses for all environments, then let's put "clusterName" in a "env.details" bucket, for sake of future proofing. |
IMO,
It would be the same endpoint. I don't have a concrete use-case for that though.
I don't really think there is a subset that has business in the 'auth' library. Even I guess the conclusion would be to close this PR and then add |
|
Superceded by googleapis/google-cloud-node#2483. |
isContainerEngine is already acquiring the clusterName when running on
GKE. Provide this value on the environment.