Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: add support for chaincodeBuilderConfig #189

Open
arner opened this issue Apr 17, 2024 · 1 comment
Open

Feature: add support for chaincodeBuilderConfig #189

arner opened this issue Apr 17, 2024 · 1 comment

Comments

@arner
Copy link

arner commented Apr 17, 2024

Chaincode builders can use variables in their file contents. They're used by chaincode 'as a service to ensure the same packageID across different peers: fabric docs.

The Peer CRD supports adding a chaincodeBuilderConfig and so does the operator. But the API does not expose it, and it's not set in the deployment.

This feature would add the API to the swagger definition and update the peer deployment code. It should be fairly straightforward to add, and it would be helpful for anyone using 'chaincode as a service' on the open source Fabric images.

@arner
Copy link
Author

arner commented Apr 17, 2024

If anyone who uses Ansible scripts to deploy the peers is reading this, in lieu of the feature you can also use the following task on an already deployed peer:

    - name: Apply patch to enable chaincodeBuilderConfig
      kubernetes.core.k8s_json_patch:
        api_version: ibp.com/v1beta1
        kind: IBPPeer
        namespace: "{{ namespace }}"
        name: "{{ organization_name }}peer"
        patch:
          - op: add
            path: /spec/chaincodeBuilderConfig
            value: "{\"peername\":\"{{ organization_name }}peer\"}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant