Skip to content

Commit

Permalink
Align files (#1005)
Browse files Browse the repository at this point in the history
* Align files

* Update .nancy-ignore

* Generate Helm values schema

---------

Co-authored-by: github-actions <action@github.com>
Co-authored-by: Laszlo Uveges <laszlo@giantswarm.io>
  • Loading branch information
3 people committed May 22, 2023
1 parent ee632b0 commit 20a4809
Show file tree
Hide file tree
Showing 10 changed files with 331 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
@@ -1,6 +1,6 @@
version: 2.1
orbs:
architect: giantswarm/architect@4.28.1
architect: giantswarm/architect@4.29.0

workflows:
build:
Expand Down
27 changes: 15 additions & 12 deletions .github/workflows/zz_generated.check_values_schema.yaml
@@ -1,6 +1,6 @@
# DO NOT EDIT. Generated with:
#
# devctl@5.22.0
# devctl@6.1.1
#
name: 'Values and schema'
on:
Expand All @@ -13,6 +13,8 @@ on:
- 'helm/**/values.schema.json' # schema
- 'helm/**/ci/ci-values.yaml' # overrides for CI (can contain required entries)

push: {}

jobs:
check:
name: 'validate values.yaml against values.schema.json'
Expand All @@ -30,15 +32,16 @@ jobs:
- name: 'Check if values.yaml is a valid instance of values.schema.json'
run: |
HELM_DIR=$(git diff --name-only origin/${GITHUB_BASE_REF} ${GITHUB_SHA} \
| grep 'helm/[-a-z].*\/' | head -1 | awk -F '/' '{print $1"/"$2}')
VALUES=${HELM_DIR}/values.yaml
if [ -f ${HELM_DIR}/ci/ci-values.yaml ]; then
# merge ci-values.yaml into values.yaml (providing required values)
echo -e "\nMerged values:\n=============="
yq '. *= load("'${HELM_DIR}'/ci/ci-values.yaml")' ${HELM_DIR}/values.yaml | tee ${HELM_DIR}/combined-values.yaml
echo -e "\n==============\n"
VALUES=${HELM_DIR}/combined-values.yaml
fi
for chart_yaml in helm/*/Chart.yaml; do
helm_dir="${chart_yaml%/Chart.yaml}"
values=${helm_dir}/values.yaml
if [ -f ${helm_dir}/ci/ci-values.yaml ]; then
# merge ci-values.yaml into values.yaml (providing required values)
echo -e "\nMerged values:\n=============="
yq '. *= load("'${helm_dir}'/ci/ci-values.yaml")' ${helm_dir}/values.yaml | tee ${helm_dir}/combined-values.yaml
echo -e "\n==============\n"
values=${helm_dir}/combined-values.yaml
fi
${HOME}/yajsv -s ${HELM_DIR}/values.schema.json ${VALUES}
${HOME}/yajsv -s ${helm_dir}/values.schema.json ${values}
done
2 changes: 1 addition & 1 deletion .github/workflows/zz_generated.create_release.yaml
@@ -1,6 +1,6 @@
# DO NOT EDIT. Generated with:
#
# devctl@5.22.0
# devctl@6.1.1
#
name: Create Release
on:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zz_generated.create_release_pr.yaml
@@ -1,6 +1,6 @@
# DO NOT EDIT. Generated with:
#
# devctl@5.22.0
# devctl@6.1.1
#
name: Create Release PR
on:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zz_generated.gitleaks.yaml
@@ -1,6 +1,6 @@
# DO NOT EDIT. Generated with:
#
# devctl@5.22.0
# devctl@6.1.1
#
name: gitleaks

Expand Down
3 changes: 3 additions & 0 deletions .nancy-ignore
Expand Up @@ -2,6 +2,9 @@
sonatype-2020-0921 until=2023-06-30
CVE-2020-28483 until=2023-06-30

# pkg:golang/github.com/gin-gonic/gin@v1.9.0
CVE-2023-29401 until=2023-06-30

# pkg:golang/github.com/hashicorp/consul/api@v1.15.3
CVE-2022-29153 until=2023-06-30

Expand Down
4 changes: 2 additions & 2 deletions Makefile
@@ -1,6 +1,6 @@
# DO NOT EDIT. Generated with:
#
# devctl@5.22.0
# devctl@6.1.1
#

include Makefile.*.mk
Expand All @@ -20,4 +20,4 @@ include Makefile.*.mk

.PHONY: help
help: ## Display this help.
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-20s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z%\\\/_0-9-]+:.*?##/ { printf " \033[36m%-20s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
2 changes: 1 addition & 1 deletion Makefile.gen.app.mk
@@ -1,6 +1,6 @@
# DO NOT EDIT. Generated with:
#
# devctl@5.22.0
# devctl@6.1.1
#

##@ App
Expand Down
2 changes: 1 addition & 1 deletion Makefile.gen.go.mk
@@ -1,6 +1,6 @@
# DO NOT EDIT. Generated with:
#
# devctl@5.22.0
# devctl@6.1.1
#

APPLICATION := $(shell go list -m | cut -d '/' -f 3)
Expand Down

0 comments on commit 20a4809

Please sign in to comment.