mirror of
https://github.com/kyverno/kyverno.git
synced 2025-04-08 18:15:48 +00:00
updated comments (#7902)
Signed-off-by: hackeramitkumar <amit9116260192@gmail.com> Co-authored-by: shuting <shuting@nirmata.com>
This commit is contained in:
parent
a60dc00392
commit
606d0d8276
1 changed files with 2 additions and 2 deletions
|
@ -122,7 +122,7 @@ func WithKeychainPullSecrets(lister corev1listers.SecretNamespaceLister, imagePu
|
|||
}
|
||||
}
|
||||
|
||||
// WithKeychainPullSecrets provides initialize registry client option that allows to use insecure registries.
|
||||
// WithCredentialProviders initialize registry client option by using registries credentials
|
||||
func WithCredentialProviders(credentialProviders ...string) Option {
|
||||
return func(c *config) error {
|
||||
var chains []authn.Keychain
|
||||
|
@ -147,7 +147,7 @@ func WithCredentialProviders(credentialProviders ...string) Option {
|
|||
}
|
||||
}
|
||||
|
||||
// WithKeychainPullSecrets provides initialize registry client option that allows to use insecure registries.
|
||||
// WithAllowInsecureRegistry initialize registry client option that allows to use insecure registries.
|
||||
func WithAllowInsecureRegistry() Option {
|
||||
return func(c *config) error {
|
||||
c.transport.TLSClientConfig = &tls.Config{InsecureSkipVerify: true} //nolint:gosec
|
||||
|
|
Loading…
Add table
Reference in a new issue