Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kchiranjewee63 committed Jul 12, 2024
1 parent be97c58 commit e1f7d42
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions service/webhook/pkg/tlscreds/tlscreds.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ import (
)

const (
CertsDirPath = "/etc/webhook/certs"
CertPath = "/etc/webhook/certs/tls.crt"
KeyPath = "/etc/webhook/certs/tls.key"
certsFileMode = os.FileMode(0o644)
keyFileMode = os.FileMode(0o600)
certsDirMode = os.FileMode(0o755)
CertsDirPath = "/etc/webhook/certs"
CertPath = "/etc/webhook/certs/tls.crt"
KeyPath = "/etc/webhook/certs/tls.key"
certsFileMode = os.FileMode(0o644)
keyFileMode = os.FileMode(0o600)
certsDirMode = os.FileMode(0o755)
SpiffeWorkloadNewClientTimeout = 15 * time.Second
)

Expand Down
1 change: 1 addition & 0 deletions service/webhook/pkg/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func CreatePodPatch(pod *corev1.Pod, injectInitContainer bool, agentHttpsApiPort
if vol.HostPath != nil && vol.HostPath.Path == spireAgentHostDir {
volumeName = vol.Name
foundVolume = true

break
}
}
Expand Down

0 comments on commit e1f7d42

Please sign in to comment.