diff --git a/templates/gitea/check-actions-not-present.yaml b/templates/gitea/check-actions-not-present.yaml new file mode 100644 index 0000000..ad17bf6 --- /dev/null +++ b/templates/gitea/check-actions-not-present.yaml @@ -0,0 +1,3 @@ +{{- if .Values.actions -}} + {{- fail "The actions sub-chart has been outsourced to a dedicated chart available at https://gitea.com/gitea/helm-actions. For assistance with the migration process, check https://gitea.com/gitea/helm-actions/issues/9." -}} +{{- end -}} diff --git a/unittests/helm/check-actions-not-present.yaml b/unittests/helm/check-actions-not-present.yaml new file mode 100644 index 0000000..b08b679 --- /dev/null +++ b/unittests/helm/check-actions-not-present.yaml @@ -0,0 +1,12 @@ +suite: Check if actions raises an error +release: + name: gitea-unittests + namespace: testing +tests: + - it: fails when trying to configure actions due to removal + set: + actions: + enabled: true + asserts: + - failedTemplate: + errorMessage: The actions sub-chart has been outsourced to a dedicated chart available at https://gitea.com/gitea/helm-actions. For assistance with the migration process, check https://gitea.com/gitea/helm-actions/issues/9.