Class: Pangea::Kubernetes::Types::KernelConfig
- Inherits:
-
Resources::BaseAttributes
- Object
- Resources::BaseAttributes
- Pangea::Kubernetes::Types::KernelConfig
- Defined in:
- lib/pangea/kubernetes/types/kernel_config.rb
Overview
Kernel configuration for blackmatter-kubernetes NixOS modules. Maps to ‘kernel.*` options in the NixOS module.
Instance Method Summary collapse
Instance Method Details
#to_h ⇒ Object
22 23 24 25 26 27 |
# File 'lib/pangea/kubernetes/types/kernel_config.rb', line 22 def to_h hash = { hardening: hardening } hash[:extra_modules] = extra_modules if extra_modules.any? hash[:sysctl] = sysctl if sysctl.any? hash end |