-
Notifications
You must be signed in to change notification settings - Fork 15
/
config.go
22 lines (18 loc) · 1.05 KB
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package registry
// Config struct captures the configuration fields as per the repoAddOptions - https://github.com/helm/helm/blob/v3.1.2/cmd/helm/repo_add.go#L39
type Config struct {
URL string `yaml:"url" json:"url,omitempty"`
Username string `yaml:"username" json:"username,omitempty"`
Password string `yaml:"password" json:"password,omitempty"`
AuthHeader string `yaml:"authHeader" json:"auth_header,omitempty"`
CaFile string `yaml:"caFile" json:"ca_file,omitempty"`
CertFile string `yaml:"certFile" json:"cert_file,omitempty"`
KeyFile string `yaml:"keyFile" json:"key_file,omitempty"`
InsecureSkipVerify bool `yaml:"insecureSkipVerify" json:"insecure_skip_verify,omitempty"`
// XXX (nitishm) : Add these fields to the config.yaml as and when the need arrives
// See https://github.com/helm/helm/blob/v3.2.1/pkg/action/install.go#L106-L116
// Keyring string // --keyring
// Verify bool // --verify
// Version string // --version
AccessToken string `yaml:"accessToken" json:"access_token,omitempty"`
}