Air-gapped environments
Sync your charts to isolated environments
Scope — Sync Chart On Private rEgistry — is an open source CLI that syncs your Helm charts to OCI-compatible registries such as Nexus, ECR, Docker Hub or Scaleway Registry. The sources to mirror are described in a single YAML file.
| Role | CLI that syncs Helm charts to private OCI registries |
| Stack | Go · OCI · Helm |
| License | Apache-2.0 |
| Image | bananaops/scope |
| Helm chart | — (command-line tool) |
| Repository | BananaOps/scope · releases |
{{ registry }}/{{ namespace }}
(e.g. rg.fr-par.scw.cloud/helm-mirrors)Download the latest version from the GitHub releases.
docker run bananaops/scope scope -hgo build -ldflags "-s -w" -o bin/scopeDescribe the charts to sync
apache.github.io/superset: charts: superset: - 0.1.0 - 0.1.1prometheus-community.github.io/helm-charts: charts: prometheus: - ~11.1.0 prometheus-node-exporter: - 2.0.0 - 2.0.1Run the sync
scope -s scope_config.yml -r 000000000000.dkr.ecr.eu-west-3.amazonaws.comCheck the result
The charts show up in the destination registry namespace.
> scope -hSync Chart On Private Registry
Usage: scope [flags]
Flags: --append-source append repository to chart name --ca-file string verify certificates of HTTPS-enabled servers using this CA bundle --cert-file string identify HTTPS client using this SSL certificate file -h, --help help for scope --insecure-skip-tls-verify skip tls certificate checks --key-file string identify HTTPS client using this SSL key file -n, --namespace string namespace destination chart registry -p, --password string chart destination repository password --password-stdin read password or identity token from stdin -r, --registry string destination chart registry -s, --source-file string path to source file -t, --type string type for registry (nexus or oci) (default "oci") -u, --user string chart destination repository user| Registry | Tested | Scope version |
|---|---|---|
| AWS ECR | ✅ | v0.0 |
| Nexus | ✅ | v0.2 |
| Docker Hub | ✅ | v0.4 |
| Scaleway Registry | ✅ | v0.4 |
sync-charts: tags: - docker image: bananaops/scope stage: sync script: scope -s ./scope_config.yml -t nexus -u $REGISTRY_USER -p $REGISTRY_USER_TOKEN -r https://docker.nexus-bananaops.com rules: - if: $CI_PIPELINE_SOURCE == "merge_request_event" when: manual - if: $CI_PIPELINE_SOURCE == "schedule" when: alwaysRenovate can keep the configuration file up to date:
"packageRules": [ { "customType": "regex", "fileMatch": ["scope_config.yml$"], "matchStrings": [ "(?<registryUrl>.*):\\s+charts:\\s+((?<depName>.*):\\s+-\\s(?<currentValue>[\\w+\\.]*))" ], "datasourceTemplate": "helm" }]In this example, the registry URL must include the protocol:
https://stakater.github.io/stakater-charts: charts: reloader: - 1.0.67Air-gapped environments
Sync your charts to isolated environments
Multi-cloud
Distribute your charts across several cloud providers
Backup
Back up your critical charts