MCPcopy
hub / github.com/carvel-dev/ytt

github.com/carvel-dev/ytt @v0.55.1 sqlite

repository ↗ · DeepWiki ↗ · release v0.55.1 ↗
2,632 symbols 8,830 edges 211 files 689 documented · 26%
README

logo

OpenSSF Best Practices

ytt

Overview

ytt (pronounced spelled out) is a templating tool that understands YAML structure. It helps you easily configure complex software via reusable templates and user provided values. Ytt includes the following features: - Structural templating: understands yaml structure so users can focus on their configuration instead of issues associated with text templating, such as YAML value quoting or manual template indentation - Built-in programming language: includes the "fully featured" Python-like programming language Starlark which helps ease the burden of configuring complex software through a richer set of functionality. - Reusable configuration: You can reuse the same configuration in different environments by applying environment-specific values. - Custom validations: coupled with the fast and deterministic execution, allows you to take advantage of faster feedback loops when creating and testing templates - Overlays: this advanced configuration helps users manage the customization required for complex software. For more, see this example in the online playground. - Sandboxing: provides a secure, deterministic environment for execution of templates

Try it

To get started with ytt and to see examples, you use the online playground or download the binaries and run the playground locally.

Join the Community and Make Carvel Better

Carvel is better because of our contributors and maintainers. It is because of you that we can bring great software to the community. Please join us during our online community meetings. Details can be found on our Carvel website.

You can chat with us on Kubernetes Slack in the #carvel channel and follow us on Twitter at @carvel_dev.

Check out which organizations are using and contributing to Carvel: Adopter's list

Integrating with ytt

If you want to integrate ytt within your own tooling, review our APIs.

Extension points exported contracts — how you extend this code

Marshaler (Interface)
The Marshaler interface may be implemented by types to customize their behavior when being marshaled into a YAML documen [9 …
pkg/yamlmeta/internal/yaml.v2/yaml.go
Type (Interface)
Type encapsulates a schema that describes a yamlmeta.Node. [8 implementers]
pkg/schema/type.go
Source (Interface)
(no doc) [6 implementers]
pkg/files/sources.go
EvaluationNode (Interface)
(no doc) [8 implementers]
pkg/template/evaluation_ctx.go
FileSource (Interface)
FileSource provides both a means of loading from sources (i.e. Input) and rendering into sinks (i.e. Output) [2 implementers]
pkg/cmd/template/cmd.go
ExtractLibRefs (Interface)
ExtractLibRefs constructs library references (ref.LibraryRef) from various sources. [1 implementers]
pkg/workspace/datavalues/schema.go
MarshalableResult (Interface)
MarshalableResult is a template evaluation result that can be (likely) marshaled into a slice of bytes. [1 implementers]
test/filetests/filetests.go
DataLoader (Interface)
(no doc) [1 implementers]
pkg/yttlibrary/data.go

Core symbols most depended-on inside this repo

NewBytesSource
called by 519
pkg/files/sources.go
MustNewFileFromSource
called by 518
pkg/files/file.go
NewSortedFiles
called by 193
pkg/files/file.go
Run
called by 165
pkg/cmd/template/cmd.go
NewPosition
called by 128
pkg/filepos/position.go
Len
called by 85
pkg/yamlmeta/internal/yaml.v2/sorter.go
NewStarlarkValue
called by 85
pkg/template/core/starlark_value.go
Pos
called by 85
pkg/website/js/deps.js

Shape

Function 1,194
Method 1,115
Struct 263
TypeAlias 30
Interface 24
FuncType 6

Languages

Go78%
TypeScript22%

Modules by API surface

pkg/website/js/deps.js552 symbols
pkg/schema/type.go137 symbols
pkg/yamlmeta/node.go98 symbols
pkg/yamlmeta/internal/yaml.v2/emitterc.go53 symbols
pkg/schema/annotations.go50 symbols
pkg/yamlmeta/internal/yaml.v2/scannerc.go49 symbols
pkg/yamlmeta/internal/yaml.v2/decode_test.go40 symbols
pkg/yamlmeta/internal/yaml.v2/yaml.go37 symbols
pkg/yamlmeta/internal/yaml.v2/decode.go36 symbols
pkg/yamlmeta/internal/yaml.v2/yamlh.go34 symbols
pkg/yamlmeta/internal/yaml.v2/apic.go30 symbols
pkg/yttlibrary/assert.go29 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

carvel.dev/yttv0.44.1 · 1×
github.com/BurntSushi/tomlv1.2.1 · 1×
github.com/aws/aws-lambda-gov1.41.0 · 1×
github.com/cppforlife/cobrautilv0.0.0-2020051421482 · 1×
github.com/cppforlife/go-cli-uiv0.0.0-2020050523432 · 1×
github.com/davecgh/go-spewv1.1.1 · 1×
github.com/google/gofuzzv1.2.0 · 1×
github.com/hashicorp/go-versionv1.6.0 · 1×
github.com/inconshreveable/mousetrapv1.1.0 · 1×
github.com/k14s/difflibv0.0.0-2020111715462 · 1×
github.com/k14s/starlark-gov0.0.0-2020072017561 · 1×
github.com/kr/prettyv0.2.0 · 1×

For agents

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

⬇ download graph artifact