Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Argo image updater config map configuration for multiple container registry from same registry #940

Open
DimitarMicevski1 opened this issue Nov 21, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@DimitarMicevski1
Copy link

DimitarMicevski1 commented Nov 21, 2024

Is there a way to have 2 container registry from same registry but different project? Argo image updater is having trouble to authenticate with both at the same time, it can only authenticate for one, i am trying this config map

apiVersion: v1
kind: ConfigMap
metadata:
  name: argocd-image-updater-config
  labels:
    app.kubernetes.io/name: argocd-image-updater-config
    app.kubernetes.io/part-of: argocd-image-updater

data:
  log.level: debug
  registries.conf: |
    registries:
    - name: DigitalOcean Registry 1 / Project 1
      api_url: https://registry.digitalocean.com/
      ping: yes
      credentials: pullsecret:argocd/secret1
      defaultns: library
      prefix: registry.digitalocean.com   

    - name: DigitalOcean Registry 2 / Project 2
      api_url: https://registry.digitalocean.com/
      ping: no
      credentials: pullsecret:argocd/secret2
      prefix: registry.digitalocean.com
@DimitarMicevski1 DimitarMicevski1 added the enhancement New feature or request label Nov 21, 2024
@bebosudo
Copy link

See this issue and this PR

@DimitarMicevski1
Copy link
Author

DimitarMicevski1 commented Nov 29, 2024

@bebosudo tnx, but tryed it and does work ...

    - name: One container registry
      api_url: https://registry.digitalocean.com/refix-one
      ping: no
      credentials: pullsecret:argocd/secret-one
      prefix: registry.digitalocean.com/one-container-registry

    - name: Two container registry
      api_url: https://registry.digitalocean.com/prefix-two  
      ping: yes
      credentials: pullsecret:argocd/secret-two
      defaultns: library
      prefix: registry.digitalocean.com/two-container-registry
  and in application

argocd-image-updater.argoproj.io/image-name.registry-prefix: one-container-registry

@bebosudo
Copy link

bebosudo commented Nov 29, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants