Skip to content

Commit 46bbe5b

Browse files
committed
Fix typos
1 parent e6a0f94 commit 46bbe5b

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

internal/controller/apicerts/certs_creator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func NewCertsCreatorController(
6161
) controllerlib.Controller {
6262
return controllerlib.New(
6363
controllerlib.Config{
64-
Name: "certs-manager-controller",
64+
Name: "certs-creator-controller",
6565
Syncer: &certsCreatorController{
6666
namespace: namespace,
6767
certsSecretResourceName: certsSecretResourceName,

internal/controller/apicerts/certs_observer_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,8 @@ func TestObserverControllerSync(t *testing.T) {
242242

243243
actualCertChain, actualKey = dynamicCertProvider.CurrentCertKeyContent()
244244
r.True(strings.HasPrefix(string(actualCertChain), `-----BEGIN CERTIFICATE-----`), "not a cert:\n%s", string(actualCertChain))
245+
// Confirm that the embed worked successfully
246+
r.True(len(privateKeyPrefix) > 0, "privateKeyPrefix should be non-empty")
245247
r.True(strings.HasPrefix(string(actualKey), privateKeyPrefix), "not a key:\n%s", string(actualKey))
246248
})
247249
})
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-----BEGIN PRIVATE KEY-----

0 commit comments

Comments
 (0)