Class: Clusters::Applications::Crossplane

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

Constant Summary collapse

VERSION =
'0.4.1'

Instance Method Summary collapse

Methods included from Concerns::ApplicationData

#files, #uninstall_command

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


23
24
25
# File 'app/models/clusters/applications/crossplane.rb', line 23

def chart
  'crossplane/crossplane'
end

#install_commandObject


31
32
33
34
35
36
37
38
39
40
# File 'app/models/clusters/applications/crossplane.rb', line 31

def install_command
  Gitlab::Kubernetes::Helm::InstallCommand.new(
    name: 'crossplane',
    repository: repository,
    version: VERSION,
    rbac: cluster.platform_kubernetes_rbac?,
    chart: chart,
    files: files
  )
end

#repositoryObject


27
28
29
# File 'app/models/clusters/applications/crossplane.rb', line 27

def repository
  'https://charts.crossplane.io/alpha'
end

#valuesObject


42
43
44
# File 'app/models/clusters/applications/crossplane.rb', line 42

def values
  crossplane_values.to_yaml
end