Repository navigation
Conversation
|
This pull request has been marked as stale because it has been open for 90 days with no activity. This pull request will be automatically closed in 30 days if no further activity occurs. |
|
activity |
|
activity |
|
Before reviewing, is it possible to rebase ? |
Signed-off-by: cleverhu <[email protected]>
ef94826 to
9359798
Compare
Signed-off-by: Kazuhiro Suzuki <[email protected]> Signed-off-by: Kazuhiro Suzuki <[email protected]>
Signed-off-by: Kazuhiro Suzuki <[email protected]> Signed-off-by: Kazuhiro Suzuki <[email protected]>
9359798 to
16f0ae7
Compare
|
Rebased against the latest main branch. |
|
Tested and it's working as expected. $ bin/helm search repo bitnami --with-timestamps | head -5
NAME CHART VERSION APP VERSION DESCRIPTION CREATED
bitnami/airflow 25.0.2 3.0.5 Apache Airflow is a tool to express and execute... 2025-08-21T03:20:00Z
bitnami/apache 11.4.29 2.4.65 Apache HTTP Server is an open-source HTTP serve... 2025-08-18T20:03:51Z
bitnami/apisix 6.0.0 3.13.0 Apache APISIX is high-performance, real-time AP... 2025-08-20T12:45:26Z
bitnami/appsmith 7.0.3 1.85.0 Appsmith is an open source platform for buildin... 2025-08-14T02:38:00ZLGTM |
gjenkins8
left a comment
There was a problem hiding this comment.
Couple of comments/questions:
- If a chart is ie. uninstalled, would we still want to show the "CREATED" column/timestamp ?
- We have the flag
--with-timestamps, which controls whether a "CREATED" column is shown. Why the difference in naming here?
|
Thank you for the comment.
The intention of showing the
I adopted the suggestion from this comment for the option name. If |
|
This pull request has been marked as stale because it has been open for 90 days with no activity. This pull request will be automatically closed in 30 days if no further activity occurs. |
|
activity |
|
This pull request has been marked as stale because it has been open for 90 days with no activity. This pull request will be automatically closed in 30 days if no further activity occurs. |
Co-authored-by: George Jenkins <[email protected]> Signed-off-by: Kazuhiro Suzuki <[email protected]>
There was a problem hiding this comment.
Pull request overview
This PR enhances helm search repo output by surfacing chart release timestamps, addressing #11042 by adding a created field to structured outputs and an opt-in table column.
Changes:
- Add a
createdtimestamp field torepo searchJSON/YAML output. - Add a
--with-timestamps-style option to include aCREATEDcolumn in table output. - Update golden test fixtures and add a table-output test case.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/cmd/search_repo.go | Implements created output and table CREATED column controlled by a flag. |
| pkg/cmd/search_repo_test.go | Adds a golden test case for table output with timestamps. |
| pkg/cmd/testdata/output/search-output-yaml.txt | Updates YAML golden output to include created. |
| pkg/cmd/testdata/output/search-output-json.txt | Updates JSON golden output to include created. |
| pkg/cmd/testdata/output/search-output-timestamps.txt | Adds new golden output for table format including CREATED column. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| f.BoolVar(&o.failOnNoResult, "fail-on-no-result", false, "search fails if no results are found") | ||
| f.BoolVar(&o.withCreatedTimeStamp, "with-created-timestamp", false, "print created timestamp on output table") |
| for _, ret := range r.results { | ||
| if r.withTimestamps { | ||
| table.AddRow(ret.Name, ret.Chart.Version, ret.Chart.AppVersion, ret.Chart.Description, ret.Chart.Created.Format(time.RFC3339)) | ||
| } else { | ||
| table.AddRow(ret.Name, ret.Chart.Version, ret.Chart.AppVersion, ret.Chart.Description) | ||
| } | ||
| } |
| for _, r := range r.results { | ||
| chartList = append(chartList, repoChartElement{r.Name, r.Chart.Version, r.Chart.AppVersion, r.Chart.Description}) | ||
| chartList = append(chartList, repoChartElement{r.Name, r.Chart.Version, r.Chart.AppVersion, r.Chart.Description, r.Chart.Created.Format(time.RFC3339)}) | ||
| } |
|
This pull request has been marked as stale because it has been open for 90 days with no activity. This pull request will be automatically closed in 30 days if no further activity occurs. |
What this PR does / why we need it:
closes #11042
Add
createdfield torepo searchcommand to understand when the charts are released.Changes
--with-timestampsoption torepo searchcommand to print created timestamps for table outputcreatedfield to yaml and json output on default.table output
json output
yaml output
Special notes for your reviewer:
I improved #11326 to keep backward compatibility for table output.
If applicable:
docs neededlabel should be applied if so)