Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDeprecatedTLSConfig = errors.New("TLS configured in a deprecated manner")
Functions ¶
Types ¶
type ClientOpts ¶ added in v1.1.0
type ClientOpts struct { Authenticator authn.Authenticator Keychain authn.Keychain RegLoginOpts []helmreg.LoginOption TlsConfig *tls.Config GetterOpts []helmgetter.Option }
ClientOpts contains the various options to use while constructing a Helm repository client.
func GetClientOpts ¶ added in v1.1.0
func GetClientOpts(ctx context.Context, c client.Client, obj *helmv1.HelmRepository, url string) (*ClientOpts, string, error)
GetClientOpts uses the provided HelmRepository object and a normalized URL to construct a HelmClientOpts object. If obj is an OCI HelmRepository, then the returned options object will also contain the required registry auth mechanisms. A temporary directory is created to store the certs files if needed and its path is returned along with the options object. It is the caller's responsibility to clean up the directory.
func (ClientOpts) MustLoginToRegistry ¶ added in v1.1.0
func (o ClientOpts) MustLoginToRegistry() bool
MustLoginToRegistry returns true if the client options contain at least one registry login option.
Click to show internal directories.
Click to hide internal directories.