From e766a73dda755d6da5cb2bb916b3174cc362e898 Mon Sep 17 00:00:00 2001 From: Dennis Hume Date: Tue, 28 Nov 2023 13:12:52 -0600 Subject: [PATCH] Check --- integration/source.tf | 9 +++++++++ pkg/resources/resource_secret.go | 2 +- pkg/resources/resource_table.go | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/integration/source.tf b/integration/source.tf index 0bb1f57b..73cb2c2e 100644 --- a/integration/source.tf +++ b/integration/source.tf @@ -9,6 +9,9 @@ resource "materialize_source_load_generator" "load_generator" { counter_options { tick_interval = "500ms" } + expose_progress { + name = "expose_load_gen" + } } resource "materialize_source_load_generator" "load_generator_cluster" { @@ -79,6 +82,9 @@ resource "materialize_source_postgres" "example_source_postgres" { name = "table2" alias = "s2_table1" } + expose_progress { + name = "expose_postgres" + } } resource "materialize_source_postgres" "example_source_postgres_schema" { @@ -112,6 +118,9 @@ resource "materialize_source_kafka" "example_source_kafka_format_text" { value_format { text = true } + expose_progress { + name = "expose_kafka" + } } resource "materialize_source_kafka" "example_source_kafka_format_bytes" { diff --git a/pkg/resources/resource_secret.go b/pkg/resources/resource_secret.go index a06be393..f199e6de 100644 --- a/pkg/resources/resource_secret.go +++ b/pkg/resources/resource_secret.go @@ -21,7 +21,7 @@ var secretSchema = map[string]*schema.Schema{ "value": { Description: "The value for the secret. The value expression may not reference any relations, and must be a bytea string literal.", Type: schema.TypeString, - Optional: true, + Required: true, Sensitive: true, }, "ownership_role": OwnershipRoleSchema(), diff --git a/pkg/resources/resource_table.go b/pkg/resources/resource_table.go index 139f4fcb..0beafc71 100644 --- a/pkg/resources/resource_table.go +++ b/pkg/resources/resource_table.go @@ -59,7 +59,7 @@ var tableSchema = map[string]*schema.Schema{ "comment": CommentSchema(false), }, }, - Optional: true, + Required: true, MinItems: 1, ForceNew: true, },