Class: Clusters::Applications::CertManager

Inherits:
ApplicationRecord show all
Includes:
Concerns::ApplicationCore, Concerns::ApplicationData, Concerns::ApplicationStatus, Concerns::ApplicationVersion
Defined in:
app/models/clusters/applications/cert_manager.rb

Constant Summary collapse

VERSION =
'v0.10.1'
CRD_VERSION =
'0.10'

Instance Method Summary collapse

Methods included from Concerns::ApplicationData

#files, #values

Methods included from Concerns::ApplicationVersion

#update_available?

Methods included from Concerns::ApplicationStatus

#available?, #status_states, #update_in_progress?, #updateable?

Methods inherited from ApplicationRecord

at_most, id_in, id_not_in, iid_in, pluck_primary_key, primary_key_in, safe_ensure_unique, safe_find_or_create_by, safe_find_or_create_by!, underscore, without_order

Instance Method Details

#chartObject


24
25
26
# File 'app/models/clusters/applications/cert_manager.rb', line 24

def chart
  'certmanager/cert-manager'
end

#install_commandObject


32
33
34
35
36
37
38
39
40
41
42
43
# File 'app/models/clusters/applications/cert_manager.rb', line 32

def install_command
  Gitlab::Kubernetes::Helm::InstallCommand.new(
    name: 'certmanager',
    repository: repository,
    version: VERSION,
    rbac: cluster.platform_kubernetes_rbac?,
    chart: chart,
    files: files.merge(cluster_issuer_file),
    preinstall: pre_install_script,
    postinstall: post_install_script
  )
end

#repositoryObject


28
29
30
# File 'app/models/clusters/applications/cert_manager.rb', line 28

def repository
  'https://charts.jetstack.io'
end

#uninstall_commandObject


45
46
47
48
49
50
51
52
# File 'app/models/clusters/applications/cert_manager.rb', line 45

def uninstall_command
  Gitlab::Kubernetes::Helm::DeleteCommand.new(
    name: 'certmanager',
    rbac: cluster.platform_kubernetes_rbac?,
    files: files,
    postdelete: post_delete_script
  )
end