Skip to content

Commit

Permalink
Merge pull request kubernetes#125787 from dims/pandaamanda-remove_api…
Browse files Browse the repository at this point in the history
…server_logs_api

kube-apiserver: default --enable-logs-handler flag to false
  • Loading branch information
k8s-ci-robot committed Jun 29, 2024
2 parents fa75b43 + a88dc63 commit a9c156b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions hack/update-openapi-spec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ kube-apiserver \
--service-account-lookup="${SERVICE_ACCOUNT_LOOKUP}" \
--service-account-issuer="https://kubernetes.default.svc" \
--service-account-signing-key-file="${SERVICE_ACCOUNT_KEY}" \
--enable-logs-handler=true \
--v=2 \
--service-cluster-ip-range="10.0.0.0/24" >"${API_LOGFILE}" 2>&1 &
APISERVER_PID=$!
Expand Down
4 changes: 2 additions & 2 deletions pkg/controlplane/apiserver/options/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func NewOptions() *Options {
Logs: logs.NewOptions(),
Traces: genericoptions.NewTracingOptions(),

EnableLogsHandler: true,
EnableLogsHandler: false,
EventTTL: 1 * time.Hour,
AggregatorRejectForwardingRedirects: true,
SystemNamespaces: []string{metav1.NamespaceSystem, metav1.NamespacePublic, metav1.NamespaceDefault},
Expand Down Expand Up @@ -150,7 +150,7 @@ func (s *Options) AddFlags(fss *cliflag.NamedFlagSets) {

fs.BoolVar(&s.EnableLogsHandler, "enable-logs-handler", s.EnableLogsHandler,
"If true, install a /logs handler for the apiserver logs.")
fs.MarkDeprecated("enable-logs-handler", "This flag will be removed in v1.19")
fs.MarkDeprecated("enable-logs-handler", "This flag will be removed in v1.33") //nolint:errcheck

fs.Int64Var(&s.MaxConnectionBytesPerSec, "max-connection-bytes-per-sec", s.MaxConnectionBytesPerSec, ""+
"If non-zero, throttle each user connection to this number of bytes/sec. "+
Expand Down
3 changes: 0 additions & 3 deletions test/e2e/network/networking.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,6 @@ var _ = common.SIGDescribe("Networking", func() {
{path: "/version"},
// TODO: test proxy links here
}
if !framework.ProviderIs("gke", "skeleton") {
tests = append(tests, struct{ path string }{path: "/logs"})
}
for _, test := range tests {
ginkgo.By(fmt.Sprintf("testing: %s", test.path))
data, err := f.ClientSet.CoreV1().RESTClient().Get().
Expand Down

0 comments on commit a9c156b

Please sign in to comment.