Skip to content

Go 1 26#81

Merged
B13rg merged 21 commits into
mainfrom
go-1-26
Apr 18, 2026
Merged

Go 1 26#81
B13rg merged 21 commits into
mainfrom
go-1-26

Conversation

@B13rg
Copy link
Copy Markdown
Contributor

@B13rg B13rg commented Apr 18, 2026

Go 1.26.0

B13rg and others added 21 commits February 24, 2026 20:12
This commit resolves multiple bugs within the cluster filtering pipeline that prevented the `-C` flag from correctly filtering target clusters during the generation command.
Details:
- cmd/generate.go: Added `Filters.Clusters` to the validation check. Previously, cluster filtering wouldn't trigger unless `--clincludes` or `--clexcludes` were explicitly set, causing it to fall back to generating all clusters.
- pkg/util/util.go (CalculateClusterIncludesExcludes): Fixed a critical bug where the JSON parameter map value was appended to the generated cluster slice instead of the corresponding cluster name key.
- pkg/util/util.go (CalculateClusterIncludesExcludes): Implemented regex matching (`regexp.MatchString`) for cluster filtering, aligning the backend functionality with the CLI instruction documentation ("comma separated list of cluster names and/or regular expressions").
- pkg/util/util.go (FilterItems): Refactored the core include/exclude iteration loop to ensure that correctly matched clusters are actually recorded and appended into the final returned slice.
* rename

* lint ver
@B13rg B13rg merged commit 4ed92c2 into main Apr 18, 2026
1 of 2 checks passed
@B13rg B13rg deleted the go-1-26 branch April 18, 2026 21:51
B13rg added a commit that referenced this pull request Apr 18, 2026
* build

* go fix ./...

* version cfg

* bugfix: where `--clusters`/`-C` flag was ignored during generation (#79)

This commit resolves multiple bugs within the cluster filtering pipeline that prevented the `-C` flag from correctly filtering target clusters during the generation command.
Details:
- cmd/generate.go: Added `Filters.Clusters` to the validation check. Previously, cluster filtering wouldn't trigger unless `--clincludes` or `--clexcludes` were explicitly set, causing it to fall back to generating all clusters.
- pkg/util/util.go (CalculateClusterIncludesExcludes): Fixed a critical bug where the JSON parameter map value was appended to the generated cluster slice instead of the corresponding cluster name key.
- pkg/util/util.go (CalculateClusterIncludesExcludes): Implemented regex matching (`regexp.MatchString`) for cluster filtering, aligning the backend functionality with the CLI instruction documentation ("comma separated list of cluster names and/or regular expressions").
- pkg/util/util.go (FilterItems): Refactored the core include/exclude iteration loop to ensure that correctly matched clusters are actually recorded and appended into the final returned slice.

* Fix workflows (#82)

* rename

* lint ver

* Update deps

* go fix

* fix

* naming/fmt

* error check

* exhaust struct

* docs

* fix warn

* fix test

* extract func

* prealloc

* fmt

* cleanup path

* cleanup

* docs

---------

Co-authored-by: Nick Parry <nick-parry@users.noreply.github.com>
B13rg added a commit that referenced this pull request Apr 18, 2026
* build

* go fix ./...

* version cfg

* cleanup render and jsonnet commands

* docs

* bugfix: where `--clusters`/`-C` flag was ignored during generation (#79)

This commit resolves multiple bugs within the cluster filtering pipeline that prevented the `-C` flag from correctly filtering target clusters during the generation command.
Details:
- cmd/generate.go: Added `Filters.Clusters` to the validation check. Previously, cluster filtering wouldn't trigger unless `--clincludes` or `--clexcludes` were explicitly set, causing it to fall back to generating all clusters.
- pkg/util/util.go (CalculateClusterIncludesExcludes): Fixed a critical bug where the JSON parameter map value was appended to the generated cluster slice instead of the corresponding cluster name key.
- pkg/util/util.go (CalculateClusterIncludesExcludes): Implemented regex matching (`regexp.MatchString`) for cluster filtering, aligning the backend functionality with the CLI instruction documentation ("comma separated list of cluster names and/or regular expressions").
- pkg/util/util.go (FilterItems): Refactored the core include/exclude iteration loop to ensure that correctly matched clusters are actually recorded and appended into the final returned slice.

* Fix workflows (#82)

* rename

* lint ver

* Go 1 26 (#81)

* build

* go fix ./...

* version cfg

* bugfix: where `--clusters`/`-C` flag was ignored during generation (#79)

This commit resolves multiple bugs within the cluster filtering pipeline that prevented the `-C` flag from correctly filtering target clusters during the generation command.
Details:
- cmd/generate.go: Added `Filters.Clusters` to the validation check. Previously, cluster filtering wouldn't trigger unless `--clincludes` or `--clexcludes` were explicitly set, causing it to fall back to generating all clusters.
- pkg/util/util.go (CalculateClusterIncludesExcludes): Fixed a critical bug where the JSON parameter map value was appended to the generated cluster slice instead of the corresponding cluster name key.
- pkg/util/util.go (CalculateClusterIncludesExcludes): Implemented regex matching (`regexp.MatchString`) for cluster filtering, aligning the backend functionality with the CLI instruction documentation ("comma separated list of cluster names and/or regular expressions").
- pkg/util/util.go (FilterItems): Refactored the core include/exclude iteration loop to ensure that correctly matched clusters are actually recorded and appended into the final returned slice.

* Fix workflows (#82)

* rename

* lint ver

* Update deps

* go fix

* fix

* naming/fmt

* error check

* exhaust struct

* docs

* fix warn

* fix test

* extract func

* prealloc

* fmt

* cleanup path

* cleanup

* docs

---------

Co-authored-by: Nick Parry <nick-parry@users.noreply.github.com>

* task b

---------

Co-authored-by: Nick Parry <nick-parry@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants