Skip to content

Commit

Permalink
fix: added releaselimit to helm charts (#1702)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguel-crespo-fdc authored Jun 26, 2024
1 parent e0d7741 commit 9b8d630
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/kuberpult/templates/manifest-repo-export-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ spec:
{{- end }}
- name: KUBERPULT_ENABLE_PROFILING
value: "{{ .Values.datadogProfiling.enabled }}"
- name: KUBERPULT_RELEASE_VERSIONS_LIMIT
value: "{{ .Values.git.releaseVersionsLimit }}"
volumeMounts:
- name: ssh
mountPath: /etc/ssh
Expand Down
39 changes: 39 additions & 0 deletions charts/kuberpult/tests/charts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,45 @@ cd:
},
},
},
{
Name: "Release version limit set",
Values: `
git:
url: "testURL"
releaseVersionsLimit: 15
ingress:
domainName: "kuberpult-example.com"
cd:
db:
dbOption: sqlite
writeEslTableOnly: false
`,
ExpectedEnvs: []core.EnvVar{
{
Name: "KUBERPULT_RELEASE_VERSIONS_LIMIT",
Value: "15",
},
},
},
{
Name: "Release version limit default",
Values: `
git:
url: "testURL"
ingress:
domainName: "kuberpult-example.com"
cd:
db:
dbOption: sqlite
writeEslTableOnly: false
`,
ExpectedEnvs: []core.EnvVar{
{
Name: "KUBERPULT_RELEASE_VERSIONS_LIMIT",
Value: "20",
},
},
},
}

for _, tc := range tcs {
Expand Down

0 comments on commit 9b8d630

Please sign in to comment.