Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
a3e9d31e
Unverified
Commit
a3e9d31e
authored
Sep 01, 2020
by
Brad Davidson
Committed by
GitHub
Sep 01, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2097 from iwilltry42/registry-insecure-skip-verify
Feature: add insecure_skip_verify field to registry config template
parents
fd933c93
cf8c101b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
registry.go
pkg/agent/templates/registry.go
+1
-0
templates.go
pkg/agent/templates/templates.go
+1
-0
No files found.
pkg/agent/templates/registry.go
View file @
a3e9d31e
...
@@ -28,6 +28,7 @@ type TLSConfig struct {
...
@@ -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
...
...
pkg/agent/templates/templates.go
View file @
a3e9d31e
...
@@ -67,6 +67,7 @@ const ContainerdConfigTemplate = `
...
@@ -67,6 +67,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}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment