Class: Clusters::Applications::Fluentd

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

Constant Summary collapse

VERSION =
'2.4.0'
CILIUM_CONTAINER_NAME =
'cilium-monitor'

Instance Method Summary collapse

Methods included from Concerns::ApplicationData

#files, #repository, #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


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

def chart
  'stable/fluentd'
end

#install_commandObject


28
29
30
31
32
33
34
35
36
37
# File 'app/models/clusters/applications/fluentd.rb', line 28

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

#valuesObject


39
40
41
# File 'app/models/clusters/applications/fluentd.rb', line 39

def values
  content_values.to_yaml
end