Skip to content

[Feature]: Make report filenames generated by kubectl cnpg report more shell-friendly #8983

@mnencia

Description

@mnencia

Is there an existing issue already for this feature request/idea?

  • I have searched for an existing issue, and could not find anything. I believe this is a new feature request to be evaluated.

What problem is this feature going to solve? Why should it be added?

The current kubectl cnpg report command generates report filenames containing timestamps with : and - characters, for example: report_operator_2025-10-28T17:19:33Z.zip and report_cluster_testcluster_2025-10-28T17:21:07Z.zip. The use of : and - in filenames can cause compatibility issues on some filesystems and make it harder to work with these files programmatically or from the command line.

Describe the solution you'd like

Change the report filename format to use only unix-friendly characters. For example, replace timestamps like 2025-10-28T17:19:33Z with 20251028_171933, resulting in filenames such as report_operator_20251028_171933.zip and report_cluster_testcluster_20251028_172107.zip. This makes the filenames easier to handle in scripts and ensures maximum compatibility across operating systems.

Describe alternatives you've considered

N/A

Additional context

N/A

Backport?

Yes

Are you willing to actively contribute to this feature?

Yes

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions