Skip to content

Create resource ydb_topic_consumer #6 #9

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

rasha108bik
Copy link

#6

@rasha108bik rasha108bik force-pushed the feature/create-resource-6 branch from 28f56a6 to 536f8a4 Compare March 2, 2023 05:20
@rasha108bik rasha108bik closed this Mar 2, 2023
@rasha108bik rasha108bik reopened this Mar 2, 2023
@rasha108bik rasha108bik force-pushed the feature/create-resource-6 branch 2 times, most recently from bcc9564 to 045a1c3 Compare March 2, 2023 05:45
Makefile Outdated
@@ -9,4 +9,4 @@ local-build:
go build -o $(HOME)/.terraform.d/plugins/terraform.storage.ydb.tech/provider/ydb/$(SEMVER)/$(shell go env GOOS)_$(shell go env GOARCH)/terraform-provider-ydb main.go

build:
go build -o bin/terraform-provider-ydb main.go
go build -o bin/terraform-provider-ydb main.go
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Верни newline)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

вернул

@@ -40,101 +36,6 @@ var (
}
)

func MergeConsumerSettings(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это нужно оставить. Как минимум, для обратной совместимости с тем, что было.

Код топиков почти используется(ждёт релиза) здесь: https://github.com/yandex-cloud/terraform-provider-yandex

Представим, что кто-то из пользователей завяжется на эту логику. И ему всё, очевидно, разнесёт

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

вернул

@rasha108bik rasha108bik force-pushed the feature/create-resource-6 branch from 088717a to fecc8de Compare March 5, 2023 06:38
Comment on lines 115 to 118
"service_type": {
Type: schema.TypeString,
Computed: true,
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Мне почему-то кажется, что это не используется...
Давай спилим

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment on lines 96 to 99
"name": {
Type: schema.TypeString,
Required: true,
ValidateFunc: validation.NoZeroValues,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Давай сюда добавим ForceNew: true

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment on lines 92 to 95
"database_endpoint": {
Type: schema.TypeString,
Optional: true,
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Давай добавим сюда ForceNew: true

И поменяем database_endpoint на connection_string

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment on lines 96 to 99
"name": {
Type: schema.TypeString,
Required: true,
ValidateFunc: validation.NoZeroValues,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А где путь до топика? Его точно хочется уметь задавать

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ты про table_path ?

@rasha108bik rasha108bik force-pushed the feature/create-resource-6 branch 4 times, most recently from 94e124a to dcf74e9 Compare March 10, 2023 05:32
Comment on lines +89 to +93
"connection_string": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А куда он ведёт?

@rasha108bik rasha108bik force-pushed the feature/create-resource-6 branch from e4cb5e8 to dc1e470 Compare March 22, 2023 12:56
@rasha108bik rasha108bik force-pushed the feature/create-resource-6 branch from dc1e470 to 738d93d Compare March 22, 2023 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants