Class: Pangea::Kubernetes::Types::SecretsConfig

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

Overview

Secrets configuration for sops-nix path references. These are file paths that sops-nix decrypts at boot time. NEVER contains actual secret values — only filesystem paths.

Instance Method Summary collapse

Instance Method Details

#to_hObject



29
30
31
32
33
34
35
36
37
# File 'lib/pangea/kubernetes/types/secrets_config.rb', line 29

def to_h
  hash = {}
  hash[:flux_ssh_key_path] = flux_ssh_key_path if flux_ssh_key_path
  hash[:flux_token_path] = flux_token_path if flux_token_path
  hash[:sops_age_key_path] = sops_age_key_path if sops_age_key_path
  hash[:join_token_path] = join_token_path if join_token_path
  hash[:extra_paths] = extra_paths if extra_paths.any?
  hash
end