Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,10 @@ override.tf.json

# Ignore CLI configuration files
.terraformrc
terraform.rc
terraform.rc

# Locally generated knowledge graph (graphify)
graphify-out/

# Local Claude Code tooling config (CLAUDE.md is intentionally tracked)
.claude/
9 changes: 9 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## graphify

This project has a knowledge graph at graphify-out/ with god nodes, community structure, and cross-file relationships.

Rules:
- For codebase questions, first run `graphify query "<question>"` when graphify-out/graph.json exists. Use `graphify path "<A>" "<B>"` for relationships and `graphify explain "<concept>"` for focused concepts. These return a scoped subgraph, usually much smaller than GRAPH_REPORT.md or raw grep output.
- If graphify-out/wiki/index.md exists, use it for broad navigation instead of raw source browsing.
- Read graphify-out/GRAPH_REPORT.md only for broad architecture review or when query/path/explain do not surface enough context.
- After modifying code, run `graphify update .` to keep the graph current (AST-only, no API cost).
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ No modules.
| <a name="input_enable_zxporter"></a> [enable\_zxporter](#input\_enable\_zxporter) | Whether to install the zxporter component | `bool` | `true` | no |
| <a name="input_endpoint"></a> [endpoint](#input\_endpoint) | The endpoint of the control plane | `string` | `"https://dakr.devzero.io"` | no |
| <a name="input_namespace"></a> [namespace](#input\_namespace) | Namespace for zxporter and devzero-operator. | `string` | `"devzero-system"` | no |
| <a name="input_operator_chart_version"></a> [operator\_chart\_version](#input\_operator\_chart\_version) | The Helm chart version for devzero-operator | `string` | `"0.1.49"` | no |
| <a name="input_operator_chart_version"></a> [operator\_chart\_version](#input\_operator\_chart\_version) | The Helm chart version for devzero-operator | `string` | `"0.1.61"` | no |
| <a name="input_operator_extra_values"></a> [operator\_extra\_values](#input\_operator\_extra\_values) | Additional Helm values for the devzero-operator chart (as name->value). | <pre>list(object({<br> name = string<br> value = string<br> }))</pre> | `[]` | no |
| <a name="input_provision_prometheus"></a> [provision\_prometheus](#input\_provision\_prometheus) | Whether to provision prometheus | `bool` | `true` | no |
| <a name="input_runtime"></a> [runtime](#input\_runtime) | The runtime of the cluster. Supported values: containerd, rke2, k3s. | `string` | `"containerd"` | no |
| <a name="input_zxporter_chart_version"></a> [zxporter\_chart\_version](#input\_zxporter\_chart\_version) | The Helm chart version for zxporter | `string` | `"0.0.59"` | no |
| <a name="input_zxporter_chart_version"></a> [zxporter\_chart\_version](#input\_zxporter\_chart\_version) | The Helm chart version for zxporter | `string` | `"0.1.8"` | no |
| <a name="input_zxporter_extra_values"></a> [zxporter\_extra\_values](#input\_zxporter\_extra\_values) | Additional Helm values for the zxporter chart (as name->value). | <pre>list(object({<br> name = string<br> value = string<br> }))</pre> | `[]` | no |

## Outputs
Expand Down
16 changes: 8 additions & 8 deletions examples/custom-values-override.tf
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# Example: Using extra_values to fully customize Helm chart values
module "devzero_cluster" {
source = ".."

cluster_name = "custom-cluster"

# Deploy both components with extensive customization
enable_zxporter = true
enable_operator = true

# Override any Helm value for zxporter
zxporter_extra_values = [
{
name = "zxporter.image.tag"
value = "0.0.23" # Override default chart version
name = "image.tag"
value = "v0.1.8" # Pin a specific image build; chart default is v<appVersion>
},
{
name = "zxporter.nodeSelector.workload-type"
Expand All @@ -39,12 +39,12 @@ module "devzero_cluster" {
value = "NoSchedule"
}
]

# Override any Helm value for operator
operator_extra_values = [
{
name = "operator.image.tag"
value = "0.1.10" # Override default chart version
name = "image.tag"
value = "v0.1.61" # Pin a specific image build; chart default is v<appVersion>
},
{
name = "scheduler.resources.requests.cpu"
Expand Down
10 changes: 5 additions & 5 deletions examples/full-deployment.tf
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
# Example: Full deployment with both components (default behavior)
module "devzero_cluster" {
source = ".."

cluster_name = "full-cluster"
cloud_provider = "azure"

# Both components enabled by default
# enable_zxporter = true # default
# enable_operator = true # default

# Configure all features
enable_scheduler = true
enable_live_migration_agent = false
provision_prometheus = true
runtime = "containerd"

# Custom configurations for both components
zxporter_extra_values = [
{
name = "zxporter.logLevel"
value = "info"
}
]

operator_extra_values = [
{
name = "operator.resources.limits.memory"
Expand Down
4 changes: 2 additions & 2 deletions examples/only-cluster.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Example: Only create the DevZero cluster without any components
module "devzero_cluster" {
source = ".."

cluster_name = "minimal-cluster"

# Disable both components
enable_zxporter = false
enable_operator = false
Expand Down
12 changes: 6 additions & 6 deletions examples/only-operator.tf
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# Example: Deploy only the operator component
module "devzero_cluster" {
source = ".."
cluster_name = "workload-cluster"
cloud_provider = "gcp"

cluster_name = "workload-cluster"
cloud_provider = "gcp"

# Enable only operator
enable_zxporter = false
enable_operator = true

# Operator configuration
enable_scheduler = true
enable_live_migration_agent = true
runtime = "k3s"

# Custom operator configuration
operator_extra_values = [
{
Expand Down
12 changes: 6 additions & 6 deletions examples/only-zxporter.tf
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Example: Deploy only zxporter (monitoring/exporter component)
module "devzero_cluster" {
source = ".."
cluster_name = "monitoring-cluster"
cloud_provider = "aws"

cluster_name = "monitoring-cluster"
cloud_provider = "aws"

# Enable only zxporter
enable_zxporter = true
enable_operator = false

# Configure prometheus monitoring
provision_prometheus = true

# Custom zxporter configuration
zxporter_extra_values = [
{
Expand Down
4 changes: 2 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ variable "operator_extra_values" {
variable "zxporter_chart_version" {
type = string
description = "The Helm chart version for zxporter"
default = "0.0.59"
default = "0.1.8"
}

variable "operator_chart_version" {
type = string
description = "The Helm chart version for devzero-operator"
default = "0.1.49"
default = "0.1.61"
}

variable "namespace" {
Expand Down
Loading