Skip to content

Commit

Permalink
argocd: replace all '.' in branch names with '-' for preview URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
Taepper committed Jan 15, 2025
1 parent 5567e12 commit a7cf16a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kubernetes/appset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,23 @@ spec:
goTemplate: true
template:
metadata:
name: pp-{{ (printf "%.25s" .branch) | replace "_" "-" | replace "/" "-" | trimSuffix "-" | lower }}-{{.number}}
name: pp-{{ (printf "%.25s" .branch) | replace "_" "-" | replace "/" "-" | replace "." "-" | trimSuffix "-" | lower }}-{{.number}}
spec:
destination:
namespace: prev-{{ (printf "%.25s" .branch) | replace "_" "-" | replace "/" "-" | trimSuffix "-" | lower }}
namespace: prev-{{ (printf "%.25s" .branch) | replace "_" "-" | replace "/" "-" | replace "." "-" | trimSuffix "-" | lower }}
server: https://kubernetes.default.svc
project: default
source:
helm:
parameters:
- name: shortbranch
value: '{{ (printf "%.25s" .branch) | replace "_" "-" | replace "/" "-" | trimSuffix "-" | lower }}'
value: '{{ (printf "%.25s" .branch) | replace "_" "-" | replace "/" "-" | replace "." "-" | trimSuffix "-" | lower }}'
- name: sha
value: '{{.head_short_sha_7}}'
- name: branch
value: '{{.branch}}'
- name: host
value: '{{ (printf "%.25s" .branch) | replace "_" "-" | replace "/" "-" | trimSuffix "-" | lower }}.loculus.org'
value: '{{ (printf "%.25s" .branch) | replace "_" "-" | replace "/" "-" | replace "." "-" | trimSuffix "-" | lower }}.loculus.org'
valueFiles:
- values.yaml
- values_preview_server.yaml
Expand Down

0 comments on commit a7cf16a

Please sign in to comment.