Class: Pangea::Kubernetes::Types::ArgocdConfig

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

Overview

ArgoCD GitOps bootstrap configuration.

Parallel to FluxCDConfig — provides the same role but for ArgoCD. The bootstrap service writes ArgoCD manifests to the k3s auto-deploy directory at boot, then creates git auth credentials after API is ready.

Instance Method Summary collapse

Instance Method Details

#to_hObject



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/pangea/kubernetes/types/argocd_config.rb', line 33

def to_h
  hash = {
    enabled: enabled,
    repo_url: repo_url,
    target_revision: target_revision,
    path: path,
    project: project,
    sync_policy: sync_policy,
    auto_prune: auto_prune,
    self_heal: self_heal,
    auth_type: auth_type,
    token_username: token_username
  }
  hash[:ssh_key_file] = ssh_key_file if ssh_key_file
  hash[:token_file] = token_file if token_file
  hash[:sops_enabled] = sops_enabled if sops_enabled
  hash[:sops_age_key_file] = sops_age_key_file if sops_age_key_file
  hash
end