Repository navigation
Conversation
450403a to
e272f26
Compare
|
Before review, I want to refactor this again so that the registry-storage works like before by default, and add a config flag for the docker-volume method. I think that will be cleaner and better. |
d87dd05 to
4d44ebc
Compare
5b4ba76 to
93f6845
Compare
65fed25 to
ba0f07e
Compare
Signed-off-by: Nikita Z <nkzk95@gmail.com>
Signed-off-by: Nikita Z <nkzk95@gmail.com>
…o select storage-type the bindmount implementation ensures that we keep old behavior, and the volume implementation is for DinD support Signed-off-by: Nikita Z <nkzk95@gmail.com>
Signed-off-by: Nikita Z <nkzk95@gmail.com>
Signed-off-by: Nikita Z <nkzk95@gmail.com>
Signed-off-by: Nikita Z <nkzk95@gmail.com>
…ied network Signed-off-by: Nikita Z <nkzk95@gmail.com>
…specified network Signed-off-by: Nikita Z <nkzk95@gmail.com>
Signed-off-by: Nikita Z <nkzk95@gmail.com>
Signed-off-by: Nikita Z <nkzk95@gmail.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Nikita Zakharov <54776184+nkzk@users.noreply.github.com>
…ners instead of docker-network Signed-off-by: Nikita Z <nkzk95@gmail.com>
Signed-off-by: Nikita Z <nkzk95@gmail.com>
Signed-off-by: Nikita Z <nkzk95@gmail.com>
Signed-off-by: Nikita Z <nkzk95@gmail.com>
Signed-off-by: Nikita Z <nkzk95@gmail.com>
Signed-off-by: Nikita Z <nkzk95@gmail.com>
Signed-off-by: Nikita Z <nkzk95@gmail.com>
Signed-off-by: Nikita Z <nkzk95@gmail.com>
Signed-off-by: Nikita Z <nkzk95@gmail.com>
1825971 to
182739e
Compare
Went through your comments and moved defaults/validations/StorageType to Also expanded the "maximum config" test in 73302cc, and spotted a simplification of the "storageMatch" check which was added after a coderabbit review: 07e486d. I ran lint and flake check, looks good. |
adamwg
left a comment
There was a problem hiding this comment.
LGTM, thanks for the updates.
I believe there's follow-up work to do to improve the cert handling, so that user-provided configs don't need to include the containerd config patch we have in the default one (or other workarounds), but this change is usable without that work. Am I correct? If so I'll get this merged :-).
Nice, np! Yes its usable, i think being able to bring your own kind config opens up a few options! If i recall correctly from the containterd config docs, i think that patch is actually no longer necessary. But I agree, there could be some followup to improve containerd cert configuration. Seems like more people than us are having this issue! I could look into it if you want:) I tested the latest changes myself with different config variations, but since im in a special environment (devcontainer and closed network) maybe you could give it a spin first? If you have some seconds thoughts on the API, i'd be happy to make changes. I tried to make it extendable and not lock us in too much, but i wasnt that creative with the 'internal' boolean. |
Signed-off-by: Nikita Z <nkzk95@gmail.com>
…he configuration in the project-file Signed-off-by: Nikita Z <nkzk95@gmail.com>
ea5542b to
d91d978
Compare
Codecov Report❌ Patch coverage is 🚀 New features to boost your workflow:
|
Signed-off-by: Nikita Z <nkzk95@gmail.com>
Description of your changes
This PR adds support for running
crossplane projectin devcontainers and closed company networks with the following changes:Add configuration options for KinD in
crossplane-project.yaml.KIND_EXPERIMENTAL_DOCKER_NETWORKfeature, but since this is a potentially unstable feature, i refactored it to instead attach specified containers to the kind cluster network.internalKinD kubeconfig.Example crossplane-project file
Support registry data sideloading when running crossplane project in Docker-in-Docker
When running
crossplane projectin a container, bind-mounting the CLI’s local registry directory into the registry container mounts an empty host path, leaving the registry without its certificates and package data.This happens because the generated files are only in the container where the command was ran, and not on the host.
I added a storage interface where the bind-mount implementation ensures we keep old behavior, and a config-flag to use a volume-implementation. This required some refactoring of the code, for example moving where certs are created so they can be initalized in the docker-volume.
Fixes #313
With these changes, a user in a closed company network and devcontainer can run
crossplane projectwith the following files and commandNOTE: subject to change ref. this comment
./crossplane-project.yaml
./kind-config.yaml
./image-configs.yaml
I have:
./nix.sh flake checkto ensure this PR is ready for review.backport release-x.ylabels to auto-backport this PR.Need help with this checklist? See the cheat sheet.