Skip to content

Commit

Permalink
argo rollouts and update changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jmhardison committed Sep 13, 2024
1 parent 298ba3a commit 65c5e87
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 15,206 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ kind: Kustomization
namespace: argo-rollouts

resources:
- namespace.yaml
- ../../base/install.yaml
41 changes: 41 additions & 0 deletions core/argo-rollouts/update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/bin/sh
curl -s https://raw.githubusercontent.com/argoproj/argo-rollouts/master/manifests/install.yaml -o /tmp/argorolloutsinstall.yaml #quay.io/argoproj/argo-rollouts is latest?
INSTALLFILE="/tmp/argorolloutsinstall.yaml"
MATCHSTRING="quay.io\/argoproj\/argo-rollouts"
VERSION=$(grep -m 1 "$MATCHSTRING" "$INSTALLFILE" | awk -F':' '{print $3}')

#if directory does not exist
if [ ! -d "base/non-ha/${VERSION}" ]; then
#make new version base_dir
mkdir base/non-ha/${VERSION}
#move temp download file to version path
mv $INSTALLFILE base/non-ha/${VERSION}/install.yaml
#create additional stub files

cat > base/non-ha/${VERSION}/kustomization.yaml<< EOF
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: argo-rollouts
resources:
- namespace.yaml
- install.yaml
EOF

cat > base/non-ha/${VERSION}/namespace.yaml<< EOF
apiVersion: v1
kind: Namespace
metadata:
annotations:
operator.1password.io/auto-restart: "true"
name: argo-rollouts
EOF

# touch overlay to bump
sed -i '' 's|\(base/non-ha\).*|base/non-ha/'"${VERSION}"'|g' overlays/prod/kustomization.yaml

elif [ -d "base/non-ha/${VERSION}" ]; then
echo "Directory for base/non-ha/${VERSION} already exists. No actions performed."
rm $INSTALLFILE
fi

2 changes: 1 addition & 1 deletion core/cfargotunnel/overlays/prod/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ resources:
#get latest versions from https://github.com/cloudflare/cloudflared/releases
images:
- name: cloudflare/cloudflared
newTag: 2024.8.2
newTag: 2024.9.1

replicas:
- name: cloudflared
Expand Down
Loading

0 comments on commit 65c5e87

Please sign in to comment.