diff --git a/pkg/agent/templates/registry.go b/pkg/agent/templates/registry.go index 8a2cf96a92..997ab30285 100644 --- a/pkg/agent/templates/registry.go +++ b/pkg/agent/templates/registry.go @@ -25,9 +25,10 @@ type AuthConfig struct { // TLSConfig contains the CA/Cert/Key used for a registry type TLSConfig struct { - CAFile string `toml:"ca_file" yaml:"ca_file"` - CertFile string `toml:"cert_file" yaml:"cert_file"` - KeyFile string `toml:"key_file" yaml:"key_file"` + CAFile string `toml:"ca_file" yaml:"ca_file"` + CertFile string `toml:"cert_file" yaml:"cert_file"` + KeyFile string `toml:"key_file" yaml:"key_file"` + InsecureSkipVerify bool `toml:"insecure_skip_verify" yaml:"insecure_skip_verify"` } // Registry is registry settings configured diff --git a/pkg/agent/templates/templates.go b/pkg/agent/templates/templates.go index 14cc80b611..157237dc63 100644 --- a/pkg/agent/templates/templates.go +++ b/pkg/agent/templates/templates.go @@ -67,6 +67,7 @@ const ContainerdConfigTemplate = ` {{ if $v.TLS.CAFile }}ca_file = "{{ $v.TLS.CAFile }}"{{end}} {{ if $v.TLS.CertFile }}cert_file = "{{ $v.TLS.CertFile }}"{{end}} {{ if $v.TLS.KeyFile }}key_file = "{{ $v.TLS.KeyFile }}"{{end}} + {{ if $v.TLS.InsecureSkipVerify }}insecure_skip_verify = true{{end}} {{end}} {{end}} {{end}}