We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 120b59a commit 9cef0e6Copy full SHA for 9cef0e6
pkg/admission/controller.go
@@ -37,7 +37,7 @@ type CertProvisioner struct {
37
CertGenerator generator.CertGenerator
38
CertWriter writer.CertWriter
39
40
- once *sync.Once
+ once sync.Once
41
}
42
43
// Sync takes a runtime.Object which is expected to be either a MutatingWebhookConfiguration or
pkg/admission/controller_test.go
@@ -0,0 +1,13 @@
1
+package admission
2
+
3
+import (
4
+ "testing"
5
6
+ "k8s.io/api/admissionregistration/v1beta1"
7
+)
8
9
+func TestCertProvisionerInit(t *testing.T) {
10
+ p := &CertProvisioner{}
11
+ config := &v1beta1.MutatingWebhookConfiguration{}
12
+ p.Sync(config)
13
+}
0 commit comments