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
2b0212de
Unverified
Commit
2b0212de
authored
Nov 21, 2018
by
k8s-ci-robot
Committed by
GitHub
Nov 21, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #71206 from stlaz/enc_config_opt
Rename '--experimental-encryption-provider-config' to '--encryption-provider-config'
parents
a19bf332
21c1bb88
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
4 deletions
+8
-4
apiserver_manifest_test.go
cluster/gce/gci/apiserver_manifest_test.go
+1
-1
configure-helper.sh
cluster/gce/gci/configure-helper.sh
+2
-2
etcd.go
staging/src/k8s.io/apiserver/pkg/server/options/etcd.go
+4
-0
transformation_testcase.go
test/integration/master/transformation_testcase.go
+1
-1
No files found.
cluster/gce/gci/apiserver_manifest_test.go
View file @
2b0212de
...
@@ -98,7 +98,7 @@ func TestEncryptionProviderFlag(t *testing.T) {
...
@@ -98,7 +98,7 @@ func TestEncryptionProviderFlag(t *testing.T) {
// "-c", - Index 1
// "-c", - Index 1
// "exec /usr/local/bin/kube-apiserver " - Index 2
// "exec /usr/local/bin/kube-apiserver " - Index 2
execArgsIndex
=
2
execArgsIndex
=
2
encryptionConfigFlag
=
"--e
xperimental-e
ncryption-provider-config"
encryptionConfigFlag
=
"--encryption-provider-config"
)
)
testCases
:=
[]
struct
{
testCases
:=
[]
struct
{
...
...
cluster/gce/gci/configure-helper.sh
View file @
2b0212de
...
@@ -1815,7 +1815,7 @@ function start-kube-apiserver {
...
@@ -1815,7 +1815,7 @@ function start-kube-apiserver {
# Sets-up etcd encryption.
# Sets-up etcd encryption.
# Configuration of etcd level encryption consists of the following steps:
# Configuration of etcd level encryption consists of the following steps:
# 1. Writing encryption provider config to disk
# 1. Writing encryption provider config to disk
# 2. Adding e
xperimental-e
ncryption-provider-config flag to kube-apiserver
# 2. Adding encryption-provider-config flag to kube-apiserver
# 3. Add kms-socket-vol and kms-socket-vol-mnt to enable communication with kms-plugin (if requested)
# 3. Add kms-socket-vol and kms-socket-vol-mnt to enable communication with kms-plugin (if requested)
#
#
# Expects parameters:
# Expects parameters:
...
@@ -1855,7 +1855,7 @@ function setup-etcd-encryption {
...
@@ -1855,7 +1855,7 @@ function setup-etcd-encryption {
encryption_provider_config_path
=
${
ENCRYPTION_PROVIDER_CONFIG_PATH
:-
/etc/srv/kubernetes/encryption-provider-config.yml
}
encryption_provider_config_path
=
${
ENCRYPTION_PROVIDER_CONFIG_PATH
:-
/etc/srv/kubernetes/encryption-provider-config.yml
}
echo
"
${
ENCRYPTION_PROVIDER_CONFIG
}
"
|
base64
--decode
>
"
${
encryption_provider_config_path
}
"
echo
"
${
ENCRYPTION_PROVIDER_CONFIG
}
"
|
base64
--decode
>
"
${
encryption_provider_config_path
}
"
kube_api_server_params+
=
" --e
xperimental-e
ncryption-provider-config=
${
encryption_provider_config_path
}
"
kube_api_server_params+
=
" --encryption-provider-config=
${
encryption_provider_config_path
}
"
default_encryption_provider_config_vol
=
$(
echo
"{
\"
name
\"
:
\"
encryptionconfig
\"
,
\"
hostPath
\"
: {
\"
path
\"
:
\"
${
encryption_provider_config_path
}
\"
,
\"
type
\"
:
\"
File
\"
}}"
|
base64
|
tr
-d
'\r\n'
)
default_encryption_provider_config_vol
=
$(
echo
"{
\"
name
\"
:
\"
encryptionconfig
\"
,
\"
hostPath
\"
: {
\"
path
\"
:
\"
${
encryption_provider_config_path
}
\"
,
\"
type
\"
:
\"
File
\"
}}"
|
base64
|
tr
-d
'\r\n'
)
default_encryption_provider_config_vol_mnt
=
$(
echo
"{
\"
name
\"
:
\"
encryptionconfig
\"
,
\"
mountPath
\"
:
\"
${
encryption_provider_config_path
}
\"
,
\"
readOnly
\"
: true}"
|
base64
|
tr
-d
'\r\n'
)
default_encryption_provider_config_vol_mnt
=
$(
echo
"{
\"
name
\"
:
\"
encryptionconfig
\"
,
\"
mountPath
\"
:
\"
${
encryption_provider_config_path
}
\"
,
\"
readOnly
\"
: true}"
|
base64
|
tr
-d
'\r\n'
)
...
...
staging/src/k8s.io/apiserver/pkg/server/options/etcd.go
View file @
2b0212de
...
@@ -164,6 +164,10 @@ func (s *EtcdOptions) AddFlags(fs *pflag.FlagSet) {
...
@@ -164,6 +164,10 @@ func (s *EtcdOptions) AddFlags(fs *pflag.FlagSet) {
fs
.
StringVar
(
&
s
.
EncryptionProviderConfigFilepath
,
"experimental-encryption-provider-config"
,
s
.
EncryptionProviderConfigFilepath
,
fs
.
StringVar
(
&
s
.
EncryptionProviderConfigFilepath
,
"experimental-encryption-provider-config"
,
s
.
EncryptionProviderConfigFilepath
,
"The file containing configuration for encryption providers to be used for storing secrets in etcd"
)
"The file containing configuration for encryption providers to be used for storing secrets in etcd"
)
fs
.
MarkDeprecated
(
"experimental-encryption-provider-config"
,
"use --encryption-provider-config."
)
fs
.
StringVar
(
&
s
.
EncryptionProviderConfigFilepath
,
"encryption-provider-config"
,
s
.
EncryptionProviderConfigFilepath
,
"The file containing configuration for encryption providers to be used for storing secrets in etcd"
)
fs
.
DurationVar
(
&
s
.
StorageConfig
.
CompactionInterval
,
"etcd-compaction-interval"
,
s
.
StorageConfig
.
CompactionInterval
,
fs
.
DurationVar
(
&
s
.
StorageConfig
.
CompactionInterval
,
"etcd-compaction-interval"
,
s
.
StorageConfig
.
CompactionInterval
,
"The interval of compaction requests. If 0, the compaction request from apiserver is disabled."
)
"The interval of compaction requests. If 0, the compaction request from apiserver is disabled."
)
...
...
test/integration/master/transformation_testcase.go
View file @
2b0212de
...
@@ -164,7 +164,7 @@ func (e *transformTest) getRawSecretFromETCD() ([]byte, error) {
...
@@ -164,7 +164,7 @@ func (e *transformTest) getRawSecretFromETCD() ([]byte, error) {
func
(
e
*
transformTest
)
getEncryptionOptions
()
[]
string
{
func
(
e
*
transformTest
)
getEncryptionOptions
()
[]
string
{
if
e
.
transformerConfig
!=
""
{
if
e
.
transformerConfig
!=
""
{
return
[]
string
{
"--e
xperimental-e
ncryption-provider-config"
,
path
.
Join
(
e
.
configDir
,
encryptionConfigFileName
)}
return
[]
string
{
"--encryption-provider-config"
,
path
.
Join
(
e
.
configDir
,
encryptionConfigFileName
)}
}
}
return
nil
return
nil
...
...
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