opskumu / helm-wrapper

A Helm3 HTTP Server Wrapper by helm Go SDK, help you manage helm charts with HTTP RESTFul API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

使用私有的harbor仓库,https的url配置会报错

fomin-zhu opened this issue · comments

commented

使用https://{ip地址}/chartrepo/abc,自签的https证书,提示下面的错误,
x509:certificate signed by unknown authority
使用helm repo add是没有问题的,是需要传递--ca-file吗?

commented

使用https://{ip地址}/chartrepo/abc,自签的https证书,提示下面的错误,
x509:certificate signed by unknown authority
使用helm repo add是没有问题的,是需要传递--ca-file吗?

好的,我这边确认一下

commented

@fomin-zhu

// Entry represents a collection of parameters for chart repository
type Entry struct {
    Name                  string `json:"name"`
    URL                   string `json:"url"`
    Username              string `json:"username"`
    Password              string `json:"password"`
    CertFile              string `json:"certFile"`
    KeyFile               string `json:"keyFile"`
    CAFile                string `json:"caFile"`
    InsecureSkipTLSverify bool   `json:"insecure_skip_tls_verify"`
}

试试添加 insecure_skip_tls_verify 配置为 true 试试,如:

helmRepos:
  - name: bitnami
    url: https://charts.bitnami.com/bitnami
    insecure_skip_tls_verify: true