Skip to content

Commit

Permalink
feat(chart): allow passing cas external URL explicitly (#1717)
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Martinez <miguel@chainloop.dev>
  • Loading branch information
migmartri authored Jan 9, 2025
1 parent 7dfb5c9 commit c182ddb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deployment/chainloop/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: Chainloop is an open source software supply chain control plane, a

type: application
# Bump the patch (not minor, not major) version on each change in the Chart Source code
version: 1.167.0
version: 1.167.1
# Do not update appVersion, this is handled automatically by the release process
appVersion: v0.149.0

Expand Down
1 change: 1 addition & 0 deletions deployment/chainloop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,7 @@ chainloop config save \
| ---------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- |
| `cas.replicaCount` | Number of replicas | `2` |
| `cas.defaultMaxEntrySize` | Maximum size for each entry in the CAS backend, default 100MB | |
| `cas.externalURL` | Optional External URL for the CAS service. If not set it will be derived from the ingress and service configuration | |
| `cas.image.registry` | Image registry | `REGISTRY_NAME` |
| `cas.image.repository` | Image repository | `REPOSITORY_NAME` |
| `cas.containerPorts.http` | controlplane HTTP container port | `8000` |
Expand Down
4 changes: 3 additions & 1 deletion deployment/chainloop/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,9 @@ NOTE: Load balancer service type is not supported
{{- $service := .Values.cas.service }}
{{- $ingress := .Values.cas.ingress }}

{{- if (and $ingress $ingress.enabled $ingress.hostname) }}
{{- if .Values.cas.externalURL }}
{{- .Values.cas.externalURL }}
{{- else if (and $ingress $ingress.enabled $ingress.hostname) }}
{{- printf "%s://%s" (ternary "https" "http" $ingress.tls ) $ingress.hostname }}
{{- else if (and (eq $service.type "NodePort") $service.nodePorts (not (empty $service.nodePorts.http))) }}
{{- printf "http://localhost:%s" $service.nodePorts.http }}
Expand Down
3 changes: 3 additions & 0 deletions deployment/chainloop/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -930,6 +930,9 @@ cas:
## @extra cas.defaultMaxEntrySize Maximum size for each entry in the CAS backend, default 100MB
# defaultMaxEntrySize: 100MB

## @extra cas.externalURL Optional External URL for the CAS service. If not set it will be derived from the ingress and service configuration
# externalURL: ""

## @param cas.image.registry [default: REGISTRY_NAME] Image registry
## @param cas.image.repository [default: REPOSITORY_NAME] Image repository
## @skip cas.image.tag
Expand Down

0 comments on commit c182ddb

Please sign in to comment.