-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add Airbyte rock #18
Add Airbyte rock #18
Conversation
96c0b50
to
b5f852d
Compare
482fd17
to
1632f92
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
ad2fec8
to
b0daddc
Compare
b0daddc
to
6fe7361
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! Some small comments but nothing blocking. Nice work on a complex rock!
mkdir -p ${CRAFT_PART_INSTALL}/usr/local/lib/python3.10/dist-packages | ||
cp -r $(which kubectl) ${CRAFT_PART_INSTALL}/usr/local/bin/kubectl | ||
|
||
pip install --upgrade setuptools pip airbyte-cdk==5.12.0 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you end up having more of these in future you can add a requirements.txt file. Not necessary now.
- airbyte-connector-builder-server | ||
|
||
local-files: | ||
after: [organize-tars] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this really need to go after organize-tars?
curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.31/deb/Release.key | gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg | ||
chmod 644 /etc/apt/keyrings/kubernetes-apt-keyring.gpg # allow unprivileged APT programs to read this keyring | ||
apt-get update | ||
apt-get install -y kubectl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this not be a build-package?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It actually needs to be included in the final build as the application itself uses kubectl
. Including it as a stage-snap
did not work for some reason, so I opted to install it manually.
# stdlib CVEs | ||
CVE-2024-24790 | ||
CVE-2023-24538 | ||
CVE-2023-24540 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If they are not present anymore, we can remove it
This PR builds the Airbyte app from source using Rockcraft, and builds the Airbyte charm with it. A few things to note:
v0.63.8
fromv0.60.0
due to a version mismatch with the destination connector introduced in the integration test. Versions pastv0.63.8
introduce breaking changes to the charm and the overall structure of Airbyte. A future update will look into updating to the latestv1.x
version.kubectl
as part ofstage-snaps
did not seem to include it in the final build, hence why I manually install it usingoverride-build
.