initialize argo-cd

This commit is contained in:
Ilia Medvedev 2022-12-25 10:35:21 +02:00
parent c8f7efb68f
commit 1a55354bb8
4 changed files with 9 additions and 20 deletions

View file

@ -2,9 +2,8 @@
# Don't add the 'debug' attribute, otherwise the workflow won't work anymore # Don't add the 'debug' attribute, otherwise the workflow won't work anymore
# Only Used for the CT Install Stage # Only Used for the CT Install Stage
remote: origin remote: origin
target-branch: main charts:
chart-dirs: - charts/argo-cd
- charts
chart-repos: chart-repos:
- dandydeveloper=https://dandydeveloper.github.io/charts/ - dandydeveloper=https://dandydeveloper.github.io/charts/
helm-extra-args: "--timeout 600s" helm-extra-args: "--timeout 600s"

View file

@ -2,9 +2,8 @@
# Don't add the 'debug' attribute, otherwise the workflow won't work anymore # Don't add the 'debug' attribute, otherwise the workflow won't work anymore
# Only Used for the CT Lint Stage # Only Used for the CT Lint Stage
remote: origin remote: origin
target-branch: main charts:
chart-dirs: - charts/argo-cd
- charts
chart-repos: chart-repos:
- dandydeveloper=https://dandydeveloper.github.io/charts/ - dandydeveloper=https://dandydeveloper.github.io/charts/
helm-extra-args: "--timeout 600s" helm-extra-args: "--timeout 600s"

View file

@ -35,14 +35,14 @@ jobs:
id: list-changed id: list-changed
run: | run: |
## If executed with debug this won't work anymore. ## If executed with debug this won't work anymore.
changed=$(ct --config ./.github/configs/ct-lint.yaml list-changed) changed=$(ct --config ./.github/configs/ct-lint.yaml --target-branch ${{ github.base_ref }} list-changed)
charts=$(echo "$changed" | tr '\n' ' ' | xargs) charts=$(echo "$changed" | tr '\n' ' ' | xargs)
if [[ -n "$changed" ]]; then if [[ -n "$changed" ]]; then
echo "::set-output name=changed::true" echo "::set-output name=changed::true"
echo "::set-output name=changed_charts::$charts" echo "::set-output name=changed_charts::$charts"
fi fi
- name: Run chart-testing (lint) - name: Run chart-testing (lint)
run: ct lint --debug --config ./.github/configs/ct-lint.yaml --lint-conf ./.github/configs/lintconf.yaml run: ct lint --debug --config ./.github/configs/ct-lint.yaml --target-branch ${{ github.base_ref }} --lint-conf ./.github/configs/lintconf.yaml
- name: Run docs-testing (helm-docs) - name: Run docs-testing (helm-docs)
id: helm-docs id: helm-docs
@ -62,15 +62,6 @@ jobs:
with: with:
config: .github/configs/kind-config.yaml config: .github/configs/kind-config.yaml
- name: Deploy latest ArgoCD CRDs when testing ArgoCD extensions
if: |
contains(steps.list-changed.outputs.changed_charts, 'argocd-image-updater') ||
contains(steps.list-changed.outputs.changed_charts, 'argocd-apps')
run: |
helm repo add dandydeveloper https://dandydeveloper.github.io/charts/
helm dependency build charts/argo-cd/
helm template charts/argo-cd/ -s templates/crds/* | kubectl apply -f -
- name: Skip HPA tests of ArgoCD - name: Skip HPA tests of ArgoCD
if: contains(steps.list-changed.outputs.changed_charts, 'argo-cd') if: contains(steps.list-changed.outputs.changed_charts, 'argo-cd')
run: | run: |
@ -85,5 +76,5 @@ jobs:
helm install redis bitnami/redis --wait --namespace redis --set auth.password=argocd --set architecture=standalone helm install redis bitnami/redis --wait --namespace redis --set auth.password=argocd --set architecture=standalone
- name: Run chart-testing (install) - name: Run chart-testing (install)
run: ct install --config ./.github/configs/ct-install.yaml run: ct install --config ./.github/configs/ct-install.yaml --target-branch ${{ github.base_ref }}
if: steps.list-changed.outputs.changed == 'true' if: steps.list-changed.outputs.changed == 'true'

View file

@ -2,7 +2,7 @@ apiVersion: v2
appVersion: v2.4.15 appVersion: v2.4.15
description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes. description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes.
name: argo-cd name: argo-cd
version: 5.7.0 version: 5.7.0-cf-init
home: https://github.com/argoproj/argo-helm home: https://github.com/argoproj/argo-helm
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
sources: sources: