-
Notifications
You must be signed in to change notification settings - Fork 106
Add logic for static custom type (DCNE-632) #1437
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
base: master
Are you sure you want to change the base?
Conversation
…attribute for the verification
gen/templates/custom_type.go.tmpl
Outdated
| @@ -1,3 +1,7 @@ | |||
| // Code generated by "gen/generator.go"; DO NOT EDIT. | |||
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.
split this change to split PR to reduce changes and quick review
| {{.ResourceClassName}}{{ .Name }} types.String `tfsdk:"{{overwriteProperty .PkgName .SnakeCaseName $.Definitions}}"` | ||
| {{- else if .HasCustomType}} | ||
| {{ .Name }} customTypes.{{.ResourceClassName}}{{.Name}}StringValue `tfsdk:"{{overwriteProperty .PkgName .SnakeCaseName $.Definitions}}"` | ||
| {{ .Name }} customTypes.{{- if .StaticCustomType}}{{.StaticCustomType}}{{else}}{{.ResourceClassName}}{{.Name}}{{- end}}StringValue `tfsdk:"{{overwriteProperty .PkgName .SnakeCaseName $.Definitions}}"` |
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.
missing legacy attribute support and changes
| name: "131" | ||
| custom_type: | ||
| ip: fe80::0002 | ||
| static_custom_type: |
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.
did you check for all other attributes in other resources where ipv6 types should be used?
|
what is the impact during provider upgrade? |
ab53192 to
c5ba742
Compare
c5ba742 to
33df5c1
Compare
No description provided.