Skip to content

Commit

Permalink
fix: different name for configuration packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Duologic committed Dec 2, 2024
1 parent 53c81a0 commit b4b3375
Show file tree
Hide file tree
Showing 109 changed files with 68 additions and 68 deletions.
8 changes: 4 additions & 4 deletions generator/packages.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ local manifest(value) = std.manifestYamlDoc(value, true, false);
std.foldl(
function(acc, item)
local group = item.definition.spec.group;
local configurationName = 'grafana-namespaced-' + std.splitLimit(group, '.', 1)[0];
local kind = item.definition.spec.claimNames.kind;
acc
+ {
[group + '/package.yaml']: manifest(package(group)),
[group + '/Composition-' + kind + '.yaml']: manifest(item.composition),
[group + '/CompositeResourceDefinition-' + kind + '.yaml']: manifest(item.composition),
[configurationName + '/package.yaml']: manifest(package(configurationName)),
[configurationName + '/Composition-' + kind + '.yaml']: manifest(item.composition),
[configurationName + '/CompositeResourceDefinition-' + kind + '.yaml']: manifest(item.composition),
},
namespaced,
{}
)

15 changes: 0 additions & 15 deletions packages/alerting.grafana.crossplane.io.namespaced/package.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions packages/cloud.grafana.crossplane.io.namespaced/package.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions packages/enterprise.grafana.crossplane.io.namespaced/package.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
meta.crossplane.io/license: Apache-2.0
meta.crossplane.io/maintainer: Grafana
meta.crossplane.io/source: github.com/grafana/grafana-crossplane-libsonnet
name: sm.grafana.crossplane.io.namespaced
name: grafana-namespaced-alerting
spec:
crossplane:
version: ">=v1.17"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
meta.crossplane.io/license: Apache-2.0
meta.crossplane.io/maintainer: Grafana
meta.crossplane.io/source: github.com/grafana/grafana-crossplane-libsonnet
name: ml.grafana.crossplane.io.namespaced
name: grafana-namespaced-cloud
spec:
crossplane:
version: ">=v1.17"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
meta.crossplane.io/license: Apache-2.0
meta.crossplane.io/maintainer: Grafana
meta.crossplane.io/source: github.com/grafana/grafana-crossplane-libsonnet
name: oss.grafana.crossplane.io.namespaced
name: grafana-namespaced-enterprise
spec:
crossplane:
version: ">=v1.17"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
meta.crossplane.io/license: Apache-2.0
meta.crossplane.io/maintainer: Grafana
meta.crossplane.io/source: github.com/grafana/grafana-crossplane-libsonnet
name: slo.grafana.crossplane.io.namespaced
name: grafana-namespaced-ml
spec:
crossplane:
version: ">=v1.17"
Expand Down
15 changes: 15 additions & 0 deletions packages/grafana-namespaced-oncall/package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: meta.pkg.crossplane.io/v1
kind: Configuration
metadata:
annotations:
meta.crossplane.io/description: "This configuration provides Compositions that map 1:1 to the managed resources with the only goal is to provide a namespaced resource of the same managed resource."
meta.crossplane.io/license: Apache-2.0
meta.crossplane.io/maintainer: Grafana
meta.crossplane.io/source: github.com/grafana/grafana-crossplane-libsonnet
name: grafana-namespaced-oncall
spec:
crossplane:
version: ">=v1.17"
dependsOn:
- provider: xpkg.upbound.io/grafana/provider-grafana
version: ">=v0.21.0"
15 changes: 15 additions & 0 deletions packages/grafana-namespaced-oss/package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: meta.pkg.crossplane.io/v1
kind: Configuration
metadata:
annotations:
meta.crossplane.io/description: "This configuration provides Compositions that map 1:1 to the managed resources with the only goal is to provide a namespaced resource of the same managed resource."
meta.crossplane.io/license: Apache-2.0
meta.crossplane.io/maintainer: Grafana
meta.crossplane.io/source: github.com/grafana/grafana-crossplane-libsonnet
name: grafana-namespaced-oss
spec:
crossplane:
version: ">=v1.17"
dependsOn:
- provider: xpkg.upbound.io/grafana/provider-grafana
version: ">=v0.21.0"
15 changes: 15 additions & 0 deletions packages/grafana-namespaced-slo/package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: meta.pkg.crossplane.io/v1
kind: Configuration
metadata:
annotations:
meta.crossplane.io/description: "This configuration provides Compositions that map 1:1 to the managed resources with the only goal is to provide a namespaced resource of the same managed resource."
meta.crossplane.io/license: Apache-2.0
meta.crossplane.io/maintainer: Grafana
meta.crossplane.io/source: github.com/grafana/grafana-crossplane-libsonnet
name: grafana-namespaced-slo
spec:
crossplane:
version: ">=v1.17"
dependsOn:
- provider: xpkg.upbound.io/grafana/provider-grafana
version: ">=v0.21.0"
15 changes: 15 additions & 0 deletions packages/grafana-namespaced-sm/package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: meta.pkg.crossplane.io/v1
kind: Configuration
metadata:
annotations:
meta.crossplane.io/description: "This configuration provides Compositions that map 1:1 to the managed resources with the only goal is to provide a namespaced resource of the same managed resource."
meta.crossplane.io/license: Apache-2.0
meta.crossplane.io/maintainer: Grafana
meta.crossplane.io/source: github.com/grafana/grafana-crossplane-libsonnet
name: grafana-namespaced-sm
spec:
crossplane:
version: ">=v1.17"
dependsOn:
- provider: xpkg.upbound.io/grafana/provider-grafana
version: ">=v0.21.0"
15 changes: 0 additions & 15 deletions packages/oncall.grafana.crossplane.io.namespaced/package.yaml

This file was deleted.

0 comments on commit b4b3375

Please sign in to comment.