class KubeDeployTools::ImageRegistry::Driver::Login

Public Instance Methods

authorize_command() click to toggle source

This driver expects the following to be set in the @registry hash: username_var: set to a string which is the env var containing the docker registry username password_var: set to a string which is the env var containing the docker registry password prefix: passed directly to docker login

# File lib/kube_deploy_tools/image_registry/driver/login.rb, line 12
def authorize_command
  ['docker', 'login',
   '--username', ENV.fetch(@registry.config.fetch('username_var')),
   '--password', ENV.fetch(@registry.config.fetch('password_var')),
   @registry.prefix]
end
delete_image(image, dryrun) click to toggle source
# File lib/kube_deploy_tools/image_registry/driver/login.rb, line 19
def delete_image(image, dryrun)
  raise 'not implemented'
end
unauthorize() click to toggle source
# File lib/kube_deploy_tools/image_registry/driver/login.rb, line 23
def unauthorize
end