mirror of
https://github.com/fluxcd/flux2.git
synced 2026-04-22 11:35:43 +00:00
Add caBundle to bitbucket
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
This commit is contained in:
parent
43c6a1531a
commit
a03574f8c3
2 changed files with 14 additions and 0 deletions
|
|
@ -63,6 +63,9 @@ func BuildGitProvider(config Config) (gitprovider.Client, error) {
|
|||
if config.Hostname != "" {
|
||||
opts = append(opts, gitprovider.WithDomain(config.Hostname))
|
||||
}
|
||||
if config.CaBundle != nil {
|
||||
opts = append(opts, gitprovider.WithCustomCAPostChainTransportHook(config.CaBundle))
|
||||
}
|
||||
if client, err = stash.NewStashClient(config.Username, config.Token, opts...); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue