Skip to content

Commit c182ddb

Browse files
authored
feat(chart): allow passing cas external URL explicitly (#1717)
Signed-off-by: Miguel Martinez <[email protected]>
1 parent 7dfb5c9 commit c182ddb

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

deployment/chainloop/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: Chainloop is an open source software supply chain control plane, a
77

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

deployment/chainloop/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,7 @@ chainloop config save \
726726
| ---------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- |
727727
| `cas.replicaCount` | Number of replicas | `2` |
728728
| `cas.defaultMaxEntrySize` | Maximum size for each entry in the CAS backend, default 100MB | |
729+
| `cas.externalURL` | Optional External URL for the CAS service. If not set it will be derived from the ingress and service configuration | |
729730
| `cas.image.registry` | Image registry | `REGISTRY_NAME` |
730731
| `cas.image.repository` | Image repository | `REPOSITORY_NAME` |
731732
| `cas.containerPorts.http` | controlplane HTTP container port | `8000` |

deployment/chainloop/templates/_helpers.tpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,9 @@ NOTE: Load balancer service type is not supported
411411
{{- $service := .Values.cas.service }}
412412
{{- $ingress := .Values.cas.ingress }}
413413

414-
{{- if (and $ingress $ingress.enabled $ingress.hostname) }}
414+
{{- if .Values.cas.externalURL }}
415+
{{- .Values.cas.externalURL }}
416+
{{- else if (and $ingress $ingress.enabled $ingress.hostname) }}
415417
{{- printf "%s://%s" (ternary "https" "http" $ingress.tls ) $ingress.hostname }}
416418
{{- else if (and (eq $service.type "NodePort") $service.nodePorts (not (empty $service.nodePorts.http))) }}
417419
{{- printf "http://localhost:%s" $service.nodePorts.http }}

deployment/chainloop/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -930,6 +930,9 @@ cas:
930930
## @extra cas.defaultMaxEntrySize Maximum size for each entry in the CAS backend, default 100MB
931931
# defaultMaxEntrySize: 100MB
932932

933+
## @extra cas.externalURL Optional External URL for the CAS service. If not set it will be derived from the ingress and service configuration
934+
# externalURL: ""
935+
933936
## @param cas.image.registry [default: REGISTRY_NAME] Image registry
934937
## @param cas.image.repository [default: REPOSITORY_NAME] Image repository
935938
## @skip cas.image.tag

0 commit comments

Comments
 (0)