Skip to content

Commit

Permalink
Add provider catalog-core
Browse files Browse the repository at this point in the history
  • Loading branch information
Josca committed Jan 30, 2025
1 parent 42a2990 commit 322b224
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/v1alpha1/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,6 @@ const (
ProviderK0smotronName = "k0smotron"
// Provider Sveltos
ProviderSveltosName = "projectsveltos"
// Provider Catalog Core
ProviderCatalogCoreName = "catalog-core"
)
3 changes: 3 additions & 0 deletions internal/providers/providers.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ var (
{
Name: kcm.ProviderSveltosName,
},
{
Name: kcm.ProviderCatalogCoreName,
},
}

registry map[string]ProviderModule
Expand Down
6 changes: 6 additions & 0 deletions templates/provider/catalog-core/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dependencies:
- name: catalog-core
repository: oci://ghcr.io/k0rdent/catalog/charts
version: 1.0.0
digest: sha256:8af27026a236fd1bb3204fb5a8aae26a583505698e776bd7edd5230bdbcc221d
generated: "2025-01-29T18:49:07.128012+01:00"
10 changes: 10 additions & 0 deletions templates/provider/catalog-core/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v2
name: catalog-core
description: A Helm chart to refer k0rdent catalog-core
type: application
version: 1.0.0
appVersion: "1.0.0"
dependencies:
- name: catalog-core
version: 1.0.0
repository: oci://ghcr.io/k0rdent/catalog/charts
2 changes: 2 additions & 0 deletions templates/provider/kcm-templates/files/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ spec:
template: cluster-api-provider-openstack-0-1-0
- name: projectsveltos
template: projectsveltos-0-45-0
- name: catalog-core
template: catalog-core-1-0-0
15 changes: 15 additions & 0 deletions templates/provider/kcm-templates/files/templates/catalog-core.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: k0rdent.mirantis.com/v1alpha1
kind: ProviderTemplate
metadata:
name: catalog-core-1-0-0
annotations:
helm.sh/resource-policy: keep
spec:
helm:
chartSpec:
chart: catalog-core
version: 1.0.0
interval: 10m0s
sourceRef:
kind: HelmRepository
name: kcm-templates

0 comments on commit 322b224

Please sign in to comment.