Skip to content

Commit ca43a0e

Browse files
committed
rename mgmt trusted secret function
1 parent f64bd64 commit ca43a0e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

cmd/nginx-ingress/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ func main() {
159159
logEventAndExit(ctx, eventRecorder, pod, secretErrorReason, err)
160160
}
161161

162-
if err := processTrustedCertSecret(kubeClient, nginxManager, mgmtCfgParams, controllerNamespace); err != nil {
162+
if err := processMgmtTrustedCertSecret(kubeClient, nginxManager, mgmtCfgParams, controllerNamespace); err != nil {
163163
logEventAndExit(ctx, eventRecorder, pod, secretErrorReason, err)
164164
}
165165

@@ -364,7 +364,7 @@ func processClientAuthSecret(kubeClient *kubernetes.Clientset, nginxManager ngin
364364
return nil
365365
}
366366

367-
func processTrustedCertSecret(kubeClient *kubernetes.Clientset, nginxManager nginx.Manager, mgmtCfgParams *configs.MGMTConfigParams, controllerNamespace string) error {
367+
func processMgmtTrustedCertSecret(kubeClient *kubernetes.Clientset, nginxManager nginx.Manager, mgmtCfgParams *configs.MGMTConfigParams, controllerNamespace string) error {
368368
if mgmtCfgParams.Secrets.TrustedCert == "" {
369369
return nil
370370
}

internal/configs/version1/config.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,6 @@ type MainConfig struct {
240240
NginxStatus bool
241241
NginxStatusAllowCIDRs []string
242242
NginxStatusPort int
243-
MainOtelEnabled bool
244243
MainOtelLoadModule bool
245244
MainOtelGlobalTraceEnabled bool
246245
MainOtelExporterEndpoint string

0 commit comments

Comments
 (0)