You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thinking about the developer workflow for the CRDs that will drive the backstage templates, it would be helpful to allow developers to simply add their dependencies inline somehow.
Consider a developer who is rapidly iterating on creating a composition that contains multiple resources possibly from multiple "providers" (crossplane or other operators)z
Do we really want them to have to jump out and create verifiers and pass those verifiers into the generation command? It would be handy to just "Hint" with annotations or inline comments what dependencies should be used as they go.
We could then plug this into CI or possibly some TDD solution so that changes to compositions are verified automatically upon commit or even filesystem change of a CRD.
The text was updated successfully, but these errors were encountered:
indicating that the generated template needs to use ack-s3 will result in the following output Backstage template (omitting details):
properties:
apiVersion:
default: s3.services.k8s.aws/v1alpha1description: APIVersion for the resourcetype: stringconfig:
description: "BucketSpec defines the desired state of Bucket. \n In terms of implementation, a Bucket is a resource. An Amazon S3 bucket name is globally unique, and the namespace is shared by all Amazon Web Services accounts."properties:
accelerate:
description: Container for setting the transfer acceleration state.properties:
name:
type: string.... // other stuffrequired:
- nametitle: s3.services.k8s.aws.Bucket configuration optionstype: objectkind:
default: Bucketdescription: Kind for the resourcetype: stringnamespace:
description: Namespace for the resourcenamespace: defaulttype: stringresources:
enum:
- s3.services.k8s.aws.Bucketverifiers:
default:
- ack-s3description: verifiers to be used against the resourceitems:
type: stringtype: array
the verifier gets added to the CRD / XRD open API object definition as a parameter that can take on a value with the default set to the parameter passed in. This way each generated template carries the verifiers it needs to correspond too. there might be better ways to automate this that we need to think about, but my thinking is very much aligned with yours.
Thinking about the developer workflow for the CRDs that will drive the backstage templates, it would be helpful to allow developers to simply add their dependencies inline somehow.
Consider a developer who is rapidly iterating on creating a composition that contains multiple resources possibly from multiple "providers" (crossplane or other operators)z
Do we really want them to have to jump out and create verifiers and pass those verifiers into the generation command? It would be handy to just "Hint" with annotations or inline comments what dependencies should be used as they go.
We could then plug this into CI or possibly some TDD solution so that changes to compositions are verified automatically upon commit or even filesystem change of a CRD.
The text was updated successfully, but these errors were encountered: