Restore CI
Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>
This commit is contained in:
parent
cc0fcc98be
commit
809ae60f3a
9 changed files with 108 additions and 5 deletions
|
@ -5,7 +5,7 @@ jobs:
|
||||||
- image: quay.io/helmpack/chart-testing:v3.3.1
|
- image: quay.io/helmpack/chart-testing:v3.3.1
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: ct lint --config .github/ct.yaml --lint-conf .github/lintconf.yaml
|
- run: ct lint --config .github/configs/ct-lint.yaml --lint-conf .github/configs/lintconf.yaml
|
||||||
publish:
|
publish:
|
||||||
docker:
|
docker:
|
||||||
- image: bash
|
- image: bash
|
||||||
|
|
0
.github/cr.yaml → .github/configs/cr.yaml
vendored
0
.github/cr.yaml → .github/configs/cr.yaml
vendored
19
.github/configs/ct-install.yaml
vendored
Normal file
19
.github/configs/ct-install.yaml
vendored
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
## Reference: https://github.com/helm/chart-testing/blob/master/doc/ct_lint-and-install.md
|
||||||
|
# Don't add the 'debug' attribute, otherwise the workflow won't work anymore
|
||||||
|
# Only Used for the CT Install Stage
|
||||||
|
remote: origin
|
||||||
|
chart-dirs:
|
||||||
|
- charts
|
||||||
|
chart-repos:
|
||||||
|
- argo=https://argoproj.github.io/argo-helm
|
||||||
|
- minio=https://helm.min.io/
|
||||||
|
- dandydeveloper=https://dandydeveloper.github.io/charts/
|
||||||
|
- stable=https://charts.helm.sh/stable
|
||||||
|
- incubator=https://charts.helm.sh/incubator
|
||||||
|
helm-extra-args: "--timeout 600s"
|
||||||
|
validate-chart-schema: false
|
||||||
|
validate-maintainers: true
|
||||||
|
validate-yaml: true
|
||||||
|
exclude-deprecated: true
|
||||||
|
excluded-charts:
|
||||||
|
- "argocd-applicationset"
|
|
@ -1,5 +1,6 @@
|
||||||
## Reference: https://github.com/helm/chart-testing/blob/master/doc/ct_lint-and-install.md
|
## Reference: https://github.com/helm/chart-testing/blob/master/doc/ct_lint-and-install.md
|
||||||
# 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
|
||||||
remote: origin
|
remote: origin
|
||||||
chart-dirs:
|
chart-dirs:
|
||||||
- charts
|
- charts
|
6
.github/workflows/lint-and-test.yml
vendored
6
.github/workflows/lint-and-test.yml
vendored
|
@ -27,19 +27,19 @@ 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/ct.yaml list-changed)
|
changed=$(ct --config ./.github/configs/ct-lint.yaml 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/ct.yaml --lint-conf ./.github/lintconf.yaml
|
run: ct lint --debug --config ./.github/configs/ct.yaml --lint-conf ./.github/configs/lintconf.yaml
|
||||||
|
|
||||||
- name: Create kind cluster
|
- name: Create kind cluster
|
||||||
uses: helm/kind-action@v1.1.0
|
uses: helm/kind-action@v1.1.0
|
||||||
if: steps.list-changed.outputs.changed == 'true'
|
if: steps.list-changed.outputs.changed == 'true'
|
||||||
|
|
||||||
- name: Run chart-testing (install)
|
- name: Run chart-testing (install)
|
||||||
run: ct install --config ./.github/ct.yaml
|
run: ct install --config ./.github/configs/ct-install.yaml
|
||||||
if: steps.list-changed.outputs.changed == 'true'
|
if: steps.list-changed.outputs.changed == 'true'
|
||||||
|
|
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
|
@ -37,6 +37,6 @@ jobs:
|
||||||
- name: Run chart-releaser
|
- name: Run chart-releaser
|
||||||
uses: helm/chart-releaser-action@v1.2.0
|
uses: helm/chart-releaser-action@v1.2.0
|
||||||
with:
|
with:
|
||||||
config: "./.github/cr.yaml"
|
config: "./.github/configs/cr.yaml"
|
||||||
env:
|
env:
|
||||||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
|
77
charts/argocd-applicationset/ci/default-values.yaml
Normal file
77
charts/argocd-applicationset/ci/default-values.yaml
Normal file
|
@ -0,0 +1,77 @@
|
||||||
|
# Default values for argo-applicationset.
|
||||||
|
# This is a YAML-formatted file.
|
||||||
|
# Declare variables to be passed into your templates.
|
||||||
|
|
||||||
|
replicaCount: 1
|
||||||
|
|
||||||
|
installCRDs: false # this needs to be false with ct
|
||||||
|
|
||||||
|
image:
|
||||||
|
# The image repository
|
||||||
|
repository: quay.io/argocdapplicationset/argocd-applicationset
|
||||||
|
# Image pull policy
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
# Overrides the image tag whose default is the chart appVersion.
|
||||||
|
tag: ""
|
||||||
|
|
||||||
|
args:
|
||||||
|
metricsAddr: :8080
|
||||||
|
probeBindAddr: :8081
|
||||||
|
enableLeaderElection: false
|
||||||
|
namespace: argocd
|
||||||
|
argocdRepoServer: argocd-repo-server:8081
|
||||||
|
policy: sync
|
||||||
|
debug: false
|
||||||
|
dryRun: false
|
||||||
|
|
||||||
|
imagePullSecrets: []
|
||||||
|
nameOverride: ""
|
||||||
|
fullnameOverride: ""
|
||||||
|
|
||||||
|
serviceAccount:
|
||||||
|
# Specifies whether a service account should be created
|
||||||
|
create: true
|
||||||
|
# Annotations to add to the service account
|
||||||
|
annotations: {}
|
||||||
|
# The name of the service account to use.
|
||||||
|
# If not set and create is true, a name is generated using the fullname template
|
||||||
|
name: ""
|
||||||
|
|
||||||
|
podAnnotations: {}
|
||||||
|
|
||||||
|
rbac:
|
||||||
|
pspEnabled: true
|
||||||
|
|
||||||
|
podSecurityContext: {}
|
||||||
|
# fsGroup: 2000
|
||||||
|
|
||||||
|
securityContext: {}
|
||||||
|
# capabilities:
|
||||||
|
# drop:
|
||||||
|
# - ALL
|
||||||
|
# readOnlyRootFilesystem: true
|
||||||
|
# runAsNonRoot: true
|
||||||
|
# runAsUser: 1000
|
||||||
|
|
||||||
|
resources: {}
|
||||||
|
# We usually recommend not to specify default resources and to leave this as a conscious
|
||||||
|
# choice for the user. This also increases chances charts run on environments with little
|
||||||
|
# resources, such as Minikube. If you do want to specify resources, uncomment the following
|
||||||
|
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
|
||||||
|
# limits:
|
||||||
|
# cpu: 100m
|
||||||
|
# memory: 128Mi
|
||||||
|
# requests:
|
||||||
|
# cpu: 100m
|
||||||
|
# memory: 128Mi
|
||||||
|
|
||||||
|
nodeSelector: {}
|
||||||
|
|
||||||
|
tolerations: []
|
||||||
|
|
||||||
|
affinity: {}
|
||||||
|
|
||||||
|
mountSSHKnownHostsVolume: true
|
||||||
|
mountTLSCertsVolume: true
|
||||||
|
mountGPGKeysVolume: false
|
||||||
|
mountGPGKeyringVolume: true
|
|
@ -0,0 +1,6 @@
|
||||||
|
args:
|
||||||
|
enableLeaderElection: true
|
||||||
|
|
||||||
|
replicaCount: 3
|
||||||
|
|
||||||
|
installCRDs: false
|
Loading…
Reference in a new issue