docs icon indicating copy to clipboard operation
docs copied to clipboard

Document composition function credentials

Open negz opened this issue 1 year ago • 2 comments

https://github.com/crossplane/crossplane/pull/5543 adds the ability to pass credentials to a composition function.

apiVersion: apiextensions.crossplane.io/v1
kind: Composition
metadata:
  name: parent
spec:
  compositeTypeRef:
    apiVersion: nop.example.org/v1alpha1
    kind: XNopResource
  mode: Pipeline
  pipeline:
  - step: example
    functionRef:
      name: function-needs-a-secret
    credentials:
    - name: credentials-for-something
      source: Secret
      secretRef:
        namespace: crossplane-system
        name: super-secret

negz avatar Apr 29 '24 23:04 negz

Here's a demo repo that shows how to use credentials with functions - could be useful for writing the documentation.

https://github.com/jbw976/demo-xfn-creds/

jbw976 avatar Jun 28 '24 23:06 jbw976