Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuatcasey committed Aug 1, 2024
1 parent b1ebcd7 commit bb4ef17
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2020-2023 the Pinniped contributors. All Rights Reserved.
// Copyright 2020-2024 the Pinniped contributors. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

package v1alpha1
Expand Down Expand Up @@ -88,6 +88,7 @@ const (
//
// If neither CertificateAuthorityData nor ca.crt is provided, no CA bundle will be advertised for
// the impersonation proxy endpoint.
// TODO: Improve the docs on the fields below to reference ca.crt vs CertificateAuthorityData
type ImpersonationProxyTLSSpec struct {
// X.509 Certificate Authority (base64-encoded PEM bundle).
// Used to advertise the CA bundle for the impersonation proxy endpoint.
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/apicerts/certs_creator.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func NewCertsCreatorController(
) controllerlib.Controller {
return controllerlib.New(
controllerlib.Config{
Name: "certs-manager-controller",
Name: "certs-creator-controller",
Syncer: &certsCreatorController{
namespace: namespace,
certsSecretResourceName: certsSecretResourceName,
Expand Down
2 changes: 2 additions & 0 deletions internal/controller/apicerts/certs_observer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,8 @@ func TestObserverControllerSync(t *testing.T) {

actualCertChain, actualKey = dynamicCertProvider.CurrentCertKeyContent()
r.True(strings.HasPrefix(string(actualCertChain), `-----BEGIN CERTIFICATE-----`), "not a cert:\n%s", string(actualCertChain))
// Confirm that the embed worked successfully
r.True(len(privateKeyPrefix) > 0, "privateKeyPrefix should be non-empty")
r.True(strings.HasPrefix(string(actualKey), privateKeyPrefix), "not a key:\n%s", string(actualKey))
})
})
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-----BEGIN PRIVATE KEY-----

0 comments on commit bb4ef17

Please sign in to comment.