-
Notifications
You must be signed in to change notification settings - Fork 3
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
base: main
Are you sure you want to change the base?
Create resource ydb_topic_consumer #6 #9
Conversation
28f56a6
to
536f8a4
Compare
bcc9564
to
045a1c3
Compare
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 |
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.
Верни newline)
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.
вернул
internal/helpers/topic/topic.go
Outdated
@@ -40,101 +36,6 @@ var ( | |||
} | |||
) | |||
|
|||
func MergeConsumerSettings( |
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.
Это нужно оставить. Как минимум, для обратной совместимости с тем, что было.
Код топиков почти используется(ждёт релиза) здесь: https://github.com/yandex-cloud/terraform-provider-yandex
Представим, что кто-то из пользователей завяжется на эту логику. И ему всё, очевидно, разнесёт
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.
вернул
088717a
to
fecc8de
Compare
"service_type": { | ||
Type: schema.TypeString, | ||
Computed: true, | ||
}, |
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.
Мне почему-то кажется, что это не используется...
Давай спилим
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.
done
"name": { | ||
Type: schema.TypeString, | ||
Required: true, | ||
ValidateFunc: validation.NoZeroValues, |
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.
Давай сюда добавим ForceNew: true
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.
done
"database_endpoint": { | ||
Type: schema.TypeString, | ||
Optional: true, | ||
}, |
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.
Давай добавим сюда ForceNew: true
И поменяем database_endpoint
на connection_string
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.
done
"name": { | ||
Type: schema.TypeString, | ||
Required: true, | ||
ValidateFunc: validation.NoZeroValues, |
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.
А где путь до топика? Его точно хочется уметь задавать
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.
ты про table_path ?
94e124a
to
dcf74e9
Compare
"connection_string": { | ||
Type: schema.TypeString, | ||
Optional: true, | ||
ForceNew: true, | ||
}, |
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.
А куда он ведёт?
e4cb5e8
to
dc1e470
Compare
dc1e470
to
738d93d
Compare
#6