Skip to content

Commit

Permalink
Merge pull request #98 from nrwl/steve/chore/fix-image-helper
Browse files Browse the repository at this point in the history
fix(charts): reorder default in helpers
  • Loading branch information
stevepentland authored Feb 29, 2024
2 parents be3658d + 2d15176 commit 7494d49
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/nx-agents/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: nx-agents
description: Nx Cloud Agents Helm Chart
type: application
version: 1.0.0-rc.4
version: 1.0.0-rc.5
maintainers:
- name: nx
url: "https://nx.app/"
Expand Down
2 changes: 1 addition & 1 deletion charts/nx-agents/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- define "nxCloud.app.name" }}
{{- default .Chart.Name .Values.naming.nameOverride | trunc 63 | trimSuffix "-" }}
{{- .Chart.Name | default .Values.naming.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Expand Down
4 changes: 2 additions & 2 deletions charts/nx-agents/templates/_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ and modified to support global imageTag
*/}}
{{- define "nxCloud.images.common" }}
{{- $registryName := .imageRoot.registry }}
{{- $repositoryName := default .imageRoot.repository .global.imageRepository }}
{{- $repositoryName := .imageRoot.repository | default .global.imageRepository }}
{{- $imageName := .imageRoot.imageName }}
{{- $separator := ":" }}
{{- $termination := default .global.imageTag .imageRoot.tag | toString }}
{{- $termination := .global.imageTag | default .imageRoot.tag | toString }}
{{- if .global }}
{{- if .global.imageRegistry }}
{{- $registryName = .global.imageRegistry }}
Expand Down

0 comments on commit 7494d49

Please sign in to comment.