-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Labels
Milestone
Description
I propose to convert the "Binding Secret Generation Strategies'' extension to three extensions. The first one based on OLM x-descriptors, the second one based on custom resource definition annotations, and the third one based on custom resource annotations.
These extensions can follow the pattern of ProvisionedService duck type as described in issue #145.
apiVersion: mapping.service.binding/v1alpha2
kind: XDescriptorsSecretGenerator
spec:
type: <optional-type-value>
provider: <optional-provider-value>
service:
apiVersion: com.example/v1alpha1
kind: AccountService
name: prod-account-service
status:
binding:
name: <generated-secret-resource>
apiVersion: mapping.service.binding/v1alpha2
kind: CustomResourceDefinitionSecretGenerator
spec:
type: <optional-type-value>
provider: <optional-provider-value>
service:
apiVersion: com.example/v1alpha1
kind: AccountService
name: prod-account-service
status:
binding:
name: <generated-secret-resource>
apiVersion: mapping.service.binding/v1alpha2
kind: CustomResourceSecretGenerator
spec:
type: <optional-type-value>
provider: <optional-provider-value>
service:
apiVersion: com.example/v1alpha1
kind: AccountService
name: prod-account-service
status:
binding:
name: <generated-secret-resource>
Since these are ProvisionedService conforming resources, all the implementation of the core-spec will be compatible.