firewall

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const NodeDisruptionPolicyPatch = `` /* 1085-byte string literal not displayed */

Variables

This section is empty.

Functions

func NFTablesToButane

func NFTablesToButane(nftRules []byte, nodePool string, utilsHelpers utils.UtilsInterface) ([]byte, error)

NFTablesToButane converts nftables rules into a Butane YAML configuration without transpiling it to a MachineConfig. The resulting Butane config:

  • Embeds the nftables rules into /etc/sysconfig/nftables.conf
  • Enables and configures the nftables.service systemd unit
  • Is labelled for the given node pool (e.g. "master", "worker")

func NFTablesToMachineConfig

func NFTablesToMachineConfig(nftRules []byte, nodePool string, utilsHelpers utils.UtilsInterface) ([]byte, error)

NFTablesToMachineConfig converts nftables rules into a MachineConfig YAML by building a Butane config and translating it via the Butane library. The resulting MachineConfig:

  • Embeds the nftables rules into /etc/sysconfig/nftables.conf
  • Enables and configures the nftables.service systemd unit
  • Is labelled for the given node pool (e.g. "master", "worker")

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL