From 2c1fe696897278d69fcf1fc2bbb701ecc3674f81 Mon Sep 17 00:00:00 2001 From: Alper Rifat Ulucinar Date: Mon, 14 Nov 2022 18:23:58 +0300 Subject: [PATCH] Remove Terraform-specific comments from secretmanager.SecretVersion's SecretDataSecretRef field Signed-off-by: Alper Rifat Ulucinar --- apis/secretmanager/v1beta1/zz_secretversion_types.go | 1 - config/secretmanager/config.go | 1 + package/crds/secretmanager.gcp.upbound.io_secretversions.yaml | 4 +--- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/apis/secretmanager/v1beta1/zz_secretversion_types.go b/apis/secretmanager/v1beta1/zz_secretversion_types.go index 5c9670e26..3ddef9093 100755 --- a/apis/secretmanager/v1beta1/zz_secretversion_types.go +++ b/apis/secretmanager/v1beta1/zz_secretversion_types.go @@ -54,7 +54,6 @@ type SecretVersionParameters struct { Secret *string `json:"secret,omitempty" tf:"secret,omitempty"` // The secret data. Must be no larger than 64KiB. - // Note: This property is sensitive and will not be displayed in the plan. // +kubebuilder:validation:Required SecretDataSecretRef v1.SecretKeySelector `json:"secretDataSecretRef" tf:"-"` diff --git a/config/secretmanager/config.go b/config/secretmanager/config.go index 552c9f3ae..707eef63f 100644 --- a/config/secretmanager/config.go +++ b/config/secretmanager/config.go @@ -24,5 +24,6 @@ func Configure(p *config.Provider) { Type: "Secret", Extractor: common.ExtractResourceIDFuncPath, } + r.MetaResource.ArgumentDocs["secret_data"] = `The secret data. Must be no larger than 64KiB.` }) } diff --git a/package/crds/secretmanager.gcp.upbound.io_secretversions.yaml b/package/crds/secretmanager.gcp.upbound.io_secretversions.yaml index 37dda3a58..6a428073a 100644 --- a/package/crds/secretmanager.gcp.upbound.io_secretversions.yaml +++ b/package/crds/secretmanager.gcp.upbound.io_secretversions.yaml @@ -71,9 +71,7 @@ spec: description: Secret Manager secret resource type: string secretDataSecretRef: - description: 'The secret data. Must be no larger than 64KiB. Note: - This property is sensitive and will not be displayed in the - plan.' + description: The secret data. Must be no larger than 64KiB. properties: key: description: The key to select.