Skip to content

Fixes container interface creation, logging and broken references - #7

Open
tomasagata wants to merge 11 commits into
oakestra:mainfrom
tomasagata:pull-req
Open

tomasagata wants to merge 11 commits into
oakestra:mainfrom
tomasagata:pull-req

Conversation

@tomasagata

Copy link
Copy Markdown

This pull request introduces significant updates to the Oakestra Kubernetes integration, focusing on documentation improvements, enhanced logging, and new functionality for managing container networking. Below is a summary of the most important changes grouped by theme.

Documentation Improvements

  • Updated README.md to reorganize sections with consistent numbering for prerequisites and components, improving readability and navigation. For example, "0. Prerequisites" is now "1. Prerequisites," and subsections under "Oakestra Network" have been renumbered. [1] [2] [3] [4] [5] [6]

Logging Enhancements

  • Introduced a new logging system in oakestra-network/oakestra-cni/logger/logger.go to provide separate loggers for info, debug, and error messages. Logs are written to /var/log/oakestra/cni.log with support for enabling debug mode.
  • Integrated the new logging system into oakestra-network/oakestra-cni/plugin.go, replacing previous hardcoded logging with the new structured logger. [1] [2]

Container Networking Functionality

  • Added DeployNetwork and DetachContainer functions in oakestra-network/oakestra-cni/env/ContainerNetDeployment.go to manage container network interfaces, including attaching containers to bridges, assigning IPs, and setting routes.
  • Implemented helper functions in oakestra-network/oakestra-cni/env/EnvironmentManager.go for creating veth pairs, configuring routes, and managing network namespaces. These functions streamline container network setup and teardown.

Dependency and Configuration Updates

  • Updated dependencies in oakestra-network/oakestra-cni/go.mod to include github.com/vishvananda/netlink and github.com/vishvananda/netns for advanced networking operations.

Miscellaneous Changes

  • Corrected naming inconsistencies in oakestra-controller-manager/config/crd/kustomization.yaml and updated the image reference in oakestra-controller-manager/config/manager/kustomization.yaml to use the latest version of the Oakestra controller. [1] [2]
  • Adjusted the command for initializing the CNI binary in oakestra-network/Deployment/oakestra-nodenetmanager/node-netmanager.yaml to ensure compatibility with the host environment.

These changes collectively enhance the Oakestra Kubernetes integration by improving usability, adding robust logging, and introducing sophisticated container networking capabilities. Fixes issues #4, #5 and #6.

@tomasagata tomasagata changed the title Moves container interface creation to CNI, fixes logging problems and fixes broken oakestrajobs references Fixes container interface creation, logging and broken references Aug 4, 2025
@giobart
giobart self-requested a review October 8, 2025 15:56
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.

1 participant