Skip to content

Commit 3d3e17f

Browse files
committed
comment changes
1 parent beea17c commit 3d3e17f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

internal/certification/certificates.go

-5
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@ const (
3333
)
3434

3535
type Certificates struct {
36-
// {
37-
// ClientCertificateSecretKey: {
38-
// "tls.crt": []byte
39-
// }
40-
// }
4136
Certificates map[string]map[string]core.SecretBytes
4237

4338
// Context is the context used to control the application.

internal/configuration/settings.go

-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ func (s *Settings) Initialize() error {
179179

180180
certificates := certification.NewCertificates(s.Context, s.K8sClient)
181181

182-
// q. Why is this a separate step?
183182
err = certificates.Initialize()
184183
if err != nil {
185184
return fmt.Errorf(`error occurred initializing certificates: %w`, err)

internal/core/secret_bytes.go

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ import (
44
"encoding/json"
55
)
66

7+
// Wraps byte slices which potentially could contain
8+
// sensitive data that should not be output to the logs.
9+
// This will output [REDACTED] if attempts are made
10+
// to print this type in logs, serialize to JSON, or
11+
// otherwise convert it to a string.
12+
// Usage: core.SecretBytes(myByteSlice)
713
type SecretBytes []byte
814

915
func (sb SecretBytes) String() string {

0 commit comments

Comments
 (0)