Skip to content

Commit

Permalink
Update ignoreRepositories values format and template (#20)
Browse files Browse the repository at this point in the history
* Update ignoreRepositories values format and template

* update chart version

* fix lint

---------

Co-authored-by: Vladyslav Riabyk <[email protected]>
  • Loading branch information
vriabyk and Vladyslav Riabyk authored May 13, 2024
1 parent a7e67bc commit 5506e26
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/harbor-vulnerabilities-exporter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: harbor-vulnerabilities-exporter
description: A Helm chart for showing vulnerabilities information in images stored in Harbor
version: 1.0.2
version: 1.0.3
sources:
- https://github.com/NCCloud/harbor-vulnerabilities-exporter
maintainers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ spec:
- name: THREADS
value: "{{ .Values.threadCount }}"
- name: IGNORE_REPOSITORIES
value: '{{ .Values.ignoreRepositories }}'
value: '{{ join "," .Values.ignoreRepositories }}'
6 changes: 4 additions & 2 deletions charts/harbor-vulnerabilities-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ exporterPort: 8000
# -- number of threads for exporter script to call Harbor API
threadCount: 5

# -- comma separated list of project/repositories to ignore (won't create a metric in prometheus), for example: 'project/repo1,project/repo2'
ignoreRepositories: ''
# -- list of project/repositories to ignore (won't create a metric in prometheus)
# ignoreRepositories:
# - project/repo1
# - project/repo2

# -- script won't use credentials if values are empty read-only user should be enough
harborUsername: ''
Expand Down

0 comments on commit 5506e26

Please sign in to comment.