MCPcopy
hub / github.com/kubernetes/kubectl

github.com/kubernetes/kubectl @kubernetes-1.36.2 sqlite

repository ↗ · DeepWiki ↗ · release kubernetes-1.36.2 ↗
3,498 symbols 16,283 edges 436 files 1,514 documented · 43%
README

⚠️ This is an automatically published staged repository for Kubernetes.
Pull requests, should be made to the main Kubernetes repository: https://github.com/kubernetes/kubernetes.
This repository is read-only for importing, and not used for direct contributions.
See CONTRIBUTING.md for more details.

Kubectl

kubectl logo

Build Status GoDoc

The k8s.io/kubectl repo is used to track issues for the kubectl cli distributed with k8s.io/kubernetes. It also contains packages intended for use by client programs. E.g. these packages are vendored into k8s.io/kubernetes for use in the kubectl cli client. That client will eventually move here too.

Contribution Requirements

  • Full unit-test coverage.

  • Go tools compliant (go get, go test, etc.). It needs to be vendorable somewhere else.

  • No dependence on k8s.io/kubernetes. Dependence on other repositories is fine.

  • Code must be usefully commented. Not only for developers on the project, but also for external users of these packages.

  • When reviewing PRs, you are encouraged to use Golang's code review comments page.

  • Packages in this repository should aspire to implement sensible, small interfaces and import a limited set of dependencies.

Community, discussion, contribution, and support

See this document for how to reach the maintainers of this project.

Code of conduct

Participation in the Kubernetes community is governed by the Kubernetes Code of Conduct.

Extension points exported contracts — how you extend this code

ResourceDescriber (Interface)
ResourceDescriber generates output for the named resource or an error if the output could not be generated. Implementers [40 …
pkg/describe/interface.go
Schema (Interface)
Schema is an interface that knows how to validate an API object serialized to a byte array. [5 implementers]
pkg/validation/schema.go
OpenAPIResourcesGetter (Interface)
OpenAPIResourcesGetter represents a function to return OpenAPI V2 resource specifications. Used for lazy-loading these r [5 …
pkg/util/openapi/openapi.go
HistoryViewer (Interface)
HistoryViewer provides an interface for resources have historical information. [4 implementers]
pkg/polymorphichelpers/history.go
ProfileApplier (Interface)
(no doc) [8 implementers]
pkg/cmd/debug/profiles.go
KindVisitor (Interface)
KindVisitor is used with GroupKindElement to call a particular function depending on the Kind of a schema.GroupKind [3 …
pkg/apps/kind_visitor.go
Scaler (Interface)
Scaler provides an interface for resources that can be scaled. [1 implementers]
pkg/scale/scale.go
PreferencesHandler (Interface)
PreferencesHandler is responsible for setting default flags arguments based on user's kuberc configuration. [1 implementers]
pkg/kuberc/kuberc.go

Core symbols most depended-on inside this repo

String
called by 764
pkg/cmd/cp/filespec.go
Write
called by 759
pkg/describe/describe.go
T
called by 367
pkg/util/i18n/i18n.go
Cleanup
called by 240
pkg/cmd/testing/fake.go
WithNamespace
called by 222
pkg/cmd/testing/fake.go
To
called by 215
pkg/cmd/diff/diff.go
Join
called by 189
pkg/cmd/cp/filespec.go
Get
called by 141
pkg/cmd/testing/interfaces.go

Shape

Function 1,934
Method 1,072
Struct 394
Interface 33
FuncType 32
TypeAlias 32
Class 1

Languages

Go100%
Python1%

Modules by API surface

pkg/describe/describe.go276 symbols
pkg/describe/describe_test.go74 symbols
pkg/cmd/util/helpers.go68 symbols
pkg/cmd/get/get_test.go68 symbols
pkg/cmd/testing/fake.go66 symbols
pkg/cmd/apply/apply_test.go58 symbols
pkg/cmd/config/config_test.go51 symbols
pkg/cmd/diff/diff.go43 symbols
pkg/cmd/debug/profiles.go34 symbols
pkg/cmd/apply/applyset.go34 symbols
pkg/util/completion/completion_test.go33 symbols
pkg/polymorphichelpers/rollback.go33 symbols

Dependencies from manifests, versioned

github.com/Azure/go-ansitermv0.0.0-2023012417243 · 1×
github.com/MakeNowJust/heredocv1.0.0 · 1×
github.com/Masterminds/semver/v3v3.4.0 · 1×
github.com/blang/semver/v4v4.0.0 · 1×
github.com/chai2010/gettext-gov1.0.2 · 1×
github.com/davecgh/go-spewv1.1.2-0.20180830191 · 1×
github.com/distribution/referencev0.6.0 · 1×
github.com/emicklei/go-restful/v3v3.13.0 · 1×
github.com/exponent-io/jsonpathv0.0.0-2021040713595 · 1×
github.com/fatih/camelcasev1.0.0 · 1×
github.com/fxamacker/cbor/v2v2.9.0 · 1×
github.com/go-errors/errorsv1.4.2 · 1×

For agents

$ claude mcp add kubectl \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact