Sha256: 06212801e7c20872a4a88d20a4c45b090a937c2c59aed0ef07d0ddb85e3d405b
Contents?: true
Size: 568 Bytes
Versions: 23
Compression:
Stored size: 568 Bytes
Contents
# typed: true require 'base64' require 'kube-dsl' module Kuby module Kubernetes class DockerConfig extend ::KubeDSL::ValueFields value_fields :registry_host, :username, :password, :email def initialize(&block) instance_eval(&block) if block end def serialize { registry_host.to_sym => { username: username, password: password, email: email, auth: Base64.strict_encode64("#{username}:#{password}") } } end end end end
Version data entries
23 entries across 23 versions & 1 rubygems