Skip to content

Commit 13c5584

Browse files
committed
docker-compose update for local testing\n sync-deps.yaml config added for testing the new feature
1 parent b94bf1b commit 13c5584

File tree

3 files changed

+68
-14
lines changed

3 files changed

+68
-14
lines changed

charts-syncer.yaml

+28-11
Original file line numberDiff line numberDiff line change
@@ -13,32 +13,49 @@ source:
1313
# Kind specify the chart repository kind. Valid values are HELM, CHARTMUSEUM, and HARBOR
1414
kind: HELM
1515
# url is the url of the chart repository
16-
url: https://prometheus-community.github.io/helm-charts # local test source repo
16+
url: http://localhost:8080 # local test source repo
1717
# auth is used if the source repository is protected with basic auth (Optional section)
18-
# auth:
19-
# # username is the username used to authenticate against the source chart repo
20-
# # `SOURCE_AUTH_USERNAME` env var can be used instead of this entry
21-
# username: "USERNAME"
22-
# # password is the password used to authenticate against the source chart repo
23-
# # `SOURCE_AUTH_PASSWORD` env var can be used instead of this entry
24-
# password: "PASSWORD"
18+
auth:
19+
# username is the username used to authenticate against the source chart repo
20+
# `SOURCE_AUTH_USERNAME` env var can be used instead of this entry
21+
username: "USERNAME"
22+
# password is the password used to authenticate against the source chart repo
23+
# `SOURCE_AUTH_PASSWORD` env var can be used instead of this entry
24+
password: "PASSWORD"
2525
# Options for repositories of kind=OCI
2626
# disableChartsIndex: false
2727
# chartsIndex: my-oci-registry.io/my-project/my-custom-index:prod
2828
# target includes relevant information about the target chart repository
2929
target:
3030
# In case there is a need to mirror dependencies (from trustedSourceDeps list, see above) - this must be set to true
3131
replaceDependencyRepo: true
32+
# repoName is used to modify the README of the chart. Default value: `myrepo`
33+
repoName: myrepo
34+
# containerRegistry is used to update the image registry section of the values.yaml file
35+
# NOTE: If containerRegistry is not set (or not present), the registry sections won't be updated
36+
containerRegistry: demo.registry.io
37+
# containerRepository is used to update the image repository section of the values.yaml file
38+
# NOTE: If containerRepository is not set (or not present), the repository sections won't be updated
39+
containerRepository: tpizarro/demo
3240
repo:
3341
# Kind specify the chart repository kind. Valid values are HELM, CHARTMUSEUM, and HARBOR
34-
kind: OCI
42+
kind: CHARTMUSEUM
3543
# url is the url of the chart repository
36-
url: https://europe-west1-docker.pkg.dev/mm-platform-sre-prod/chriss-charts-syncer-dev-and-testing
44+
url: http://localhost:9090 # local test target repo
45+
# auth is used if the target repository is protected with basic auth (Optional section)
46+
auth:
47+
# username is the username used to authenticate against the target chart repo
48+
# `TARGET_AUTH_USERNAME` env var can be used instead of this entry
49+
username: "USERNAME"
50+
# password is the password used to authenticate against the target chart repo
51+
# `TARGET_AUTH_PASSWORD` env var can be used instead of this entry
52+
password: "PASSWORD"
3753
# charts is an OPTIONAL list to specify a subset of charts to be synchronized
3854
# It is mandatory if the source repo is OCI and not autodiscovery is supported in that repository
3955
# More info here https://github.com/bitnami-labs/charts-syncer#charts-index-for-oci-based-repositories
4056
charts:
41-
- kube-prometheus-stack
57+
- redis
58+
- etcd
4259
# opt-out counterpart of "charts" property that explicit list the Helm charts to be skipped
4360
# either "charts" or "skipCharts" can be used at once
4461
# skipCharts:

docker-compose.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
version: '3.1'
2-
31
services:
42
charts-syncer:
53
build: .
64
restart: "always"
7-
command: "sync --config /config/charts-syncer.yaml -v 4 --latest-version-only"
5+
command: "sync --config /config/sync-deps.yaml -v 4 --latest-version-only"
86
# environment:
97
# - TARGET_AUTH_USERNAME=oauth2accesstoken
108
# - TARGET_AUTH_PASSWORD=
119
volumes:
1210
- "./examples:/config"
11+
- "./localrepo:/localrepo"

examples/sync-deps.yaml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#
2+
# Example config file
3+
#
4+
5+
# source includes relevant information about the source chart repository
6+
source:
7+
# Dependencies located in repos from this list will be considered as trusted, and also synced.
8+
# The entry format is the same as "repo" (see below)
9+
trustedSourceDeps:
10+
- kind: HELM
11+
url: https://grafana.github.io/helm-charts
12+
repo:
13+
# Kind specify the chart repository kind. Valid values are HELM, CHARTMUSEUM, and HARBOR
14+
kind: HELM
15+
# url is the url of the chart repository
16+
url: https://prometheus-community.github.io/helm-charts # local test source repo
17+
# target includes relevant information about the target chart repository
18+
target:
19+
# In case there is a need to mirror dependencies (from trustedSourceDeps list, see above) - this must be set to true
20+
replaceDependencyRepo: true
21+
repo:
22+
# Kind specify the chart repository kind. Valid values are HELM, CHARTMUSEUM, and HARBOR
23+
kind: LOCAL
24+
path: localrepo
25+
# charts is an OPTIONAL list to specify a subset of charts to be synchronized
26+
# It is mandatory if the source repo is OCI and not autodiscovery is supported in that repository
27+
# More info here https://github.com/bitnami-labs/charts-syncer#charts-index-for-oci-based-repositories
28+
charts:
29+
- kube-prometheus-stack
30+
# opt-out counterpart of "charts" property that explicit list the Helm charts to be skipped
31+
# either "charts" or "skipCharts" can be used at once
32+
# skipCharts:
33+
# - mariadb
34+
35+
# Whether to also relocate the container images referenced by the Helm Chart
36+
# Note that this requires the Helm Chart to be compatible with relok8s tool by containing a .relok8s-images.yaml file
37+
# More info about the file here https://github.com/vmware-tanzu/asset-relocation-tool-for-kubernetes#image-hints-file
38+
relocateContainerImages: false

0 commit comments

Comments
 (0)