-
Notifications
You must be signed in to change notification settings - Fork 232
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
feat: Allow ACR authentication using Azure CLI #609
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jwhy89
force-pushed
the
feat/add-azure-cli
branch
from
August 17, 2023 15:22
011ca07
to
83054a5
Compare
Install azure-cli in Docker image in order to use the `az acr login` command. Can be used with Azure Managed Identities with the following script: ```yaml --- apiVersion: v1 kind: ConfigMap metadata: name: argocd-image-updater-config namespace: argocd data: log.level: debug registries.conf: | registries: - name: acrexample api_url: https://acrexample.azurecr.io/ prefix: acrexample.azurecr.io ping: yes insecure: no credentials: ext:/app/scripts/acr-login.sh credsexpire: 10h --- apiVersion: v1 kind: ConfigMap metadata: name: argocd-image-updater-config-acr namespace: argocd data: acr-login.sh: | #!/bin/sh LOGIN=$(az login --identity) REGISTRY="acrexample" TOKEN=$(az acr login --name $REGISTRY --expose-token --output tsv --query accessToken) echo "00000000-0000-0000-0000-000000000000:$TOKEN" ``` Closes argoproj-labs#550 and argoproj-labs#473 Signed-off-by: Jarvis Yang <jarvis.yang@recurohealth.com>
Signed-off-by: Jarvis Yang <jarvis.yang@recurohealth.com>
Signed-off-by: Jarvis Yang <jarvis.yang@recurohealth.com>
Signed-off-by: Jarvis Yang <jarvis.yang@recurohealth.com>
Signed-off-by: Jarvis Yang <jarvis.yang@recurohealth.com>
Signed-off-by: Daniel Mavis <daniel.mavis@faa.gov> Signed-off-by: Jarvis Yang <jarvis.yang@recurohealth.com>
…ns (argoproj-labs#584) Signed-off-by: Daniel Mavis <daniel.mavis@faa.gov> Signed-off-by: Jarvis Yang <jarvis.yang@recurohealth.com>
Co-authored-by: Abdellah Derfoufi <mohammed-abdellah.derfoufi@capgemini.com> Signed-off-by: Jarvis Yang <jarvis.yang@recurohealth.com>
Signed-off-by: satoru <satorulogic@gmail.com> Signed-off-by: Jarvis Yang <jarvis.yang@recurohealth.com>
Signed-off-by: Jarvis Yang <jarvis.yang@recurohealth.com>
Signed-off-by: satoru <satorulogic@gmail.com> Signed-off-by: Jarvis Yang <jarvis.yang@recurohealth.com>
* ci: Fix codegen Signed-off-by: jannfis <jann@mistrust.net> * Fix tar call Signed-off-by: jannfis <jann@mistrust.net> --------- Signed-off-by: jannfis <jann@mistrust.net> Signed-off-by: Jarvis Yang <jarvis.yang@recurohealth.com>
…roj-labs#573) * Fix original override not respected Signed-off-by: KS. Yim <ks.yim@linecorp.com> * Add writeOverrides unittest Signed-off-by: KS. Yim <ks.yim@linecorp.com> * Add helm override commit test Signed-off-by: KS. Yim <ks.yim@linecorp.com> * lint Signed-off-by: KS. Yim <ks.yim@linecorp.com> * fix shadowed err Signed-off-by: KS. Yim <ks.yim@linecorp.com> --------- Signed-off-by: KS. Yim <ks.yim@linecorp.com> Co-authored-by: KS. Yim <ks.yim@linecorp.com> Signed-off-by: Jarvis Yang <jarvis.yang@recurohealth.com>
…rgoproj-labs#594) * fix: update go mods to use newer argocd app definition Signed-off-by: Jesse Bye <8467862+jessebye@users.noreply.github.com> * fix deps and tests Signed-off-by: Jesse Bye <8467862+jessebye@users.noreply.github.com> * fix spelling Signed-off-by: Jesse Bye <8467862+jessebye@users.noreply.github.com> --------- Signed-off-by: Jesse Bye <8467862+jessebye@users.noreply.github.com> Signed-off-by: Jarvis Yang <jarvis.yang@recurohealth.com>
…abs#599) Signed-off-by: Viacheslav Sychov <viacheslav.sychov@gmail.com> Signed-off-by: Jarvis Yang <jarvis.yang@recurohealth.com>
…labs#600) makes argocd-image-updater compatible with restricted Pod Security Standard Signed-off-by: Takeo Sawada <myc.monad@gmail.com> Signed-off-by: Jarvis Yang <jarvis.yang@recurohealth.com>
…ion (argoproj-labs#424) * Add possibility to specify write-back GIT repository as annotation. Signed-off-by: flozzone <flozzone@gmail.com> * Update golangci-lint to 1.52.2. Signed-off-by: flozzone <flozzone@gmail.com> * Replace deprecated golangci linters with 'unused' linter. Signed-off-by: flozzone <flozzone@gmail.com> * Fix Goimport issues. Signed-off-by: flozzone <flozzone@gmail.com> --------- Signed-off-by: flozzone <flozzone@gmail.com> Signed-off-by: Jarvis Yang <jarvis.yang@recurohealth.com>
jwhy89
force-pushed
the
feat/add-azure-cli
branch
from
August 17, 2023 17:18
af52ee5
to
41aef00
Compare
@jannfis I don't know where @xesceb went but here's the updated PR with DCO. |
Closed by #586 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Install azure-cli in Docker image in order to use the az acr login command.
Can be used with Azure Managed Identities with the following script:
The script should contain the name of the registry:
Closes #550 #473 and #586