-
Notifications
You must be signed in to change notification settings - Fork 101
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
[minor_change] Add read-only pcTag, scope and segment attributes to aci_bridge_domain resource and datasource and add scope to aci_endpoint_security_group and aci_application_epg resources and datasources (DCNE-257) #1302
base: master
Are you sure you want to change the base?
Conversation
e73c5d6
to
d523689
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1302 +/- ##
==========================================
+ Coverage 85.45% 85.49% +0.04%
==========================================
Files 125 125
Lines 70689 70986 +297
==========================================
+ Hits 60409 60693 +284
- Misses 8324 8337 +13
Partials 1956 1956 ☔ View full report in Codecov by Sentry. |
@@ -227,6 +227,10 @@ All examples for the Bridge Domain resource can be found in the [examples](https | |||
* `name_alias` (nameAlias) - (string) The name alias of the Bridge Domain object. | |||
* `owner_key` (ownerKey) - (string) The key for enabling clients to own their data for entity correlation. | |||
* `owner_tag` (ownerTag) - (string) A tag for enabling clients to add their own data. For example, to indicate who created this object. | |||
* `pc_tag` (pcTag) - (string) The classification tag used for policy enforcement and zoning. | |||
* `scope` (scope) - (string) The L3 scope ID of the Bridge Domain object. | |||
- Default: `0` |
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.
Shall we skip specifying a Default for this, if it is a Read Only property?
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.
Yes but it should also not be under optional. We already discussed this issue. Created a new issue to track this: #1303
gen/templates/resource.go.tmpl
Outdated
@@ -1412,14 +1412,9 @@ func (r *{{.ResourceClassName}}Resource) Schema(ctx context.Context, req resourc | |||
stringplanmodifier.UseStateForUnknown(), | |||
}, | |||
{{- end}} | |||
{{- if or .ValidValues $.HasReadOnlyProperties}} | |||
{{- if or .ValidValues}} |
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.
Wouldn't this change bring the "update in place" issue we spoke about earlier? or was this fixed in Terraform side?
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.
I do not see this issues so not sure this is the same situation you had.
The “MakeSingleNestedAttributeRequiredAttributesNotProvidedValidator("{{.ResourceName}}", []string{"{{listToString .RequiredPropertiesNames}}"}),” part already handles the required setting in single nested attributes to allow for {} to be passed in when there are required attributes so the MakeStringRequired should not be used in the validator.
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.
LGTM!
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.
LGTM
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.
LGTM
d523689
to
85a8767
Compare
85a8767
to
f93e021
Compare
…nd all in testvars
…ci_bridge_domain resource and datasource and add scope to aci_endpoint_security_group and aci_application_epg resources and datasources
f93e021
to
8f7cd5c
Compare
…e nested attributes
No description provided.