Skip to content

Commit

Permalink
Add missing label for the custom HelmRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
eromanova authored and randybias committed Feb 3, 2025
1 parent 69e25cf commit 4eade72
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/admin-service-templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ and use it to deploy an application to a k0rdent child cluster.

The basic sequence looks like this:

1. Define the source of the Helm chart that defines the service. For example, this YAML describes a custom `Source` object of `kind` `HelmRepository`:
1. Define the source of the Helm chart that defines the service. The source object must have the label `k0rdent.mirantis.com/managed: "true"`. For example, this YAML describes a custom `Source` object of `kind` `HelmRepository`:

```yaml
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: custom-templates-repo
namespace: kcm-system
labels:
k0rdent.mirantis.com/managed: "true"
spec:
insecure: true
interval: 10m0s
Expand Down Expand Up @@ -113,4 +115,4 @@ The basic sequence looks like this:
```shell
kubectl patch clusterdeployment my-managed-cluster -n my-target-namespace --type='merge' -p '{"spec":{"services":[{"template":"project-ingress-nginx-4.11.3","name":"ingress-nginx","namespace":"my-target-namespace"}]}}'
```
For more information on creating and using `ServiceTemplate` objects, see the [User Guide](user-create-service.md).
For more information on creating and using `ServiceTemplate` objects, see the [User Guide](user-create-service.md).
6 changes: 6 additions & 0 deletions docs/template-byo.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,18 @@ Note that it's important to pay attention to where the source resides. Cluster-s

For example, this YAML describes a custom `Source` object of `kind` `HelmRepository`:

> NOTE:
> The custom `HelmRepository` must have the label
> `k0rdent.mirantis.com/managed: "true"`.
```yaml
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: k0rdent-templates
namespace: kcm-system
labels:
k0rdent.mirantis.com/managed: "true"
spec:
insecure: true
interval: 10m0s
Expand Down

0 comments on commit 4eade72

Please sign in to comment.