Skip to content

Commit cb848f4

Browse files
fix: mark binding "security_context" as purely computed [ENG-6249] (#158)
[ENG-6249](https://stacklet.atlassian.net/browse/ENG-6249) ### what mark the "security_context" attribute in the binding resource as not optional (while still computed), making it purely a computed value ### why this prevents practitioners from setting a value in the config, which is not supported, since setting is done via "security_context_wo"/"security_context_wo_version". With this, terraform raises a proper error ### testing local testing ### docs n/a [ENG-6249]: https://stacklet.atlassian.net/browse/ENG-6249?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
1 parent f0f453e commit cb848f4

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

internal/resources/binding.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ func (r *bindingResource) Schema(_ context.Context, _ resource.SchemaRequest, re
123123
},
124124
"security_context": schema.StringAttribute{
125125
Description: "The binding execution security context.",
126-
Optional: true,
127126
Computed: true,
128127
},
129128
"security_context_wo": schema.StringAttribute{

0 commit comments

Comments
 (0)