mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
Merge pull request #49195 from huangjiuyuan/fix-typo
Automatic merge from submit-queue fix typo in staging/src/k8s.io/apiserver/pkg/server/config.go **What this PR does / why we need it**: Fix a typo `It's members are sorted roughly in order of importance for composers.` in `staging/src/k8s.io/apiserver/pkg/server/config.go`. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: **Release note**: `NONE`
This commit is contained in:
commit
2bd0b3dd26
@ -74,7 +74,7 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// Config is a structure used to configure a GenericAPIServer.
|
// Config is a structure used to configure a GenericAPIServer.
|
||||||
// It's members are sorted roughly in order of importance for composers.
|
// Its members are sorted roughly in order of importance for composers.
|
||||||
type Config struct {
|
type Config struct {
|
||||||
// SecureServingInfo is required to serve https
|
// SecureServingInfo is required to serve https
|
||||||
SecureServingInfo *SecureServingInfo
|
SecureServingInfo *SecureServingInfo
|
||||||
@ -104,7 +104,7 @@ type Config struct {
|
|||||||
|
|
||||||
// Version will enable the /version endpoint if non-nil
|
// Version will enable the /version endpoint if non-nil
|
||||||
Version *version.Info
|
Version *version.Info
|
||||||
// LegacyAuditWriter is the destination for audit logs. If nil, they will not be written.
|
// LegacyAuditWriter is the destination for audit logs. If nil, they will not be written.
|
||||||
LegacyAuditWriter io.Writer
|
LegacyAuditWriter io.Writer
|
||||||
// AuditBackend is where audit events are sent to.
|
// AuditBackend is where audit events are sent to.
|
||||||
AuditBackend audit.Backend
|
AuditBackend audit.Backend
|
||||||
@ -126,13 +126,13 @@ type Config struct {
|
|||||||
|
|
||||||
// BuildHandlerChainFunc allows you to build custom handler chains by decorating the apiHandler.
|
// BuildHandlerChainFunc allows you to build custom handler chains by decorating the apiHandler.
|
||||||
BuildHandlerChainFunc func(apiHandler http.Handler, c *Config) (secure http.Handler)
|
BuildHandlerChainFunc func(apiHandler http.Handler, c *Config) (secure http.Handler)
|
||||||
// DiscoveryAddresses is used to build the IPs pass to discovery. If nil, the ExternalAddress is
|
// DiscoveryAddresses is used to build the IPs pass to discovery. If nil, the ExternalAddress is
|
||||||
// always reported
|
// always reported
|
||||||
DiscoveryAddresses discovery.Addresses
|
DiscoveryAddresses discovery.Addresses
|
||||||
// The default set of healthz checks. There might be more added via AddHealthzChecks dynamically.
|
// The default set of healthz checks. There might be more added via AddHealthzChecks dynamically.
|
||||||
HealthzChecks []healthz.HealthzChecker
|
HealthzChecks []healthz.HealthzChecker
|
||||||
// LegacyAPIGroupPrefixes is used to set up URL parsing for authorization and for validating requests
|
// LegacyAPIGroupPrefixes is used to set up URL parsing for authorization and for validating requests
|
||||||
// to InstallLegacyAPIGroup. New API servers don't generally have legacy groups at all.
|
// to InstallLegacyAPIGroup. New API servers don't generally have legacy groups at all.
|
||||||
LegacyAPIGroupPrefixes sets.String
|
LegacyAPIGroupPrefixes sets.String
|
||||||
// RequestContextMapper maps requests to contexts. Exported so downstream consumers can provider their own mappers
|
// RequestContextMapper maps requests to contexts. Exported so downstream consumers can provider their own mappers
|
||||||
// TODO confirm that anyone downstream actually uses this and doesn't just need an accessor
|
// TODO confirm that anyone downstream actually uses this and doesn't just need an accessor
|
||||||
@ -293,7 +293,7 @@ type completedConfig struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Complete fills in any fields not set that are required to have valid data and can be derived
|
// Complete fills in any fields not set that are required to have valid data and can be derived
|
||||||
// from other fields. If you're going to `ApplyOptions`, do that first. It's mutating the receiver.
|
// from other fields. If you're going to `ApplyOptions`, do that first. It's mutating the receiver.
|
||||||
func (c *Config) Complete() completedConfig {
|
func (c *Config) Complete() completedConfig {
|
||||||
if len(c.ExternalAddress) == 0 && c.PublicAddress != nil {
|
if len(c.ExternalAddress) == 0 && c.PublicAddress != nil {
|
||||||
hostAndPort := c.PublicAddress.String()
|
hostAndPort := c.PublicAddress.String()
|
||||||
@ -374,7 +374,7 @@ func (c *Config) SkipComplete() completedConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// New creates a new server which logically combines the handling chain with the passed server.
|
// New creates a new server which logically combines the handling chain with the passed server.
|
||||||
// name is used to differentiate for logging. The handler chain in particular can be difficult as it starts delgating.
|
// name is used to differentiate for logging. The handler chain in particular can be difficult as it starts delgating.
|
||||||
func (c completedConfig) New(name string, delegationTarget DelegationTarget) (*GenericAPIServer, error) {
|
func (c completedConfig) New(name string, delegationTarget DelegationTarget) (*GenericAPIServer, error) {
|
||||||
// The delegationTarget and the config must agree on the RequestContextMapper
|
// The delegationTarget and the config must agree on the RequestContextMapper
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user