1
0
Fork 0
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:
Amit kumar 2023-07-27 12:34:36 +05:30 committed by GitHub
parent a60dc00392
commit 606d0d8276
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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