Sha256: 45660585ac74d974b305e91d9384de6dda481c60db6ca441af62ab2d7ff30d51
Contents?: true
Size: 656 Bytes
Versions: 28
Compression:
Stored size: 656 Bytes
Contents
# typed: false require 'base64' module Kuby module Kubernetes class RegistrySecret < ::KubeDSL::DSL::V1::Secret array_field(:docker_config) { DockerConfig.new } def initialize(&block) instance_eval(&block) if block end def serialize super.tap do |result| result[:type] = 'kubernetes.io/dockerconfigjson' result[:data] = { :".dockerconfigjson" => Base64.strict_encode64({ auths: docker_configs.each_with_object({}) do |dc, ret| ret.merge!(dc.serialize) end }.to_json) } end end end end end
Version data entries
28 entries across 28 versions & 1 rubygems