MCPcopy
hub / github.com/garden-io/garden

github.com/garden-io/garden @0.13.64 sqlite

repository ↗ · DeepWiki ↗ · release 0.13.64 ↗
5,513 symbols 18,028 edges 981 files 387 documented · 7%
README

[!WARNING]
Garden 0.12.x EOL: Garden Acorn (0.12.x) will receive security updates until the 30th of June, 2024. After that it will be deprecated and we'll stop support. See announcement.

Garden

If you love Garden, please ★ star this repository to show your support :green_heart:. Looking for support? Join our Discord.

<img alt="Garden" src="https://github-production-user-asset-6210df.s3.amazonaws.com/658727/272340472-ad8d7a46-ef85-47ea-9129-d815206ed2f6.png">

Quickstart   •   Website   •   Docs   •   Examples   •   Blog   •   Discord

Welcome to Garden!

Garden is a DevOps automation tool for developing and testing Kubernetes apps faster.

  • Spin up production-like environments for development, testing, and CI on demand
  • Use the same configuration and workflows for every stage of software delivery
  • Speed up builds and test runs via smart caching.

Getting Started

The fastest way to get started with Garden is by following our quickstart guide.

Demo

Garden dev deploy

Docs

For a thorough introduction to Garden and comprehensive documentation, visit our docs.

Usage Overview

Garden is configured via garden.yml files. For large projects you can split the files up and co-locate them with the relevant parts of your stack, even across multiple repositories.

A (simplified) Garden configuration for a web app looks like this:

kind: Deploy
name: db
type: helm
spec:
  chart:
    name: postgres
    repo: https://charts.bitnami.com/bitnami
---
kind: Build
name: api
type: container
source:
  path: ./api
---
kind: Deploy
name: api
type: kubernetes
dependencies: [build.api, deploy.postgres]
spec:
  files: [./manifests/api/**/*]
---
kind: Test
name: integ
type: container
dependencies: [deploy.api]
spec:
  args: [npm, run, test:integ]

You can build and deploy this project with:

garden deploy

...and test it with:

garden test

To create a preview environment on every pull request, you would add the following to your CI pipeline:

garden deploy --env preview

Garden also has a special mode called "sync mode" which live reloads changes to your running services—ensuring blazing fast feedback while developing. To enable it, run:

garden deploy --sync

You can also start an interactive dev console (see screencap above) from which you can build, deploy, and test your project with:

garden dev

How Garden Works

The Stack Graph is a key feature of Garden that enables efficient development, testing, and DevOps automation. The Stack Graph allows you to declare the dependency structure of your project and track changes to avoid unnecessary builds, deploys and test runs. It's like CI/CD config that you can additionally use for development. Without the Stack Graph, many of these functionalities that distinguish Garden from its competitors would not be possible or would be much less efficient.

  • Efficient builds and deploys: The Stack Graph allows Garden to determine which parts of your project have changed and need to be rebuilt or redeployed, avoiding unnecessary work and speeding up the development process.

  • Automated testing: Garden can automatically run tests for the parts of your project that have changed, thanks to the Stack Graph. This saves time because all parts of your dependency graph are known and cached.

  • DevOps automation: The Stack Graph allows Garden to automate many aspects of the DevOps process, including building, testing, and deploying your project.

For more information on the Stack Graph and how Garden works, see:

Plugins

Garden is pluggable: how actions are executed depends on the plugins used. Our Kubernetes plugin is currently the most popular, followed by our Terraform and Pulumi plugins. For a more thorough introduction to Garden and its plugins, visit our docs:

Community

Join our Discord community to ask questions, give feedback or just say hi 🙂

Contributing

Garden accepts contributions! Please see our contributing guide for more information.

License

Garden is licensed according to Mozilla Public License 2.0 (MPL-2.0).

Extension points exported contracts — how you extend this code

Branch (Interface)
(no doc) [5 implementers]
core/src/template/analysis.ts
GCloudServiceError (Interface)
(no doc)
core/test/integ/helpers.ts
TargetHandlerParams (Interface)
(no doc)
cli/src/build-pkg.ts
LicenseDump (Interface)
(no doc)
scripts/check-package-licenses.ts
ConftestProviderConfig (Interface)
(no doc)
plugins/conftest/src/index.ts
PulumiCommandSpec (Interface)
(no doc)
plugins/pulumi/src/commands.ts
CheckVersionParams (Interface)
(no doc)
plugins/jib/src/build-tool-base.ts
TerraformModuleSpec (Interface)
(no doc)
plugins/terraform/src/module.ts

Core symbols most depended-on inside this repo

description
called by 1065
core/src/monitors/logs.ts
keys
called by 450
core/src/graph/common.ts
expectError
called by 374
core/src/util/testing.ts
resolve
called by 346
core/src/config/template-contexts/base.ts
getConfigGraph
called by 292
core/src/garden.ts
makeTestGarden
called by 286
sdk/src/testing.ts
action
called by 274
core/test/unit/src/commands/base.ts
debug
called by 260
core/src/cli/autocomplete.ts

Shape

Function 2,393
Method 1,513
Class 894
Interface 683
Route 27
Enum 2
Struct 1

Languages

TypeScript97%
Python1%
Go1%
Java1%

Modules by API surface

core/src/template/ast.ts120 symbols
examples/vote/result/views/socket.io.js102 symbols
examples/vote-helm/result-image/views/socket.io.js102 symbols
core/src/garden.ts85 symbols
core/src/actions/base.ts73 symbols
core/src/config/common.ts69 symbols
core/src/exceptions.ts65 symbols
core/src/graph/config-graph.ts59 symbols
core/src/plugins/kubernetes/local-mode.ts54 symbols
core/src/cloud/api.ts52 symbols
core/src/mutagen.ts51 symbols
core/src/logger/logger.ts51 symbols

Dependencies from manifests, versioned

com.google.guava:guava32.0.0-jre · 1×
org.json:json20231013 · 1×
org.postgresql:postgresql42.7.2 · 1×
org.springframework.boot:spring-boot-starter-web
@babel/core7.21.8 · 1×
@babel/eslint-parser7.21.8 · 1×
@codenamize/codenamize1.1.1 · 1×
@commitlint/cli19.8.1 · 1×
@commitlint/config-conventional19.8.1 · 1×
@date-fns/utc2.1.1 · 1×
@garden-io/cli* · 1×

Datastores touched

postgresDatabase · 1 repos

For agents

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

⬇ download graph artifact