From e0000c02952d9ee773671cd136836385deb0d4fd Mon Sep 17 00:00:00 2001 From: HiranmoyChowdhury Date: Tue, 9 Sep 2025 14:54:23 +0600 Subject: [PATCH] Add api-group to distinguish virtual secret Signed-off-by: HiranmoyChowdhury --- apis/appcatalog/v1alpha1/appbinding_types.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/apis/appcatalog/v1alpha1/appbinding_types.go b/apis/appcatalog/v1alpha1/appbinding_types.go index 61a4c764c..b77956113 100644 --- a/apis/appcatalog/v1alpha1/appbinding_types.go +++ b/apis/appcatalog/v1alpha1/appbinding_types.go @@ -66,9 +66,9 @@ type AppBindingSpec struct { // Required ClientConfig ClientConfig `json:"clientConfig"` - // Secret is the name of the secret to create in the AppBinding's + // Secret is the name and type of the secret to create in the AppBinding's // namespace that will hold the credentials associated with the AppBinding. - Secret *core.LocalObjectReference `json:"secret,omitempty"` + Secret *SecretReference `json:"secret,omitempty"` // List of transformations that should be applied to the credentials // associated with the ServiceBinding before they are inserted into the Secret. @@ -314,3 +314,10 @@ type RemoveKeyTransform struct { // The key to remove from the Secret Key string `json:"key"` } + +type SecretReference struct { + // +optional + // Two possible groups: "", virtual-secrets.dev + ApiGroup string `json:"apiGroup,omitempty"` + core.LocalObjectReference `json:",inline,omitempty"` +}