Skip to content

Commit 04fe374

Browse files
committed
DEVEL
1 parent a92da07 commit 04fe374

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

pkg/operator/targetconfigcontroller/targetconfigcontroller.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,7 @@ func manageServiceAccountCABundle(ctx context.Context, lister corev1listers.Conf
745745
}
746746

747747
func ManageCSRCABundle(ctx context.Context, lister corev1listers.ConfigMapLister, client corev1client.ConfigMapsGetter, recorder events.Recorder) (*corev1.ConfigMap, bool, error) {
748+
klog.Info("ManageCSRCABundle+")
748749
additionalAnnotations := certrotation.AdditionalAnnotations{
749750
JiraComponent: "kube-controller-manager",
750751
Description: "CA to recognize the CSRs (both serving and client) signed by the kube-controller-manager.",
@@ -764,6 +765,7 @@ func ManageCSRCABundle(ctx context.Context, lister corev1listers.ConfigMapLister
764765
Namespace: operatorclient.OperatorNamespace,
765766
},
766767
}
768+
klog.Infof("ManageCSRCABundle: new %#v", caBundleConfigMap)
767769
case err != nil:
768770
return nil, false, err
769771
}
@@ -782,6 +784,7 @@ func ManageCSRCABundle(ctx context.Context, lister corev1listers.ConfigMapLister
782784
}
783785
if creationRequired {
784786
caBundleConfigMap, err = client.ConfigMaps(operatorclient.OperatorNamespace).Create(ctx, requiredConfigMap, metav1.CreateOptions{})
787+
klog.Infof("ManageCSRCABundle: create: %#v, %#v", caBundleConfigMap, err)
785788
resourcehelper.ReportCreateEvent(recorder, caBundleConfigMap, err)
786789
if err != nil {
787790
return nil, false, err
@@ -790,6 +793,7 @@ func ManageCSRCABundle(ctx context.Context, lister corev1listers.ConfigMapLister
790793
return caBundleConfigMap, true, nil
791794
} else if updateRequired {
792795
caBundleConfigMap, err = client.ConfigMaps(operatorclient.OperatorNamespace).Update(ctx, requiredConfigMap, metav1.UpdateOptions{})
796+
klog.Infof("ManageCSRCABundle: update: %#v, %#v", caBundleConfigMap, err)
793797
resourcehelper.ReportUpdateEvent(recorder, caBundleConfigMap, err)
794798
if err != nil {
795799
return nil, false, err
@@ -798,6 +802,7 @@ func ManageCSRCABundle(ctx context.Context, lister corev1listers.ConfigMapLister
798802
return caBundleConfigMap, true, nil
799803
}
800804

805+
klog.Info("ManageCSRCABundle-")
801806
return caBundleConfigMap, false, nil
802807
}
803808

vendor/github.com/openshift/library-go/pkg/operator/resourcesynccontroller/core.go

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)