-
Notifications
You must be signed in to change notification settings - Fork 33
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
Added entities for work with DNS v2 API. #249
Conversation
В данный момент немножко хромает прод, могут быть проблемы при прогоне - уже фиксим. |
…dded optional field project_id for entities selectel_domains_v2. Fix work with optional fields.
Исправили то что хотели. |
Еще, как я помню, надо бы документацию добавить в |
Добавил документацию по образцу остальных команд.
|
Убрал замечание из линтера. Остался вопрос с тестами для импорта.
Остановился на втором варианте. |
…d() instead of creating new variable with name resourceID.
Добавил комментарии в функции импорта в ресурсах |
@@ -8,7 +8,9 @@ description: |- | |||
|
|||
# selectel\_domains\_domain_v1 | |||
|
|||
Provides an ID of a domain in DNS Hosting. For more information about domains in DNS Hosting, see the [official Selectel documentation](https://docs.selectel.ru/networks-services/dns/domains/). | |||
~> **Note:** This is legacy datasource. Using the `selectel_domains_zone_v2` datasource. They utilize different API and created zones live on different authoritative servers. Zone created in v2 API is entirely new zone, and not available via v1 api and vice versa. |
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.
Все Note нужно изменить на оформление как warning
~> Note: This data source is applicable to DNS Hosting (legacy). We do not support and develop DNS Hosting (legacy), but domains and records created in DNS Hosting (legacy) continue to work until further notice. We recommend to transfer your data to DNS Hosting (actual). For more infomation about DNS Hosting (actual), see the official Selectel documentation.
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.
В дескрипшене (стр. 6) надо поправить:
Provides an ID of a domain in Selectel DNS Hosting (legacy)
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.
Заменил Note на Warning. Чтобы выглядело как тут
В дальнейшем буду просто писать "Заменил Note на Warning".
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.
Исправил замечания.
```hcl | ||
resource "selectel_domains_rrset_v2" "a_rrset_1" { | ||
zone_id = "zone_id" | ||
name = "a.example.com." |
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.
Скорее всего лучше писать руками.
Поправил. только в MX записи content не менял. И не менял ещё где в record_v1
используются переменные в name
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.
Исправил замечания
Удалил datasource для domains_v2 так как они противоречат концепции datasources в terraform.
|
Added selectel_domains_zone_v2 resource. Added selectel_domains_rrset_v2 resource.
Планируется публичный релиз DNS v2 API.
В данный момент API v2 доступно для использования, но докуметации и UI апдейта ещё нет.
Добавил новые ресурсы:
selectel_domains_zone_v2
selectel_domains_rrset_v2
Добавил новые datasource:
selectel_domains_zone_v2
selectel_domains_rrset_v2
Обновил версию библиотеки domains-go.