You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Terraform provider is expected to demonstrate similar behavior to the Kubernetes API. HCl code and terraform apply should produce the same result as YAML and kubectl apply.
Actual Behavior
Terraform indicates that At least 1 "rule" blocks are required (is that proper Engrish?), which is not the case when running kubectl apply with the YAML version of the code. Moreover, the documentation lists rule blocks as optional.
Important Factoids
The resource documentation shows rule as being optional, which is how the Kubernetes API works as well. But wait! The Dynamic Admission Controllers documentation says that [e]ach webhook must specify a list of rules! Case closed, you say - the documentation supports the requirement. Indeed it does not, because an empty list is a valid list, and the API docs for eachresource do not specify a minimum length for the list!
Community Note
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
The text was updated successfully, but these errors were encountered:
Thank you for reporting this issue. It seems to be a duplicate of this one. There is PR that addresses this issue. Please keep an eye on our release notes.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Terraform Version, Provider Version and Kubernetes Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
tl;dr
See the whole thing here.
Steps to Reproduce
terraform init
terraform apply
Expected Behavior
The Terraform provider is expected to demonstrate similar behavior to the Kubernetes API. HCl code and
terraform apply
should produce the same result as YAML andkubectl apply
.Actual Behavior
Terraform indicates that
At least 1 "rule" blocks are required
(is that proper Engrish?), which is not the case when runningkubectl apply
with the YAML version of the code. Moreover, the documentation listsrule
blocks as optional.Important Factoids
The resource documentation shows
rule
as beingoptional
, which is how the Kubernetes API works as well. But wait! The Dynamic Admission Controllers documentation says that[e]ach webhook must specify a list of rules
! Case closed, you say - the documentation supports the requirement. Indeed it does not, because an empty list is a valid list, and the API docs for each resource do not specify a minimum length for the list!Community Note
The text was updated successfully, but these errors were encountered: