diff --git a/api/executor/v1/webhook_types.go b/api/executor/v1/webhook_types.go index b232e743..2be6ccd1 100644 --- a/api/executor/v1/webhook_types.go +++ b/api/executor/v1/webhook_types.go @@ -80,9 +80,9 @@ type WebhookTemplateRef struct { // webhook configuration value type WebhookConfigValue struct { // public value to use in webhook template - Public *string `json:"public,omitempty"` + Value *string `json:"value,omitempty"` // private value stored in secret to use in webhook template - Private *SecretRef `json:"private,omitempty"` + Secret *SecretRef `json:"secret,omitempty"` } // Testkube internal reference for secret storage in Kubernetes secrets diff --git a/api/executor/v1/zz_generated.deepcopy.go b/api/executor/v1/zz_generated.deepcopy.go index 40a0f85c..b658cebf 100644 --- a/api/executor/v1/zz_generated.deepcopy.go +++ b/api/executor/v1/zz_generated.deepcopy.go @@ -251,13 +251,13 @@ func (in *Webhook) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *WebhookConfigValue) DeepCopyInto(out *WebhookConfigValue) { *out = *in - if in.Public != nil { - in, out := &in.Public, &out.Public + if in.Value != nil { + in, out := &in.Value, &out.Value *out = new(string) **out = **in } - if in.Private != nil { - in, out := &in.Private, &out.Private + if in.Secret != nil { + in, out := &in.Secret, &out.Secret *out = new(SecretRef) **out = **in } diff --git a/config/crd/bases/executor.testkube.io_webhooks.yaml b/config/crd/bases/executor.testkube.io_webhooks.yaml index 148b3744..b3d23c84 100644 --- a/config/crd/bases/executor.testkube.io_webhooks.yaml +++ b/config/crd/bases/executor.testkube.io_webhooks.yaml @@ -43,7 +43,7 @@ spec: additionalProperties: description: webhook configuration value properties: - private: + secret: description: private value stored in secret to use in webhook template properties: @@ -60,7 +60,7 @@ spec: - key - name type: object - public: + value: description: public value to use in webhook template type: string type: object