Skip to content

Commit

Permalink
Fix typo in label name for secure logs check
Browse files Browse the repository at this point in the history
  • Loading branch information
rbjornstad committed Feb 29, 2024
1 parent 4833bb9 commit 4c508b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/k8s/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (c *Client) LogStream(ctx context.Context, cluster, namespace, selector, co
}

for _, p := range pods.Items {
if p.Labels["logs.nais.io/flow-secure-logs"] == "true" {
if p.Labels["logs.nais.io/flow-secure_logs"] == "true" {
return nil, apierror.Errorf("Logs are secure, cannot be streamed")
}
}
Expand Down

0 comments on commit 4c508b0

Please sign in to comment.