Skip to content

Commit

Permalink
fix name when getting secret
Browse files Browse the repository at this point in the history
  • Loading branch information
mycrEEpy committed Aug 18, 2023
1 parent 7c4aead commit 454ca5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pgopher/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (s *Server) handleProfile(ctx echo.Context) error {

return ctx.File(file.Name())
case "kubernetes":
name := fmt.Sprintf("pgopher-profile-%s", profile)
name := fmt.Sprintf("pgopher-profile-%s", strings.TrimSuffix(profile, ".pgo"))

resp, err := s.kubeClient.CoreV1().Secrets(s.cfg.Sink.KubernetesSinkOptions.Namespace).Get(ctx.Request().Context(), name, meta.GetOptions{})
if err != nil {
Expand Down

0 comments on commit 454ca5c

Please sign in to comment.