Skip to content

Commit

Permalink
chore(scripts): fix argocd deploy release version (#214)
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Ng <[email protected]>
  • Loading branch information
mikeshng authored Nov 4, 2024
1 parent 46b9eea commit 237faa7
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
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

0 comments on commit 237faa7

Please sign in to comment.