Class: UffizziCore::Api::Cli::V1::Projects::Deployments::ContainerSerializer

Inherits:
BaseSerializer
  • Object
show all
Defined in:
app/serializers/uffizzi_core/api/cli/v1/projects/deployments/container_serializer.rb

Instance Method Summary collapse

Instance Method Details

#nameObject



10
11
12
13
# File 'app/serializers/uffizzi_core/api/cli/v1/projects/deployments/container_serializer.rb', line 10

def name
  image_name = object.image.split('/').pop
  "#{image_name}:#{object.tag}"
end

#secret_variablesObject



15
16
17
18
19
20
21
# File 'app/serializers/uffizzi_core/api/cli/v1/projects/deployments/container_serializer.rb', line 15

def secret_variables
  return unless object.secret_variables.present?

  object.secret_variables.map do |var|
    { name: var['name'], value: anonymize(var['value']) }
  end
end