Update Application template on push
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Nikolai Rodionov 2023-04-24 12:05:23 +02:00
parent d892815232
commit 1ac4eaddb4
Signed by: allanger
GPG Key ID: 19DB54039EBF8F10
2 changed files with 1 additions and 10 deletions

View File

@ -144,6 +144,7 @@ steps:
- yq -i "del(.status)" /tmp/appset.yaml
- yq -i "del(.spec.generators[].list.elements[] | select(.branch == \"$ARGO_APP_BRANCH\"))" /tmp/appset.yaml
- yq -i "del(.spec.generators[].list.elements[] | select(.commit_sha == \"$ARGO_APP_IMAGE_TAG\"))" /tmp/appset.yaml
- yq '. *= load("./kube/applicationset.yaml")' /tmp/appset.yaml
- envsubst < ./kube/main.yaml > /tmp/elements.yaml
- yq -i '.spec.generators[].list.elements += load("/tmp/elements.yaml")' /tmp/appset.yaml
- kubectl apply -f /tmp/appset.yaml

View File

@ -4,16 +4,6 @@ metadata:
name: badhouseplants-net
namespace: argo-system
spec:
generators:
- list:
elements:
- name: application
app: badhouseplants
branch: main
commit_sha: none
chart_version: 0.6.0
repo_url: https://git.badhouseplants.net/api/packages/badhouseplants/helm
value: |
template:
metadata:
name: "{{ app }}-{{ name }}"