mirror of https://github.com/k3s-io/k3s
registry template: add insecure_skip_verify field
Signed-off-by: Thorsten Klein <iwilltry42@gmail.com>pull/2097/head
parent
c8282f4939
commit
cf8c101b70
|
@ -28,6 +28,7 @@ type TLSConfig struct {
|
||||||
CAFile string `toml:"ca_file" yaml:"ca_file"`
|
CAFile string `toml:"ca_file" yaml:"ca_file"`
|
||||||
CertFile string `toml:"cert_file" yaml:"cert_file"`
|
CertFile string `toml:"cert_file" yaml:"cert_file"`
|
||||||
KeyFile string `toml:"key_file" yaml:"key_file"`
|
KeyFile string `toml:"key_file" yaml:"key_file"`
|
||||||
|
InsecureSkipVerify bool `toml:"insecure_skip_verify" yaml:"insecure_skip_verify"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Registry is registry settings configured
|
// Registry is registry settings configured
|
||||||
|
|
|
@ -68,6 +68,7 @@ const ContainerdConfigTemplate = `
|
||||||
{{ if $v.TLS.CAFile }}ca_file = "{{ $v.TLS.CAFile }}"{{end}}
|
{{ if $v.TLS.CAFile }}ca_file = "{{ $v.TLS.CAFile }}"{{end}}
|
||||||
{{ if $v.TLS.CertFile }}cert_file = "{{ $v.TLS.CertFile }}"{{end}}
|
{{ if $v.TLS.CertFile }}cert_file = "{{ $v.TLS.CertFile }}"{{end}}
|
||||||
{{ if $v.TLS.KeyFile }}key_file = "{{ $v.TLS.KeyFile }}"{{end}}
|
{{ if $v.TLS.KeyFile }}key_file = "{{ $v.TLS.KeyFile }}"{{end}}
|
||||||
|
{{ if $v.TLS.InsecureSkipVerify }}insecure_skip_verify = true{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
Loading…
Reference in New Issue