From a2fbae2fad921404b6d03d9eb3b17d6c4b4f8d13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Ho=C3=9F?= Date: Fri, 27 Sep 2024 19:28:13 +0200 Subject: [PATCH] fix examples MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sebastian Hoß --- ...networking_k8s_io_backend_lb_policy_v1alpha2_manifest.md | 3 +++ ...etworking_k8s_io_backend_tls_policy_v1alpha3_manifest.md | 6 ++++++ ...eue_x_k8s_io_workload_priority_class_v1beta1_manifest.md | 2 +- ...perator_victoriametrics_com_vm_probe_v1beta1_manifest.md | 5 +++++ ...operator_victoriametrics_com_vm_rule_v1beta1_manifest.md | 3 +++ ...ictoriametrics_com_vm_service_scrape_v1beta1_manifest.md | 3 +++ docs/data-sources/work_karmada_io_work_v1alpha1_manifest.md | 1 + .../data-source.tf | 3 +++ .../data-source.tf | 6 ++++++ .../data-source.tf | 2 +- .../data-source.tf | 5 +++++ .../data-source.tf | 3 +++ .../data-source.tf | 3 +++ .../data-source.tf | 1 + 14 files changed, 44 insertions(+), 2 deletions(-) diff --git a/docs/data-sources/gateway_networking_k8s_io_backend_lb_policy_v1alpha2_manifest.md b/docs/data-sources/gateway_networking_k8s_io_backend_lb_policy_v1alpha2_manifest.md index 066a0d549..9e2470254 100644 --- a/docs/data-sources/gateway_networking_k8s_io_backend_lb_policy_v1alpha2_manifest.md +++ b/docs/data-sources/gateway_networking_k8s_io_backend_lb_policy_v1alpha2_manifest.md @@ -18,6 +18,9 @@ data "k8s_gateway_networking_k8s_io_backend_lb_policy_v1alpha2_manifest" "exampl name = "some-name" namespace = "some-namespace" } + spec = { + target_refs = [] + } } ``` diff --git a/docs/data-sources/gateway_networking_k8s_io_backend_tls_policy_v1alpha3_manifest.md b/docs/data-sources/gateway_networking_k8s_io_backend_tls_policy_v1alpha3_manifest.md index c4397dbf8..4190ce702 100644 --- a/docs/data-sources/gateway_networking_k8s_io_backend_tls_policy_v1alpha3_manifest.md +++ b/docs/data-sources/gateway_networking_k8s_io_backend_tls_policy_v1alpha3_manifest.md @@ -18,6 +18,12 @@ data "k8s_gateway_networking_k8s_io_backend_tls_policy_v1alpha3_manifest" "examp name = "some-name" namespace = "some-namespace" } + spec = { + target_refs = [] + validation = { + hostname = "some-host" + } + } } ``` diff --git a/docs/data-sources/kueue_x_k8s_io_workload_priority_class_v1beta1_manifest.md b/docs/data-sources/kueue_x_k8s_io_workload_priority_class_v1beta1_manifest.md index 6a955b180..3b6d45a9d 100644 --- a/docs/data-sources/kueue_x_k8s_io_workload_priority_class_v1beta1_manifest.md +++ b/docs/data-sources/kueue_x_k8s_io_workload_priority_class_v1beta1_manifest.md @@ -16,8 +16,8 @@ WorkloadPriorityClass is the Schema for the workloadPriorityClass API data "k8s_kueue_x_k8s_io_workload_priority_class_v1beta1_manifest" "example" { metadata = { name = "some-name" - } + value = 12345 } ``` diff --git a/docs/data-sources/operator_victoriametrics_com_vm_probe_v1beta1_manifest.md b/docs/data-sources/operator_victoriametrics_com_vm_probe_v1beta1_manifest.md index 420d14a30..71429f307 100644 --- a/docs/data-sources/operator_victoriametrics_com_vm_probe_v1beta1_manifest.md +++ b/docs/data-sources/operator_victoriametrics_com_vm_probe_v1beta1_manifest.md @@ -18,6 +18,11 @@ data "k8s_operator_victoriametrics_com_vm_probe_v1beta1_manifest" "example" { name = "some-name" namespace = "some-namespace" } + spec = { + vm_prober_spec = { + url = "some-url" + } + } } ``` diff --git a/docs/data-sources/operator_victoriametrics_com_vm_rule_v1beta1_manifest.md b/docs/data-sources/operator_victoriametrics_com_vm_rule_v1beta1_manifest.md index 5b5122122..f6301c33f 100644 --- a/docs/data-sources/operator_victoriametrics_com_vm_rule_v1beta1_manifest.md +++ b/docs/data-sources/operator_victoriametrics_com_vm_rule_v1beta1_manifest.md @@ -18,6 +18,9 @@ data "k8s_operator_victoriametrics_com_vm_rule_v1beta1_manifest" "example" { name = "some-name" namespace = "some-namespace" } + spec = { + groups = [] + } } ``` diff --git a/docs/data-sources/operator_victoriametrics_com_vm_service_scrape_v1beta1_manifest.md b/docs/data-sources/operator_victoriametrics_com_vm_service_scrape_v1beta1_manifest.md index ec361ddc3..c94334e6b 100644 --- a/docs/data-sources/operator_victoriametrics_com_vm_service_scrape_v1beta1_manifest.md +++ b/docs/data-sources/operator_victoriametrics_com_vm_service_scrape_v1beta1_manifest.md @@ -18,6 +18,9 @@ data "k8s_operator_victoriametrics_com_vm_service_scrape_v1beta1_manifest" "exam name = "some-name" namespace = "some-namespace" } + spec = { + endpoints = [] + } } ``` diff --git a/docs/data-sources/work_karmada_io_work_v1alpha1_manifest.md b/docs/data-sources/work_karmada_io_work_v1alpha1_manifest.md index b6166c0ae..4226731f9 100644 --- a/docs/data-sources/work_karmada_io_work_v1alpha1_manifest.md +++ b/docs/data-sources/work_karmada_io_work_v1alpha1_manifest.md @@ -18,6 +18,7 @@ data "k8s_work_karmada_io_work_v1alpha1_manifest" "example" { name = "some-name" namespace = "some-namespace" } + spec = {} } ``` diff --git a/examples/data-sources/k8s_gateway_networking_k8s_io_backend_lb_policy_v1alpha2_manifest/data-source.tf b/examples/data-sources/k8s_gateway_networking_k8s_io_backend_lb_policy_v1alpha2_manifest/data-source.tf index 8ef009ec6..312430168 100644 --- a/examples/data-sources/k8s_gateway_networking_k8s_io_backend_lb_policy_v1alpha2_manifest/data-source.tf +++ b/examples/data-sources/k8s_gateway_networking_k8s_io_backend_lb_policy_v1alpha2_manifest/data-source.tf @@ -3,4 +3,7 @@ data "k8s_gateway_networking_k8s_io_backend_lb_policy_v1alpha2_manifest" "exampl name = "some-name" namespace = "some-namespace" } + spec = { + target_refs = [] + } } diff --git a/examples/data-sources/k8s_gateway_networking_k8s_io_backend_tls_policy_v1alpha3_manifest/data-source.tf b/examples/data-sources/k8s_gateway_networking_k8s_io_backend_tls_policy_v1alpha3_manifest/data-source.tf index 94714f771..5bc5967b9 100644 --- a/examples/data-sources/k8s_gateway_networking_k8s_io_backend_tls_policy_v1alpha3_manifest/data-source.tf +++ b/examples/data-sources/k8s_gateway_networking_k8s_io_backend_tls_policy_v1alpha3_manifest/data-source.tf @@ -3,4 +3,10 @@ data "k8s_gateway_networking_k8s_io_backend_tls_policy_v1alpha3_manifest" "examp name = "some-name" namespace = "some-namespace" } + spec = { + target_refs = [] + validation = { + hostname = "some-host" + } + } } diff --git a/examples/data-sources/k8s_kueue_x_k8s_io_workload_priority_class_v1beta1_manifest/data-source.tf b/examples/data-sources/k8s_kueue_x_k8s_io_workload_priority_class_v1beta1_manifest/data-source.tf index f994c7e01..18ede5adb 100644 --- a/examples/data-sources/k8s_kueue_x_k8s_io_workload_priority_class_v1beta1_manifest/data-source.tf +++ b/examples/data-sources/k8s_kueue_x_k8s_io_workload_priority_class_v1beta1_manifest/data-source.tf @@ -1,6 +1,6 @@ data "k8s_kueue_x_k8s_io_workload_priority_class_v1beta1_manifest" "example" { metadata = { name = "some-name" - } + value = 12345 } diff --git a/examples/data-sources/k8s_operator_victoriametrics_com_vm_probe_v1beta1_manifest/data-source.tf b/examples/data-sources/k8s_operator_victoriametrics_com_vm_probe_v1beta1_manifest/data-source.tf index b8d9f7cb9..a3df2e262 100644 --- a/examples/data-sources/k8s_operator_victoriametrics_com_vm_probe_v1beta1_manifest/data-source.tf +++ b/examples/data-sources/k8s_operator_victoriametrics_com_vm_probe_v1beta1_manifest/data-source.tf @@ -3,4 +3,9 @@ data "k8s_operator_victoriametrics_com_vm_probe_v1beta1_manifest" "example" { name = "some-name" namespace = "some-namespace" } + spec = { + vm_prober_spec = { + url = "some-url" + } + } } diff --git a/examples/data-sources/k8s_operator_victoriametrics_com_vm_rule_v1beta1_manifest/data-source.tf b/examples/data-sources/k8s_operator_victoriametrics_com_vm_rule_v1beta1_manifest/data-source.tf index f8a1c800e..a55bfc043 100644 --- a/examples/data-sources/k8s_operator_victoriametrics_com_vm_rule_v1beta1_manifest/data-source.tf +++ b/examples/data-sources/k8s_operator_victoriametrics_com_vm_rule_v1beta1_manifest/data-source.tf @@ -3,4 +3,7 @@ data "k8s_operator_victoriametrics_com_vm_rule_v1beta1_manifest" "example" { name = "some-name" namespace = "some-namespace" } + spec = { + groups = [] + } } diff --git a/examples/data-sources/k8s_operator_victoriametrics_com_vm_service_scrape_v1beta1_manifest/data-source.tf b/examples/data-sources/k8s_operator_victoriametrics_com_vm_service_scrape_v1beta1_manifest/data-source.tf index 416872772..0fb20ce64 100644 --- a/examples/data-sources/k8s_operator_victoriametrics_com_vm_service_scrape_v1beta1_manifest/data-source.tf +++ b/examples/data-sources/k8s_operator_victoriametrics_com_vm_service_scrape_v1beta1_manifest/data-source.tf @@ -3,4 +3,7 @@ data "k8s_operator_victoriametrics_com_vm_service_scrape_v1beta1_manifest" "exam name = "some-name" namespace = "some-namespace" } + spec = { + endpoints = [] + } } diff --git a/examples/data-sources/k8s_work_karmada_io_work_v1alpha1_manifest/data-source.tf b/examples/data-sources/k8s_work_karmada_io_work_v1alpha1_manifest/data-source.tf index 583b89984..ef9c50001 100644 --- a/examples/data-sources/k8s_work_karmada_io_work_v1alpha1_manifest/data-source.tf +++ b/examples/data-sources/k8s_work_karmada_io_work_v1alpha1_manifest/data-source.tf @@ -3,4 +3,5 @@ data "k8s_work_karmada_io_work_v1alpha1_manifest" "example" { name = "some-name" namespace = "some-namespace" } + spec = {} }