-
Notifications
You must be signed in to change notification settings - Fork 229
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
[BUG] Can't update any rancher2_role_template
#1381
Milestone
Comments
This was referenced Sep 5, 2024
matttrach
added
version/v6
version/rancher-v2.10
and removed
version/rancher-v2.8
labels
Sep 6, 2024
matttrach
changed the title
[BUG] can't update any
[BUG] Can't update any Sep 6, 2024
rancher2_role_template
due to new external_rules
attributerancher2_role_template
due to new external_rules
attribute
matttrach
changed the title
[BUG] Can't update any
[BUG] Can't update any Sep 9, 2024
rancher2_role_template
due to new external_rules
attributerancher2_role_template
matttrach
added
version/rancher-v2.8
version/v4
and removed
version/v6
version/rancher-v2.10
labels
Sep 16, 2024
Validated on v2.10-head id
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Rancher Server Setup
v2.8.5
RKE1
Information about the Cluster
v1.28.7
Local
User Information
Admin
Provider Information
v4.2.0
v1.5.7
Describe the bug
We have custom roles without external_rules defined. When
terraform-provider-rancher2
to v4.2.0 any update to the arancher2_role_template
resource is blocked by the Rancher Webhook with the following error message:The provider might be sending and empty array value for the
externalRules
attribute to the rancher API but the Rancher Webhook checks for a nil value. See: https://github.com/rancher/webhook/blob/main/pkg/resources/management.cattle.io/v3/roletemplate/validator.go#L130To Reproduce
With kubectl, edit a roletemplates by adding
externalRules: []
to the manifest.Actual Result
See error above
Expected Result
Role template should be updated
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: