-
Notifications
You must be signed in to change notification settings - Fork 910
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gke-cluster-autopilot: add logging configuration #1625
gke-cluster-autopilot: add logging configuration #1625
Conversation
Although one cannot disable Cloud Logging and Cloud Monitoring integration in GKE Autopilot clusters, one has some flexibility over which control plane components' logs should be ingested. This commit adds a new variable and a block to the cluster resource to facilitate that.
thanks @olliefr for the patch and fixing the typos! Reading the documentation, it looks like this variable would make sense for standard clusters too. Would you mind porting it to the
Please do! |
…ter-standard The input is now defined and consumed in the same style as in gke-cluster-standard module for consistency reasons. Bonus: added validation for the logging_config input variable.
Hi @juliocc I believe
So what I did, I updated my PR to match the coding style and added input variable validation on top of that so now there is going to be consistent interface between the standard and autopilot modules. |
@olliefr I actually prefer your original interface using an object. Would you mind reverting your last commit? And if you're up to it, also update the standard module to use a similar syntax. You can do this in a separate PR if you prefer. |
…gke-cluster-standard" This reverts commit 82ec49d.
…e to module README
Head branch was pushed to by a user without write access
@juliocc I happen to prefer the original interface too! 😆 I reverted the interface to use an object in the latest commit. I also added a test for The |
I also just searched the whole |
Although one cannot disable Cloud Logging and Cloud Monitoring integration in GKE Autopilot clusters, one has some flexibility over which control plane components' logs should be ingested. This commit adds a new variable and a block to the cluster resource to facilitate that. * gke-cluster-autopilot: update logging configuration and add an example to module README
Although one cannot disable Cloud Logging and Cloud Monitoring integration in GKE Autopilot clusters, one has some flexibility over which control plane components' logs should be ingested: Available logs
This PR adds a new variable and a block to the cluster resource to facilitate that.
I have attempted to imitate the style of the original code to the best of my abilities. I'm happy to change it if I got it wrong.
I run Terraform format; followed by
tfdoc
to generate the README.Feedback is welcome 🙃
PS Against my better judgement, I also fixed a few typos in comments elsewhere, I hope it's OK 😈
PPS If this PR is of interest, I could also do the monitoring config to the same standard in a separate PR...