Skip to content

Commit

Permalink
Fail in template function cluster.app.catalog if the app is not lis…
Browse files Browse the repository at this point in the history
…ted in `Release.spec.apps`
  • Loading branch information
AndiDog committed Dec 12, 2024
1 parent cb7e0de commit 76355e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- :warning: Kubernetes >= v1.30 **Remove outdated TLS cipher suites `TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305`.**
- Changed `teleport` data directory to `/`
- Check that apps requested by `include "cluster.app.catalog"` are listed in the `Release` since else, empty catalog names are produced and the chart deploys fine but fails later at `App`/`HelmRelease` deployment

## [1.7.0] - 2024-12-06

Expand Down
7 changes: 7 additions & 0 deletions helm/cluster/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,14 @@ Where `data` is the data to hash and `global` is the top level scope.
{{- end }}
{{- end }}
{{- end }}
{{- $renderWithoutReleaseResource := ((($.GiantSwarm.internal).ephemeralConfiguration).offlineTesting).renderWithoutReleaseResource | default false }}
{{- if $appCatalog }}
{{- $appCatalog }}
{{- else if $renderWithoutReleaseResource }}
fake-app-catalog-from-offline-cluster-chart-rendering
{{- else }}
{{- fail (printf "Application not found in Release/%s: %s" (($.GiantSwarm.Release).metadata).name $.appName) }}
{{- end }}
{{- end }}

{{/*
Expand Down

0 comments on commit 76355e7

Please sign in to comment.