Add an OCI Helm registry connector
Documentation for the provisioning of OCI Helm Registry connectors.
You connect Harness to an OCI-compliant registry using a Harness OCI Helm Registry connector. This connector allows you to pull Helm charts stored as OCI artifacts in registries such as ACR, GCR, or ECR, for use as manifests in Harness pipelines.
This topic shows you how to add an OCI Helm Registry connector to Harness.
What you will learn from this topic
How to add an OCI Helm Registry connector to a Harness project so you can pull Helm charts stored in an OCI-compliant registry in a pipeline.
Add an OCI Helm Registry connector
You can add an OCI Helm Registry connector at the project, org, or account scope. This procedure covers the project scope, and the process is the same for org and account. You can also add an OCI Helm Registry connector directly when configuring a Helm chart manifest in a service.
Follow the interactive guide below for a step-by-step walkthrough:
Perform the following steps to add an OCI Helm Registry connector:
Open your Harness project.
In Project Settings, select Connectors.
Click New Connector, then click OCI Helm Registry in Artifact Repositories. The OCI Helm Registry settings appear.
Overview
In Name, enter a name for this connector. Optionally, add a description and tags. Click Continue.
Details
Enter the Helm Repository URL.
In Authentication, select one of the following options:
Username and Password: Enter the Username for the account. For Password, create a new Harness Encrypted Text secret or use an existing one.
Anonymous (no credentials required). Click Continue.
Delegates Setup
In Delegates Setup, use any delegate or enter tags for the specific delegates that you want to allow to connect to this connector. Click Save and Continue.
Test Connection
Click Finish after the connection test succeeds. The connector is listed in Connectors.
Sample YAML
The following example shows a YAML for the OCI Helm Registry connector created in this guide.
OCI registry notes
Keep the following notes in mind when you use an OCI Helm registry connector:
Helm officially supports OCI registries for Helm version 3.8 and above. Experimental support is available in versions below 3.8.
You cannot use OCI Helm registries with Helm Chart Triggers.
Harness OCI support is cloud-agnostic, so you can use OCI registries in ACR, GCR, and ECR.
Provider-specific authentication
Google GCR
For GCR as an OCI registry, Harness supports authentication using:
An access token.
A JSON key file, where the username is
_json_key_base64and the password is the base64-encoded JSON key file content.
Harness does not support a username of _json_key with an unencrypted JSON key file content as the password.
AWS ECR
For Helm Repository URL, enter the URL for the repo in the format https://<aws_account_id>.dkr.ecr.<region>.amazonaws.com. For example: https://0838475738302113.dkr.ecr.us-west-2.amazonaws.com.
For Username, enter AWS.
For Password, create a new Harness text secret using the token retrieved with:
For example: aws ecr get-login-password --region us-west-2. Copy the output and paste it into a Harness text secret.
AWS ECR token expiration
The AWS ECR authorization token is valid for only 12 hours, which is an AWS limitation. You need to refresh the secret regularly to avoid interruptions. For more information, see AWS's Private registry authentication documentation.
Next steps
Artifact repository connectors: learn about the other artifact repository connectors Harness supports.
Connect to an HTTP Helm repository: connect to a Helm chart repository hosted on a plain HTTP server instead of an OCI-compliant registry.
Deploy Helm Charts: use the Helm charts pulled by this connector as manifests in a pipeline.
Use delegate selectors: control which delegates can connect to this connector.
Add a secret manager: store connector credentials in a secret manager.
Last updated
Was this helpful?