-
Notifications
You must be signed in to change notification settings - Fork 923
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kubectl create
alternatives
#914
Comments
This is also something we are interested in from the KubeVirt side cc @ashleyschuett |
/priority backlog |
@pwittrock we need to condense this to fit in the FAQ kubernetes/kubernetes#94989 |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle rotten |
https://kubernetes.io/docs/concepts/services-networking/network-policies/ NetworkPolicies are an application-centric construct which allow you to specify how a pod is allowed to communicate with various network "entities" (we use the word "entity" here to avoid overloading the more common terms such as "endpoints" and "services", which have specific Kubernetes connotations) over the network. NetworkPolicies apply to a connection with a pod on one or both ends, and are not relevant to other connections. #### What type of PR is this? /kind feature #### What this PR does / why we need it: Create a network policy using the kubectl create command line: - Prevents all ingress AND egress traffic - Create AND rules - Create OR rules #### Which issue(s) this PR fixes: Fixes # kubernetes/kubectl#914 kubernetes/kubectl#1240 #### Special notes for your reviewer: #### Does this PR introduce a user-facing change? ```release-note NONE ``` #### Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:
How about a The user then edits the manifest locally in their text editor or IDE. On saving it, This approach could work for making new:
and out-of-project things like:
An alternative form of this command could write the manifest out but not edit it. Importantly, non-mandatory fields would be commented out, so this is different from doing a server-side dry run request and saving the result. Generated fields such as |
Extra credit: also make this work for subresources. |
@sftim, I think |
This was enabled by kubernetes/enhancements#3638 already and I'm closing; |
@ardaguclu: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@eddiezane
@soltysh
@seans3
There have been numerous requests to expand the support for imperative resource creation commands by adding flags to existing creation commands or adding creation commands for additional resources.
The motivation for imperative create commands tend to fall into the following categories:
Sig-cli and the kubectl maintainers have pushed back on expanding the functionality of the existing commands in favor of implementing new commands which better meet these needs.
Why the create commands as written today are a suboptimal solution
Why they are suboptimal as a learning tool
-o yaml --dry-run
Why they are suboptimal as a debugging tool
Why they are suboptimal as an authoring tool
-o yaml --dry-run
What we want in next-gen generation commands
Learning and creation commands
https://sigs.k8s.io/sig-cli/kubectl/gen
Want needs to happen
kubectl gen
cobra commandsThe text was updated successfully, but these errors were encountered: