Skip to content

Commit

Permalink
Add helmcharts check
Browse files Browse the repository at this point in the history
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
  • Loading branch information
tolusha committed Nov 19, 2021
1 parent b5e0b2d commit 57b4248
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/bin/check-resources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# - next olm bundle
# - Dockerfile & operator.yaml
# - DW resources
# - Helm charts

set -e

Expand Down Expand Up @@ -136,6 +137,19 @@ checkRoles() {
fi
}

checkHelmCharts() {
changedFiles=(
$(git diff --name-only)
)
if [[ " ${changedFiles[*]} " =~ helmcharts ]]; then
echo "[ERROR] Helm Charts are not up to date"
echo "[ERROR] Run 'make update-resources -s' to update them."
exit 1
else
echo "[INFO] Helm Charts are up to date."
fi
}

installOperatorSDK

pushd "${ROOT_PROJECT_DIR}" || true
Expand All @@ -146,6 +160,7 @@ checkRoles
checkNextOlmBundle
checkDockerfile
checkOperatorYaml
checkHelmCharts

popd || true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.4.1
creationTimestamp: null
name: chebackupserverconfigurations.org.eclipse.che
spec:
group: org.eclipse.che
Expand Down
1 change: 1 addition & 0 deletions helmcharts/crds/org.eclipse.che_checlusterbackups_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.4.1
creationTimestamp: null
name: checlusterbackups.org.eclipse.che
spec:
group: org.eclipse.che
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.4.1
creationTimestamp: null
name: checlusterrestores.org.eclipse.che
spec:
group: org.eclipse.che
Expand Down
1 change: 1 addition & 0 deletions helmcharts/crds/org_v1_che_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.4.1
creationTimestamp: null
name: checlusters.org.eclipse.che
spec:
group: org.eclipse.che
Expand Down

0 comments on commit 57b4248

Please sign in to comment.