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
abe9715f
Commit
abe9715f
authored
Apr 16, 2018
by
hzxuzhonghu
Committed by
Davanum Srinivas
May 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show deprecated kube-apiserver flags
parent
18f4924f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
admission.go
pkg/kubeapiserver/options/admission.go
+1
-0
serving.go
pkg/kubeapiserver/options/serving.go
+2
-0
No files found.
pkg/kubeapiserver/options/admission.go
View file @
abe9715f
...
@@ -73,6 +73,7 @@ func (a *AdmissionOptions) AddFlags(fs *pflag.FlagSet) {
...
@@ -73,6 +73,7 @@ func (a *AdmissionOptions) AddFlags(fs *pflag.FlagSet) {
"The order of plugins in which they are passed to this flag does not matter. "
+
"The order of plugins in which they are passed to this flag does not matter. "
+
"Comma-delimited list of: "
+
strings
.
Join
(
a
.
GenericAdmission
.
Plugins
.
Registered
(),
", "
)
+
"."
)
"Comma-delimited list of: "
+
strings
.
Join
(
a
.
GenericAdmission
.
Plugins
.
Registered
(),
", "
)
+
"."
)
fs
.
MarkDeprecated
(
"admission-control"
,
"Use --enable-admission-plugins or --disable-admission-plugins instead. Will be removed in a future version."
)
fs
.
MarkDeprecated
(
"admission-control"
,
"Use --enable-admission-plugins or --disable-admission-plugins instead. Will be removed in a future version."
)
fs
.
Lookup
(
"admission-control"
)
.
Hidden
=
false
a
.
GenericAdmission
.
AddFlags
(
fs
)
a
.
GenericAdmission
.
AddFlags
(
fs
)
}
}
...
...
pkg/kubeapiserver/options/serving.go
View file @
abe9715f
...
@@ -99,6 +99,7 @@ func (s *InsecureServingOptions) AddFlags(fs *pflag.FlagSet) {
...
@@ -99,6 +99,7 @@ func (s *InsecureServingOptions) AddFlags(fs *pflag.FlagSet) {
fs
.
IPVar
(
&
s
.
BindAddress
,
"insecure-bind-address"
,
s
.
BindAddress
,
""
+
fs
.
IPVar
(
&
s
.
BindAddress
,
"insecure-bind-address"
,
s
.
BindAddress
,
""
+
"The IP address on which to serve the --insecure-port (set to 0.0.0.0 for all IPv4 interfaces and :: for all IPv6 interfaces)."
)
"The IP address on which to serve the --insecure-port (set to 0.0.0.0 for all IPv4 interfaces and :: for all IPv6 interfaces)."
)
fs
.
MarkDeprecated
(
"insecure-bind-address"
,
"This flag will be removed in a future version."
)
fs
.
MarkDeprecated
(
"insecure-bind-address"
,
"This flag will be removed in a future version."
)
fs
.
Lookup
(
"insecure-bind-address"
)
.
Hidden
=
false
fs
.
IntVar
(
&
s
.
BindPort
,
"insecure-port"
,
s
.
BindPort
,
""
+
fs
.
IntVar
(
&
s
.
BindPort
,
"insecure-port"
,
s
.
BindPort
,
""
+
"The port on which to serve unsecured, unauthenticated access. It is assumed "
+
"The port on which to serve unsecured, unauthenticated access. It is assumed "
+
...
@@ -106,6 +107,7 @@ func (s *InsecureServingOptions) AddFlags(fs *pflag.FlagSet) {
...
@@ -106,6 +107,7 @@ func (s *InsecureServingOptions) AddFlags(fs *pflag.FlagSet) {
"the cluster and that port 443 on the cluster's public address is proxied to this "
+
"the cluster and that port 443 on the cluster's public address is proxied to this "
+
"port. This is performed by nginx in the default setup. Set to zero to disable."
)
"port. This is performed by nginx in the default setup. Set to zero to disable."
)
fs
.
MarkDeprecated
(
"insecure-port"
,
"This flag will be removed in a future version."
)
fs
.
MarkDeprecated
(
"insecure-port"
,
"This flag will be removed in a future version."
)
fs
.
Lookup
(
"insecure-port"
)
.
Hidden
=
false
}
}
// TODO: remove it until kops stop using `--address`
// TODO: remove it until kops stop using `--address`
...
...
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