harbor icon indicating copy to clipboard operation
harbor copied to clipboard

Can we configure registry and webhook as Code (and via Helm)

Open sebglon opened this issue 1 year ago • 4 comments

How can we help you?

We mana many registries and webhook. And we want to source control all our configuration and deploy them with Helm.

I have found this old issue: https://github.com/goharbor/harbor/issues/2448#issuecomment-430108197 but i don't find any trace to the config on the repo.

sebglon avatar Dec 05 '23 13:12 sebglon

Not sure if it meets your requirement, https://goharbor.io/docs/2.9.0/install-config/configure-system-settings-cli/

Set Configuration Items Using An Environment Variable
Introduced in 2.3.0 is the ability to use an environment variable, CONFIG_OVERWRITE_JSON, in the core container to set the configuration. Once the CONFIG_OVERWRITE_JSON variable is set, you can only update or remove the configuration by updating the CONFIG_OVERWRITE_JSON and restarting the container. You will not be able to update the configuration in the Harbor interface or in the commandline.

Example CONFIG_OVERWRITE_JSON configuration:

CONFIG_OVERWRITE_JSON={"ldap_verify_cert":"false", "auth_mode":"ldap_auth","ldap_base_dn":"dc=example,dc=com", "ldap_search_dn":"cn=admin,dc=example,dc=com","ldap_search_password":"admin","ldap_url":"myldap.example.com", "ldap_scope":2}

stonezdj avatar Dec 08 '23 07:12 stonezdj

Could you try Harbor Operator?

stonezdj avatar Dec 11 '23 08:12 stonezdj

@stonezdj I am running into a similar issue to the one above. We already have harbor deployed and running, is there a way to deploy the operator to only handle the Day 2 operations? I am actively searching in the repo for an answer.

nmcostello avatar Dec 20 '23 17:12 nmcostello

This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days.

github-actions[bot] avatar Feb 19 '24 09:02 github-actions[bot]

This issue was closed because it has been stalled for 30 days with no activity. If this issue is still relevant, please re-open a new issue.

github-actions[bot] avatar Mar 20 '24 09:03 github-actions[bot]