Class: Pangea::Kubernetes::Types::PKIConfig
- Inherits:
-
Resources::BaseAttributes
- Object
- Resources::BaseAttributes
- Pangea::Kubernetes::Types::PKIConfig
- Defined in:
- lib/pangea/kubernetes/types/pki_config.rb
Overview
PKI configuration for blackmatter-kubernetes NixOS modules. Maps to ‘pki.*` options in the NixOS module. Controls certificate generation and distribution.
Instance Method Summary collapse
Instance Method Details
#to_h ⇒ Object
34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/pangea/kubernetes/types/pki_config.rb', line 34 def to_h hash = { mode: mode, cert_validity_days: cert_validity_days, cert_dir: cert_dir } hash[:ca_cert_path] = ca_cert_path if ca_cert_path hash[:ca_key_path] = ca_key_path if ca_key_path hash[:api_server_extra_sans] = api_server_extra_sans if api_server_extra_sans.any? hash end |