mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
K8s: omit CABundle until insecure is false (#84323)
This commit is contained in:
@@ -136,7 +136,7 @@ func CreateAggregatorConfig(commandOptions *options.Options, sharedConfig generi
|
|||||||
return NewConfig(aggregatorConfig, sharedInformerFactory, nil), nil
|
return NewConfig(aggregatorConfig, sharedInformerFactory, nil), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
caBundlePEM, err := readCABundlePEM(commandOptions.AggregatorOptions.APIServiceCABundleFile, commandOptions.ExtraOptions.DevMode)
|
_, err = readCABundlePEM(commandOptions.AggregatorOptions.APIServiceCABundleFile, commandOptions.ExtraOptions.DevMode)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@@ -151,9 +151,10 @@ func CreateAggregatorConfig(commandOptions *options.Options, sharedConfig generi
|
|||||||
// https://github.com/kubernetes/kubernetes/pull/123808
|
// https://github.com/kubernetes/kubernetes/pull/123808
|
||||||
InsecureSkipTLSVerify: true,
|
InsecureSkipTLSVerify: true,
|
||||||
ExternalNamesNamespace: externalNamesNamespace,
|
ExternalNamesNamespace: externalNamesNamespace,
|
||||||
CABundle: caBundlePEM,
|
// TODO: CABundle can't be set when insecure is true
|
||||||
Services: remoteServices,
|
// CABundle: caBundlePEM,
|
||||||
serviceClientSet: serviceClient,
|
Services: remoteServices,
|
||||||
|
serviceClientSet: serviceClient,
|
||||||
}
|
}
|
||||||
|
|
||||||
return NewConfig(aggregatorConfig, sharedInformerFactory, remoteServicesConfig), nil
|
return NewConfig(aggregatorConfig, sharedInformerFactory, remoteServicesConfig), nil
|
||||||
|
|||||||
Reference in New Issue
Block a user