Skip to content
Merged
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
35 changes: 35 additions & 0 deletions cpln-common/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# cpln-common

A shared Helm library chart providing common templates for Control Plane marketplace charts. Not deployable on its own — intended to be used as a dependency.

## Usage

### 1. Add the dependency

In your chart's `Chart.yaml`:

```yaml
dependencies:
- name: cpln-common
version: 1.0.0
repository: "oci://ghcr.io/controlplane-com/templates"
```

### 2. Use the templates

Replace the labeling helpers in your chart's `_helpers.tpl` with includes from `cpln-common`:

```yaml
tags:
{{- include "cpln-common.tags" . | nindent 4 }}
```

You can remove the `CHART.chart`, `CHART.selectorLabels`, and `CHART.tags` definitions from your `_helpers.tpl` entirely.

## Available templates

| Template | Description |
|---|---|
| `cpln-common.tags` | Full label set for all marketplace resources |
| `cpln-common.selectorLabels` | `app.cpln.io/name` and `app.cpln.io/instance` labels |
| `cpln-common.chart` | Slugified `chart-name-version` string |
Loading