Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Add check for configuration value to set function handler via CLI #64

Merged
merged 1 commit into from
Jun 2, 2022

Conversation

andrew-su
Copy link
Contributor

Which issue(s) this PR fixes

Fixes: #63

This adds two configuration options for the buildpack.
BP_FUNCTION to specify the Python module and function.

Testing done

Tested it on our sample. (with func.yaml | it detects and builds the image)
Tested it on our sample. (without func.yaml | it fails detect, this was expected)
Tested it on our sample. (without func.yaml but specified env variables | it detects and builds the image)

Alternatively I can switch this to the split version.
Looking for opinions!

@dolfolife dolfolife requested a review from joeeltgroth May 23, 2022 17:04
@andrew-su andrew-su force-pushed the suan/update-python-buildpack branch from 687d1bb to 0a3dde0 Compare May 31, 2022 15:30
@joeeltgroth
Copy link
Contributor

lgtm

This adds a new configuration `BP_FUNCTION` to the Python
buildpack. The check for `func.yaml` is now optional as long as
the configuration is defined.

Signed-off-by: Andrew Su <[email protected]>
@andrew-su andrew-su force-pushed the suan/update-python-buildpack branch from 0a3dde0 to 4f34b5a Compare June 1, 2022 14:02
@bbtong bbtong merged commit a5849ec into main Jun 2, 2022
@andrew-su andrew-su deleted the suan/update-python-buildpack branch June 21, 2022 13:58
@andrew-su andrew-su restored the suan/update-python-buildpack branch June 21, 2022 13:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add configuration for Python buildpack to define package to scan and which function to load
3 participants