MCPcopy Index your code
hub / github.com/KusionStack/kusion

github.com/KusionStack/kusion @v0.15.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.15.0 ↗ · + Follow
3,261 symbols 12,804 edges 631 files 1,196 documented · 37%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README
<img  src="https://github.com/KusionStack/kusion/raw/v0.15.0/docs/logo.png">

Intent-Driven Platform Orchestrator

🌐 官网⚡️ 快速开始📚 文档💬 讨论

[中文] [English] [हिंदी]

Kusion GitHub release Go Report Card Go Reference license

Kusion 是一个意图驱动的平台编排器,它位于内部开发者平台 (IDP)的核心。通过 Kusion,你可以启用以应用为中心的开发,你的开发者只需要编写单一的应用配置 - AppConfiguration,无需提供特定于环境的值,即可定义工作负载和所有资源依赖,Kusion 确保为应用运行提供一切所需。

Kusion 帮助负责创建应用的应用开发者以及负责维护应用运行的基础设施的平台工程师。这些角色在你的组织中可能重叠或不同,但 Kusion 旨在为任何负责这些任务的从业者减轻工作负担。

Kusion 如何工作?

作为一个平台编排器,Kusion 使您能够解决通常与 Day 0 和 Day 1 关联的挑战。平台工程师和应用工程师都可以从 Kusion 中获益。

Kusion 有两个关键工作流程: 1. Day 0 - 设置模块和工作空间: 平台工程师为部署应用及其底层基础设施创建共享模块,并为目标着陆区定义工作空间。这些标准化的共享模块编写了包括安全、合规和财务在内的组织中各利益相关者的要求。 Kusion 模块抽象了底层基础设施工具的复杂性,使应用开发者能够使用自助模式部署他们的应用程序。

  1. Day 1 - 设置应用程序: 应用开发者利用平台工程师创建的工作空间和模块来部署应用及其支持的基础设施。平台团队维护工作空间和模块,这允许应用开发者专注于在标准化的基础设施上使用可重复的过程构建应用。

快速开始

本指南将涵盖: 1. 安装 Kusion CLI。 2. 使用 Kusion 将应用部署到 Kubernetes。

安装

Homebrew (macOS & Linux)

# tap formula repository Kusionstack/tap
brew tap KusionStack/tap

# install Kusion 
brew install KusionStack/tap/kusion

Powershell

# install Kusion latest version
powershell -Command "iwr -useb https://www.kusionstack.io/scripts/install.ps1 | iex"

有关安装的更多信息,请参考安装指南以获取更多选项。

部署

要部署应用程序,您可以运行 kusion apply 命令。

要快速启动并运行 Kusion,请参阅快速开始指南

apply

联系方式

如果您有任何问题,欢迎通过以下方式联系我们: - Slack | 加入 - 钉钉群42753001(中文) - 微信群(中文):添加微信小助手,拉你进用户群

贡献

如果您有兴趣贡献,在提交 Pull Request 前请参阅贡献指南

许可证

Kusion 根据 Apache 2.0 许可证授权。有关详细信息,请见 LICENSE 文件。

Extension points exported contracts — how you extend this code

SecretStore (Interface)
SecretStore provides the interface to interact with various cloud secret manager. [7 implementers]
pkg/secrets/interfaces.go
Backend (Interface)
Backend is used to provide the storage service for Workspace, Spec and State. [9 implementers]
pkg/backend/backend.go
Generator (Interface)
Generator is an interface for things that can generate versioned Spec from configuration code under current working dire [7 …
pkg/engine/api/generate/generator/generator.go
OrganizationRepository (Interface)
OrganizationRepository is an interface that defines the repository operations for organizations. It follows the principl [11 …
pkg/domain/repository/repository.go
SpecGenerator (Interface)
SpecGenerator is an interface for things that can generate Spec from input configurations. Note: it's for built-in gener [7 …
pkg/generators/interfaces.go
Payload (Interface)
Payload is an interface for incoming requests payloads Each handler should implement this interface to parse payloads [22 …
pkg/server/handler/types.go
Options (Interface)
(no doc) [3 implementers]
pkg/cmd/server/types.go
Storage (Interface)
Storage is used to provide the storage service for multiple workspaces.
pkg/workspace/storage.go

Core symbols most depended-on inside this repo

Errorf
called by 712
pkg/log/types.go
Run
called by 596
pkg/engine/api/generate/run/run.go
Get
called by 297
pkg/engine/resource/graph/storage.go
Build
called by 258
pkg/oci/client/build.go
Error
called by 219
pkg/log/types.go
T
called by 155
pkg/util/i18n/i18n.go
Info
called by 153
pkg/log/types.go
Render
called by 149
pkg/server/handler/types.go

Shape

Function 1,618
Method 1,088
Struct 456
Interface 42
TypeAlias 37
FuncType 20

Languages

Go94%
TypeScript6%

Modules by API surface

pkg/domain/repository/repository.go72 symbols
pkg/apis/api.kusion.io/v1/types.go56 symbols
pkg/engine/printers/printer/k8s_printer.go47 symbols
pkg/server/manager/project/project_manager_test.go30 symbols
pkg/engine/runtime/terraform/tfops/workspace.go25 symbols
pkg/config/validation.go24 symbols
pkg/cmd/release/list_test.go24 symbols
pkg/engine/runtime/kubernetes/kubernetes_runtime.go23 symbols
pkg/config/operator.go23 symbols
pkg/cmd/apply/apply_test.go23 symbols
pkg/util/gitutil/utils_test.go22 symbols
pkg/server/manager/stack/util.go22 symbols

For agents

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

⬇ download graph artifact