mirror of
https://github.com/ysoftdevs/argo-poc.git
synced 2026-06-13 00:54:28 +02:00
First apps
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: argocd
|
||||
resources:
|
||||
- argocd.yaml
|
||||
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
set -e
|
||||
|
||||
VERSION=$1
|
||||
if [ -z "$VERSION" ]; then
|
||||
echo "Usage: $0 <version>"
|
||||
echo "Example: $0 v3.0.0-rc4"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
URL="https://raw.githubusercontent.com/argoproj/argo-cd/$VERSION/manifests/install.yaml"
|
||||
|
||||
echo "Downloading ArgoCD version $VERSION from $URL"
|
||||
|
||||
cat >argocd.yaml <<EOF
|
||||
# Source:
|
||||
# $URL
|
||||
# To update, use ./update.sh <version>
|
||||
|
||||
EOF
|
||||
|
||||
if ! curl -sS -f -o - $URL >> argocd.yaml; then
|
||||
echo "Error: Failed to download ArgoCD version $VERSION"
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user