Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests and releases #61

Merged
merged 19 commits into from
Nov 22, 2023
Merged
Prev Previous commit
Next Next commit
wat
ranchodeluxe committed Nov 22, 2023

Verified

This commit was signed with the committer’s verified signature.
Spasi Ioannis Tsakpinis
commit 3e897dce11917acdfacb24f7eeb3b95f6190d658
2 changes: 1 addition & 1 deletion .github/workflows/helm-tests.yml
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
- run: |
cd helm-chart
helm --release-name "eoapi" unittest eoapi -f 'tests/*.yaml' -v eoapi/test-helm-values.yaml
helm unittest eoapi -f 'tests/*.yaml' -v eoapi/test-helm-values.yaml
unit-tests:
if: github.event.pull_request.head.repo.full_name == github.repository
permissions:
8 changes: 0 additions & 8 deletions helm-chart/eoapi/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -87,14 +87,6 @@ so we use this helper function to check autoscaling rules
{{- if (or (and .Values.raster.autoscaling.enabled (eq .Values.raster.autoscaling.type "both")) (and .Values.stac.autoscaling.enabled (eq .Values.stac.autoscaling.type "both")) (and .Values.vector.autoscaling.enabled (eq .Values.vector.autoscaling.type "both")) ) }}
{{- fail "When using an 'ingress.className' other than 'nginx' you cannot enable autoscaling by 'both' at this time b/c "requestRate' is solely an nginx metric" }}
{{- end }}
{{/* "host" has to be empty if not "nginx" so give feedback and fail */}}
{{- if .Values.ingress.host }}
{{- fail "When using an 'ingress.className' other than 'nginx' you cannot provision a 'host' at this time" }}
{{- end }}
{{/* "tls" cannot be enabled if not "nginx" so give feedback and fail */}}
{{- if .Values.ingress.tls.enabled }}
{{- fail "When using an 'ingress.className' other than 'nginx' you cannot enable 'tls' at this time" }}
{{- end }}
{{- end }}
{{- end -}}