Skip to content

Conversation

@afgane
Copy link
Collaborator

@afgane afgane commented Jan 28, 2021

Limited to a single registry and user.

Limited to a single registry and user.
/usr/local/bin/kubectl create secret -n {{ app_namespace }} docker-registry
--docker-server={{ registry_server }} --docker-username={{ registry_username }}
--docker-password={{ registry_password }} {{ registry_name }}
ignore_errors: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make this rerunnable, so that it's possible to update the secret?

when: cm_skip_cloudman is not defined or not (cm_skip_cloudman|bool)

- name: Configure private registries
include_tasks: private_repos.yml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May be better to rename this to private_registries.yml?

Comment on lines 33 to 36
registry_server: "https://index.docker.io/v1/"
registry_username: "{{ lookup('env', 'REGISTRY_USERNAME') }}"
registry_password: "{{ lookup('env', 'REGISTRY_PASSWORD') }}"
registry_name: "{{ lookup('env', 'REGISTRY_NAME') }}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
registry_server: "https://index.docker.io/v1/"
registry_username: "{{ lookup('env', 'REGISTRY_USERNAME') }}"
registry_password: "{{ lookup('env', 'REGISTRY_PASSWORD') }}"
registry_name: "{{ lookup('env', 'REGISTRY_NAME') }}"
docker_registry_server: "https://index.docker.io/v1/"
docker_registry_username: "{{ lookup('env', 'REGISTRY_USERNAME') }}"
docker_registry_password: "{{ lookup('env', 'REGISTRY_PASSWORD') }}"
docker_registry_name: "{{ lookup('env', 'REGISTRY_NAME') }}"

@nuwang
Copy link
Contributor

nuwang commented Feb 10, 2021

ping @afgane

afgane and others added 2 commits March 12, 2021 15:28
Co-authored-by: Nuwan Goonasekera <2070605+nuwang@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants