-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
[WIP] Add Triton CNS tag support. #6115
Conversation
One of the reasons why the AccTest is failing is because of GH-6148. |
@stack72, I want to expose a field called "DomainNames" which is an array of strings derived from the machine name and the tag values of triton_cns_services. What is the best way to include a resource feature that is "read-only" ? Should I include it in the schema and set Computed to true? Is there a way to return it as an output variable, if so can you point me to an example in code that does that? Thank you. |
Hi @sodre Not sure what you mean by readonly? Do you mean that get's returned from the API only and cannot be set by the user? P. |
Hi Paul, Exactly what you said. It can’t be set directly by the user. Patrick
|
Thanks! I’ll make the mods and check it in with tests this weekend. Patrick
|
👍 |
I am investigating if PR #6322 fixes the issue for us as well. If it does then there is no need to use my transformation. |
Hi @sodre Any thoughts on whether we still need this PR? P. |
Hi Paul, I tested one of the fixes that supports '.' and it did not work for me. I am without a computer until Sunday night, I'll retest it. Patrick Sent from my iPhone
|
No worries :) On Fri, May 20, 2016 at 1:51 PM, Patrick Sodré [email protected]
|
The code does an invertible transformation of the Triton CNS tags effectively mapping '_':'__' followed by '.':'_' Closes #5836
Added a TODO in the code that can be addressed when TritonDataCenter/gosdc#31 is closed.
Hi @sodre ping :) Anything you need here? P. |
Hi @stack72, Unfortunately, it was not clear to me how the fix translated to what gets written in the terraform config files, or whether it required modifications to the provider code. I never heard back from @jen20 on how he was able to get it to work for his case. I will leave it up to you. The worst case is having to undo the change in a future release and deprecate the transformation my code currently implements. Patrick |
@stack72 the code is ready from my side. |
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. |
The code does an invertible transformation of the Triton CNS tags
effectively mapping
_ -> __
followed by. -> _
.Suggested modification to address #5836.