Skip to content

calico: upstream pr preparation#7

Open
vsoch wants to merge 11 commits into
developfrom
calico-upstream-pr
Open

calico: upstream pr preparation#7
vsoch wants to merge 11 commits into
developfrom
calico-upstream-pr

Conversation

@vsoch
Copy link
Copy Markdown
Member

@vsoch vsoch commented Jan 25, 2026

I'm not sure if this will be possible, but I'm trying to cleanup our current calico install. I was able to install from a release and then apply our custom manifests, but (so far) haven't been able to do the entire thing cleanly with yq. It's a weird case of needing to apply the initial setup they have, but then remove it and re-apply the customizations, importantly keeping the IP: autodetect set so the calico.vxlan network shows up with ip addr. I am finding that when I try to patch from the getgo with yq I run into a myriad of errors. If I don't create our customizations with autodetect the network has issues too. I still think it might be possible, and the next step is to look closely at what we have for the individual configs here and compare with what is being installed upstream.

Update: I've now removed all custom manifests - we get the upstream manifest and make all changes with yq. There are quite a few, but I think this is probably the slimmiest I can get it for something to review / easily see changes.

vsoch and others added 5 commits January 22, 2026 12:50
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
The user can install calico (even using the same flannel
port) via a CRD for it, adding the rules for it, customizing
the Daemonset env and the addresses that the containers use.

Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
@vsoch vsoch mentioned this pull request Jan 25, 2026
vsoch added 2 commits January 25, 2026 21:31
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
@vsoch vsoch force-pushed the calico-upstream-pr branch from 9efd023 to 602ebb4 Compare January 26, 2026 05:38
@vsoch
Copy link
Copy Markdown
Member Author

vsoch commented Feb 4, 2026

@AkihiroSuda please take a look at these changes.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why does this need to be a daemonset?
Could be in https://github.com/rootless-containers/usernetes/tree/master/Dockerfile.d

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

We also had it as a COPY to the container via a udev rules files, but I don't think it took. At least whatever state changes the initial calico install triggered might have undone it.

Comment thread Dockerfile.d/etc_udev_rules.d_95-calico.rules Outdated
Comment thread Makefile.d/calico/install-calico.sh Outdated
Comment thread Makefile.d/calico/install-calico.sh Outdated
wget https://raw.githubusercontent.com/projectcalico/calico/refs/heads/release-v3.31/manifests/calico.yaml -O $CALICO_FILE

# backend to vxlan
yq eval-all -i '(select(.kind == "ConfigMap" and .metadata.name == "calico-config").data.calico_backend) = "vxlan"' $CALICO_FILE
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No we tried for weeks to get helm working - it was too complex. If you want to try and are successful we can do some testing of what you find.

Comment thread Makefile.d/check-preflight.sh Outdated
Comment thread Makefile.d/sync-external-ip.sh Outdated
Comment thread service/usernetes-start-control-plane.sh Outdated
Comment thread Dockerfile Outdated
Comment thread Dockerfile
Comment thread README.md Outdated
vsoch added 4 commits May 15, 2026 23:32
Signed-off-by: Vanessa Sochat <814322+vsoch@users.noreply.github.com>
Signed-off-by: Vanessa Sochat <814322+vsoch@users.noreply.github.com>
Signed-off-by: Vanessa Sochat <814322+vsoch@users.noreply.github.com>
This is for our environment and I do not think is wanted here.

Signed-off-by: Vanessa Sochat <814322+vsoch@users.noreply.github.com>
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