Skip to content

Commit 81efef4

Browse files
committed
Switch debugger configuration fields to pointers
1 parent 6a19261 commit 81efef4

File tree

5 files changed

+26
-8
lines changed

5 files changed

+26
-8
lines changed

staging/src/k8s.io/component-base/config/v1alpha1/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ type LeaderElectionConfiguration struct {
5959
// DebuggingConfiguration holds configuration for Debugging related features.
6060
type DebuggingConfiguration struct {
6161
// enableProfiling enables profiling via web interface host:port/debug/pprof/
62-
EnableProfiling bool `json:"enableProfiling"`
62+
EnableProfiling *bool `json:"enableProfiling,omitempty"`
6363
// enableContentionProfiling enables lock contention profiling, if
6464
// enableProfiling is true.
65-
EnableContentionProfiling bool `json:"enableContentionProfiling"`
65+
EnableContentionProfiling *bool `json:"enableContentionProfiling,omitempty"`
6666
}
6767

6868
// ClientConnectionConfiguration contains details for constructing a client.

staging/src/k8s.io/component-base/config/v1alpha1/zz_generated.conversion.go

Lines changed: 12 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

staging/src/k8s.io/component-base/config/v1alpha1/zz_generated.deepcopy.go

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

staging/src/k8s.io/kube-controller-manager/config/v1alpha1/zz_generated.deepcopy.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

staging/src/k8s.io/kube-scheduler/config/v1alpha1/zz_generated.deepcopy.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)