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

chore(scripts): fix argocd deploy release version #214

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

mikeshng
Copy link
Contributor

@mikeshng mikeshng commented Nov 4, 2024

For the demo/dev env script, the ArgoCD deployments installed on the hub and spoke are using the latest tag instead of the release tag. This is due to the kustomization yamls are all using ?ref=stable but the argocd github repo still references latest (bug with argocd repo?). For example, https://github.com/argoproj/argo-cd/blob/stable/manifests/base/server/argocd-server-deployment.yaml#L21

This fix is to replace the latest tag with the latest stable release tag.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 46.89%. Comparing base (46b9eea) to head (685f3fd).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #214   +/-   ##
=======================================
  Coverage   46.89%   46.89%           
=======================================
  Files          57       57           
  Lines        4956     4956           
=======================================
  Hits         2324     2324           
  Misses       2451     2451           
  Partials      181      181           

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

Copy link
Collaborator

@jannfis jannfis left a comment

Choose a reason for hiding this comment

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

Good catch.

However, wouldn't that trigger a diff in Git once you run the setup?

@mikeshng
Copy link
Contributor Author

mikeshng commented Nov 4, 2024

All the files are copied to a tmp folder first before the sed modifications so it should be ok. A few lines above:

apply() {
	TMP_DIR=`mktemp -d`
	echo "-> TMP_DIR is $TMP_DIR"
	cp -r ${SCRIPTPATH}/* $TMP_DIR

Copy link
Collaborator

@jannfis jannfis left a comment

Choose a reason for hiding this comment

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

You're absolutely right!

LGTM.

@jannfis jannfis merged commit 237faa7 into argoproj-labs:main Nov 4, 2024
11 checks passed
@mikeshng mikeshng deleted the fix-demo-install branch November 5, 2024 00:00
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