MCPcopy
hub / github.com/marmotedu/iam / buildGenericConfig

Function buildGenericConfig

internal/apiserver/server.go:149–168  ·  view source on GitHub ↗
(cfg *config.Config)

Source from the content-addressed store, hash-verified

147}
148
149func buildGenericConfig(cfg *config.Config) (genericConfig *genericapiserver.Config, lastErr error) {
150 genericConfig = genericapiserver.NewConfig()
151 if lastErr = cfg.GenericServerRunOptions.ApplyTo(genericConfig); lastErr != nil {
152 return
153 }
154
155 if lastErr = cfg.FeatureOptions.ApplyTo(genericConfig); lastErr != nil {
156 return
157 }
158
159 if lastErr = cfg.SecureServing.ApplyTo(genericConfig); lastErr != nil {
160 return
161 }
162
163 if lastErr = cfg.InsecureServing.ApplyTo(genericConfig); lastErr != nil {
164 return
165 }
166
167 return
168}
169
170// nolint: unparam
171func buildExtraConfig(cfg *config.Config) (*ExtraConfig, error) {

Callers 1

createAPIServerFunction · 0.70

Calls 1

ApplyToMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…