Class: Pangea::Kubernetes::Types::NixOSConfig

Inherits:
Resources::BaseAttributes
  • Object
show all
Defined in:
lib/pangea/kubernetes/types.rb

Overview

NixOS-specific configuration for blackmatter-kubernetes modules

Instance Method Summary collapse

Instance Method Details

#to_hObject



221
222
223
224
225
226
227
228
229
230
231
232
# File 'lib/pangea/kubernetes/types.rb', line 221

def to_h
  hash = {}
  hash[:image_id] = image_id if image_id
  hash[:flake_url] = flake_url if flake_url
  hash[:extra_modules] = extra_modules if extra_modules.any?
  hash[:sops_age_key_secret] = sops_age_key_secret if sops_age_key_secret
  hash[:flux_ssh_key_secret] = flux_ssh_key_secret if flux_ssh_key_secret
  hash[:k3s] = k3s.to_h if k3s
  hash[:kubernetes] = kubernetes.to_h if kubernetes
  hash[:secrets] = secrets.to_h if secrets
  hash
end