-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Enabling two features in beta clusters #188
Enabling two features in beta clusters #188
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chrislovecnm I believe the reason why those features were only added to the private cluster was because they require the beta provider. Fortunately, the template logic has been updated to account for beta clusters!
README.md
Outdated
@@ -109,75 +109,6 @@ Version 1.0.0 of this module introduces a breaking change: adding the `disable-l | |||
In either case, upgrading to module version `v1.0.0` will trigger a recreation of all node pools in the cluster. | |||
|
|||
[^]: (autogen_docs_start) | |||
|
|||
## Inputs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please run make generate_docs
to regenerate the tables after make generate
regenerates the modules.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
I will update. Thanks for the review |
4e4119f
to
3b23985
Compare
@aaron-lane @morgante PTAL - I updated the PR title and body to reflect the changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please run make generate_docs
, otherwise LGTM.
3b23985
to
c6c56ad
Compare
#191 needs to be merged. I forgot that the README.md lives in the autogen directory as well. |
c6c56ad
to
13bf6dd
Compare
Updated with generate_docs. @morgante / @aaron-lane I added 13bf6dd which can be dropped before merging. This is the same as changes as #191. This should allow this PR to pass CI now. |
Not a guru in terraform, so I am not quite sure where this is coming from. |
c6c77db
to
70a4775
Compare
Please do not merge, I am working on what I think are some bugs. |
@morgante @aaron-lane the latest bug I am trying to figure out is:
I am confused a bit as I have defined enable_binary_authorization in the
and then
|
So I cannot get the output to work, but really I do not care at this point. If we want to add the output for binary authorization later we can. |
@morgante @aaron-lane we are missing a bunch of other beta features. Do you want another PR or just to update this one? For example |
This allow pod security policies and binary authorization to be used by both beta private and beta public clusters. Previously these two features where limited to only private clusters, and this commit also removes that functionality from private clusters.
e6566ec
to
48bfedf
Compare
@chrislovecnm let's handle the additional features in different pull requests to minimize the amount of content to review per branch. |
Yeah, that's fine. Go ahead and drop it. |
Hello guys, I have the following
output "instance_id" {
value = "${lookup(var.google_compute_instance.default, count.index)}"
}
resource "google_compute_instance" "default" {
count = "${var.number_of_vms}"
name = "remo-${count.index + 1}-${random_id.instance_id.hex}”
$ terraform validate
Error: Reference to undeclared input variable
on main.tf line 42, in output "instance_id":
42: value = "${lookup(var.google_compute_instance.default, count.index)}"
An input variable with the name "google_compute_instance" has not been
declared. This variable can be declared with a variable
"google_compute_instance" {} block.
Error: Reference to "count" in non-counted context
on main.tf line 42, in output "instance_id":
42: value = "${lookup(var.google_compute_instance.default, count.index)}"
The "count" object can be used only in "resource" and "data" blocks, and only
when the "count" argument is set.
Any tips will be great.
Thanks
|
@itlinux please file your question on an issue https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/issues/new |
@morgante @aaron-lane PTAL ... CI is passing |
@chrislovecnm Thanks for the contribution. |
…ble-features-in-public-clusters Enabling two features in beta clusters
This allows pod security policies and binary authorization to be used
by both beta private and beta public clusters. Previously these two features
where limited to only private clusters, and this commit also removes
that functionality from private clusters.