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

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

Instance Method Summary collapse

Instance Method Details

#secret_variablesObject



27
28
29
30
31
32
33
# File 'app/serializers/uffizzi_core/api/cli/v1/projects/deployment_serializer/container_serializer.rb', line 27

def secret_variables
  return unless object.secret_variables.present?

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