-
Notifications
You must be signed in to change notification settings - Fork 263
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
kn source list-types (builtin types) #536
kn source list-types (builtin types) #536
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@navidshaikh: 6 warnings.
In response to this:
Part of #511
/lint
Proposed Changes
- Only lists the builtin source types
- Uses client-go dynamic client for listing CRDs
- Adds DyanmicClient interface to KnParams
- Adds printing options
Example:
Command:
kn source list-types TYPE NAME DESCRIPTION ApiServerSource apiserversources.sources.eventing.knative.dev Kubernetes API Server events source ContainerSource containersources.sources.eventing.knative.dev Container events source CronJobSource cronjobsources.sources.eventing.knative.dev CronJob events sourcePrint flags:
./kn source list-types --help List available source types Usage: kn source list-types [flags] Flags: --allow-missing-template-keys If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. (default true) -h, --help help for list-types -n, --namespace string Specify the namespace to operate in. --no-headers When using the default output format, don't print headers (default: print headers). -o, --output string Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-file. --template string Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. Global Flags: --config string kn config file (default is $HOME/.kn/config.yaml) --kubeconfig string kubectl config file (default is $HOME/.kube/config) --log-http log http traffic
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.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: navidshaikh The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
be1e0a8
to
f60b34f
Compare
ba215b8
to
52c2311
Compare
c5383f2
to
f526899
Compare
/lint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@navidshaikh: 2 warnings.
In response to this:
/lint
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.
/test pull-knative-client-integration-tests boskos |
- Only lists the builtin source types - Uses client-go dynamic client for listing CRDs - Adds DyanmicClient interface to KnParams - Adds printing options
GVR as: - Group: apiextensions.k8s.io - Version: v1beta1 - Resource: customresourcedefinitions Label as: {"duck.knative.dev/source": "true"}
as - "Binding Pattern for ContainerSource"
- also test the YAML output
- Update the unit tests accordingly
33eb009
to
ef4faf3
Compare
The following is the coverage report on the affected files.
|
/lgtm |
* Make all github calls as receivable by github client * Remove client and user vars as they are handled in ghIssue * Rename to NewGithubclient as we are creating a new client
Part of #511
/lint
Proposed Changes
Example:
Command:
Print flags: