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.
Click to show internal directories.
Click to hide internal directories.