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
13884268
Commit
13884268
authored
Sep 05, 2017
by
Cao Shufeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set AdvancedAuditing feature gate to true by default
parent
52ac2652
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
kube_features.go
pkg/features/kube_features.go
+1
-1
kube_features.go
staging/src/k8s.io/apiserver/pkg/features/kube_features.go
+2
-1
audit.go
staging/src/k8s.io/apiserver/pkg/server/options/audit.go
+3
-2
No files found.
pkg/features/kube_features.go
View file @
13884268
...
...
@@ -191,7 +191,7 @@ var defaultKubernetesFeatureGates = map[utilfeature.Feature]utilfeature.FeatureS
// inherited features from generic apiserver, relisted here to get a conflict if it is changed
// unintentionally on either side:
genericfeatures
.
StreamingProxyRedirects
:
{
Default
:
true
,
PreRelease
:
utilfeature
.
Beta
},
genericfeatures
.
AdvancedAuditing
:
{
Default
:
false
,
PreRelease
:
utilfeature
.
Alph
a
},
genericfeatures
.
AdvancedAuditing
:
{
Default
:
true
,
PreRelease
:
utilfeature
.
Bet
a
},
genericfeatures
.
APIResponseCompression
:
{
Default
:
false
,
PreRelease
:
utilfeature
.
Alpha
},
genericfeatures
.
Initializers
:
{
Default
:
false
,
PreRelease
:
utilfeature
.
Alpha
},
genericfeatures
.
APIListChunking
:
{
Default
:
false
,
PreRelease
:
utilfeature
.
Alpha
},
...
...
staging/src/k8s.io/apiserver/pkg/features/kube_features.go
View file @
13884268
...
...
@@ -36,6 +36,7 @@ const (
// owner: @tallclair
// alpha: v1.7
// beta: v1.8
//
// AdvancedAuditing enables a much more general API auditing pipeline, which includes support for
// pluggable output backends and an audit policy specifying how different requests should be
...
...
@@ -72,7 +73,7 @@ func init() {
// available throughout Kubernetes binaries.
var
defaultKubernetesFeatureGates
=
map
[
utilfeature
.
Feature
]
utilfeature
.
FeatureSpec
{
StreamingProxyRedirects
:
{
Default
:
true
,
PreRelease
:
utilfeature
.
Beta
},
AdvancedAuditing
:
{
Default
:
false
,
PreRelease
:
utilfeature
.
Alph
a
},
AdvancedAuditing
:
{
Default
:
true
,
PreRelease
:
utilfeature
.
Bet
a
},
APIResponseCompression
:
{
Default
:
false
,
PreRelease
:
utilfeature
.
Alpha
},
Initializers
:
{
Default
:
false
,
PreRelease
:
utilfeature
.
Alpha
},
APIListChunking
:
{
Default
:
false
,
PreRelease
:
utilfeature
.
Alpha
},
...
...
staging/src/k8s.io/apiserver/pkg/server/options/audit.go
View file @
13884268
...
...
@@ -57,8 +57,9 @@ type AuditOptions struct {
WebhookOptions
AuditWebhookOptions
}
// AuditLogOptions holds the legacy audit log writer. If the AdvancedAuditing feature
// is enabled, these options determine the output of the structured audit log.
// AuditLogOptions determines the output of the structured audit log by default.
// If the AdvancedAuditing feature is set to false, AuditLogOptions holds the legacy
// audit log writer.
type
AuditLogOptions
struct
{
Path
string
MaxAge
int
...
...
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