Skip to content

Do not require a namespace when input-file is used#241

Merged
k8s-ci-robot merged 2 commits intokubernetes-sigs:mainfrom
rikatz:fix-input-file-flag
Sep 2, 2025
Merged

Do not require a namespace when input-file is used#241
k8s-ci-robot merged 2 commits intokubernetes-sigs:mainfrom
rikatz:fix-input-file-flag

Conversation

@rikatz
Copy link
Copy Markdown
Member

@rikatz rikatz commented Sep 1, 2025

What type of PR is this?
/kind cleanup

What this PR does / why we need it:
This PR changes the behavior of i2g when using an input-file. In this case, as we are not querying a live Kubernetes cluster it may be expected that the namespace selector is not used unless it is explicitly required.

This way, when using --input-file without a namespace, all the namespaces are selected

Which issue(s) this PR fixes:

Does this PR introduce a user-facing change?:

Do not require namespace when using input-file flag, default to all-namespaces

@k8s-ci-robot k8s-ci-robot added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label Sep 1, 2025
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Sep 1, 2025
@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Sep 1, 2025
@rikatz
Copy link
Copy Markdown
Member Author

rikatz commented Sep 2, 2025

/assign @LiorLieberman
/cc @LiorLieberman

Comment thread cmd/print.go Outdated
@LiorLieberman
Copy link
Copy Markdown
Member

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 2, 2025
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: LiorLieberman, rikatz

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 2, 2025
@k8s-ci-robot k8s-ci-robot merged commit dd0bf1c into kubernetes-sigs:main Sep 2, 2025
5 checks passed
rajashish pushed a commit to rajashish/ingress2gateway1 that referenced this pull request Feb 21, 2026
* Do not require a namespace when input-file is used

* Address comment on initializeNamespaceFilter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants