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

fix: add support for overwriting the UI extensions path #21027

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

vasilegroza
Copy link

@vasilegroza vasilegroza commented Dec 2, 2024

via the environment variable ARGOCD_EXTENSIONS_SHARED_PATH

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this does not need to be in the release notes.
  • The title of the PR states what changed and the related issues number (used for the release note).
  • The title of the PR conforms to the Toolchain Guide
  • I've included "Closes [ISSUE #]" or "Fixes [ISSUE #]" in the description to automatically close the associated issue.
  • I've updated both the CLI and UI to expose my feature, or I plan to submit a second PR with them.
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • I have signed off all my commits as required by DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My build is green (troubleshooting builds).
  • My new feature complies with the feature status guidelines.
  • I have added a brief description of why this PR is necessary and/or what this PR solves.
  • Optional. My organization is added to USERS.md.
  • Optional. For bug fixes, I've indicated what older releases this fix should be cherry-picked into (this may or may not happen depending on risk/complexity).

@vasilegroza vasilegroza requested review from a team as code owners December 2, 2024 19:26
Copy link

bunnyshell bot commented Dec 2, 2024

🔴 Preview Environment stopped on Bunnyshell

See: Environment Details | Pipeline Logs

Available commands (reply to this comment):

  • 🔵 /bns:start to start the environment
  • 🚀 /bns:deploy to redeploy the environment
  • /bns:delete to remove the environment

@vasilegroza vasilegroza force-pushed the fix/overwrite_extensions_path branch from 705d1a0 to 852edc8 Compare December 2, 2024 19:29
@vasilegroza
Copy link
Author

Reason for this change:

  • ArgoCD is installed in a closed medium, where we cannot install the UI extensions in the /tmp/extensions
  • In this case, the UI extensions will be installed at the child docker image build time, into a custom directory.
  • Then, the custom directory can be passed to the ArgoCD via the ARGOCD_EXTENSIONS_SHARED_PATH environment variable.
  • This will also ensure the immutability of the docker-image/k8s-pod.

Copy link

codecov bot commented Dec 2, 2024

Codecov Report

Attention: Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.

Please upload report for BASE (master@544aea1). Learn more about missing BASE report.

Files with missing lines Patch % Lines
cmd/argocd-server/commands/argocd_server.go 0.00% 5 Missing ⚠️
server/server.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master   #21027   +/-   ##
=========================================
  Coverage          ?   53.46%           
=========================================
  Files             ?      339           
  Lines             ?    57185           
  Branches          ?        0           
=========================================
  Hits              ?    30575           
  Misses            ?    23982           
  Partials          ?     2628           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vasilegroza vasilegroza force-pushed the fix/overwrite_extensions_path branch from 852edc8 to c320c2e Compare December 3, 2024 08:39
Copy link
Contributor

@andrii-korotkov-verkada andrii-korotkov-verkada left a comment

Choose a reason for hiding this comment

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

Let's add it along the other params here

command.Flags().BoolVar(&insecure, "insecure", env.ParseBoolFromEnv("ARGOCD_SERVER_INSECURE", false), "Run server without TLS")

@vasilegroza vasilegroza force-pushed the fix/overwrite_extensions_path branch 3 times, most recently from f8a69ae to 261b0fa Compare December 3, 2024 22:51
Copy link
Member

@ishitasequeira ishitasequeira left a comment

Choose a reason for hiding this comment

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

@vasilegroza , can you also add the new variable to argocd-server-deployment.yaml similar to

- name: ARGOCD_SERVER_WEBHOOK_PARALLELISM_LIMIT
valueFrom:
configMapKeyRef:
name: argocd-cmd-params-cm
key: server.webhook.parallelism.limit
optional: true

via the environment variable ARGOCD_EXTENSIONS_SHARED_PATH

Signed-off-by: Vasile Groza <[email protected]>
@vasilegroza vasilegroza force-pushed the fix/overwrite_extensions_path branch from 261b0fa to cc0e74f Compare December 11, 2024 15:52
@vasilegroza vasilegroza force-pushed the fix/overwrite_extensions_path branch from cc0e74f to 71edc6b Compare December 11, 2024 16:18
@vasilegroza
Copy link
Author

@vasilegroza , can you also add the new variable to argocd-server-deployment.yaml similar to

- name: ARGOCD_SERVER_WEBHOOK_PARALLELISM_LIMIT
valueFrom:
configMapKeyRef:
name: argocd-cmd-params-cm
key: server.webhook.parallelism.limit
optional: true

patched.

@vasilegroza vasilegroza force-pushed the fix/overwrite_extensions_path branch from 71edc6b to d40f2ae Compare December 11, 2024 17:28
@vasilegroza vasilegroza force-pushed the fix/overwrite_extensions_path branch from e71ab61 to ce9daf7 Compare December 17, 2024 15:10
@vasilegroza
Copy link
Author

@vasilegroza , can you also add the new variable to argocd-server-deployment.yaml similar to

- name: ARGOCD_SERVER_WEBHOOK_PARALLELISM_LIMIT
valueFrom:
configMapKeyRef:
name: argocd-cmd-params-cm
key: server.webhook.parallelism.limit
optional: true

@ishitasequeira can you review it one more time?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Changes Requested
Development

Successfully merging this pull request may close these issues.

4 participants