Skip to content

Commit d15dd3c

Browse files
committed
style: trim verbose comments added in prior fixes
1 parent e451b5e commit d15dd3c

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

k8s/tls.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ func LoadOrGenerateCert(ctx context.Context, certPath, keyPath, hostname, ip str
4242

4343
// tryLoadDiskCert returns ("", "", nil) when the caller should fall
4444
// back to self-signed (paths empty, cert missing, or expired) and an
45-
// error only when a configured keypair fails to load. A missing key
46-
// while the cert is present is a misconfiguration and surfaces as an
47-
// error rather than silently switching to self-signed.
45+
// error only when a configured keypair fails to load.
4846
func tryLoadDiskCert(ctx context.Context, certPath, keyPath string) (tls.Certificate, string, error) {
4947
if certPath == "" || keyPath == "" {
5048
return tls.Certificate{}, "", nil

meta/vmname.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ func MainAgentVMNameFor(namespace, cocoonSet string) string {
4444
}
4545

4646
// InferRoleFromAgentSlot returns RoleMain for slot 0, RoleSubAgent for
47-
// positive slots, RoleToolbox for slot < 0 (so the chain with
48-
// ExtractAgentSlot stays safe for toolbox VM names).
47+
// positive slots, RoleToolbox for slot < 0.
4948
func InferRoleFromAgentSlot(slot int) string {
5049
switch {
5150
case slot < 0:

0 commit comments

Comments
 (0)