From 97332964704801283ec4a44225947f18914d64a6 Mon Sep 17 00:00:00 2001 From: Vladislav Sukhin Date: Fri, 20 Dec 2024 16:12:43 +0300 Subject: [PATCH] fix: use boxed value Signed-off-by: Vladislav Sukhin --- api/v1/testkube.yaml | 2 +- pkg/api/v1/testkube/model_webhook_config_value.go | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/api/v1/testkube.yaml b/api/v1/testkube.yaml index 04b94bf934..ba4fe7e3eb 100644 --- a/api/v1/testkube.yaml +++ b/api/v1/testkube.yaml @@ -10722,7 +10722,7 @@ components: properties: public: description: public value to use in webhook template - type: string + $ref: "#/components/schemas/BoxedString" private: description: private value stored in secret to use in webhook template $ref: "#/components/schemas/SecretRef" diff --git a/pkg/api/v1/testkube/model_webhook_config_value.go b/pkg/api/v1/testkube/model_webhook_config_value.go index ed8312d776..29759168c8 100644 --- a/pkg/api/v1/testkube/model_webhook_config_value.go +++ b/pkg/api/v1/testkube/model_webhook_config_value.go @@ -11,7 +11,6 @@ package testkube // configuration value type WebhookConfigValue struct { - // public value to use in webhook template - Public string `json:"public,omitempty"` - Private *SecretRef `json:"private,omitempty"` + Public *BoxedString `json:"public,omitempty"` + Private *SecretRef `json:"private,omitempty"` }