Class: Pangea::Kubernetes::Types::FluxCDConfig
- Inherits:
-
Resources::BaseAttributes
- Object
- Resources::BaseAttributes
- Pangea::Kubernetes::Types::FluxCDConfig
- Defined in:
- lib/pangea/kubernetes/types.rb
Overview
FluxCD GitOps bootstrap configuration
Instance Method Summary collapse
Instance Method Details
#to_h ⇒ Object
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 |
# File 'lib/pangea/kubernetes/types.rb', line 181 def to_h hash = { enabled: enabled, source_url: source_url, source_auth: source_auth, source_interval: source_interval, reconcile_path: reconcile_path, reconcile_interval: reconcile_interval, sops_enabled: sops_enabled, source_branch: source_branch, reconcile_prune: reconcile_prune, source_token_username: source_token_username } hash[:known_hosts] = known_hosts if known_hosts hash[:source_ssh_key_file] = source_ssh_key_file if source_ssh_key_file hash[:source_token_file] = source_token_file if source_token_file hash[:sops_age_key_file] = sops_age_key_file if sops_age_key_file hash end |