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

feat(apply): Support sources and processors #9

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

jsirianni
Copy link
Member

@jsirianni jsirianni commented Mar 13, 2024

BindPlane v1.47.0 introduced the resource library. This allows users to save sources and processors, to be shared by multiple configurations.

This PR allows users to apply sources and processors.

Changes

  • Made configuration_path and destination_path required options
    • If they were not set, it would result in an action error
  • Added source_path and processor_path options
    • These are optional, with runtime checks to see if they are set before applying

Testing

I added sources and processors to my test environment resource library.

I updated my example repo here: https://github.com/jsirianni/bindplane-gitops-example/blob/main/.github/workflows/bindplane.yml

It includes the new source and processor options as well as the updated configurations that point to the library resources instead of having them configured inline.

After adding the library resources, I confirmed that updates to sources were automatically applied to configurations that used them, and the automatic rollout feature was triggered.

Screenshot from 2024-03-13 11-28-00

https://github.com/jsirianni/bindplane-gitops-example/actions/runs/8267177240/job/22616932539

Comment on lines +109 to +117
if [ -z "$configuration_path" ]; then
echo "configuration_path is required."
exit 1
fi

if [ -z "$destination_path" ]; then
echo "destination_path is required."
exit 1
fi
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These checks should have existed in the first place.

@jsirianni jsirianni marked this pull request as ready for review March 13, 2024 15:30
@jsirianni jsirianni requested a review from cpheps March 13, 2024 15:45
@jsirianni jsirianni merged commit a22d572 into main Mar 14, 2024
4 checks passed
@jsirianni jsirianni deleted the apply-sources-processors branch March 14, 2024 14:43
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

Successfully merging this pull request may close these issues.

2 participants