File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,9 @@ var (
110
110
NewWebhookManagedBy = builder .WebhookManagedBy
111
111
112
112
// NewManager returns a new Manager for creating Controllers.
113
+ // Note that if ContentType in the given config is not set, "application/vnd.kubernetes.protobuf"
114
+ // will be used for all built-in resources of Kubernetes, and "application/json" is for other types
115
+ // including all CRD resources.
113
116
NewManager = manager .New
114
117
115
118
// CreateOrUpdate creates or updates the given object obj in the Kubernetes
Original file line number Diff line number Diff line change @@ -390,6 +390,9 @@ type LeaderElectionRunnable interface {
390
390
}
391
391
392
392
// New returns a new Manager for creating Controllers.
393
+ // Note that if ContentType in the given config is not set, "application/vnd.kubernetes.protobuf"
394
+ // will be used for all built-in resources of Kubernetes, and "application/json" is for other types
395
+ // including all CRD resources.
393
396
func New (config * rest.Config , options Options ) (Manager , error ) {
394
397
// Set default values for options fields
395
398
options = setOptionsDefaults (options )
You can’t perform that action at this time.
0 commit comments