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
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions hack/demo-env/agent-autonomous/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@ resources:
- https://github.com/argoproj/argo-cd/manifests/cluster-rbac/application-controller?ref=stable
- ../common

images:
- name: quay.io/argoproj/argocd
newTag: LatestReleaseTag

patches:
- path: argocd-secret.yaml
6 changes: 5 additions & 1 deletion hack/demo-env/agent-managed/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ resources:
- https://github.com/argoproj/argo-cd/manifests/cluster-rbac/application-controller?ref=stable
- ../common

images:
- name: quay.io/argoproj/argocd
newTag: LatestReleaseTag

patches:
- path: argocd-cmd-params-cm.yaml
- path: argocd-secret.yaml
- path: argocd-secret.yaml
4 changes: 4 additions & 0 deletions hack/demo-env/control-plane/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ resources:
- https://github.com/argoproj/argo-cd/examples/k8s-rbac/argocd-server-applications?ref=stable
- ../common

images:
- name: quay.io/argoproj/argocd
newTag: LatestReleaseTag

patches:
- path: argocd-cmd-params-cm.yaml
- path: argocd-secret.yaml
Expand Down
5 changes: 5 additions & 0 deletions hack/demo-env/setup-vcluster-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ apply() {
sed -i.bak -e '/loadBalancerIP/s/^/#/' $TMP_DIR/control-plane/server-service.yaml
fi

LATEST_RELEASE_TAG=`curl -s "https://api.github.com/repos/argoproj/argo-cd/releases/latest" | jq -r .tag_name`
sed -i.bak -e "s/LatestReleaseTag/${LATEST_RELEASE_TAG}/" $TMP_DIR/control-plane/kustomization.yaml
sed -i.bak -e "s/LatestReleaseTag/${LATEST_RELEASE_TAG}/" $TMP_DIR/agent-autonomous/kustomization.yaml
sed -i.bak -e "s/LatestReleaseTag/${LATEST_RELEASE_TAG}/" $TMP_DIR/agent-managed/kustomization.yaml

echo "-> Create Argo CD on control plane"

cluster=control-plane
Expand Down
Loading