diff --git a/charts/example-resources/assets/gardener.json b/charts/example-resources/assets/gardener.json index 0d7a465..523f766 100644 --- a/charts/example-resources/assets/gardener.json +++ b/charts/example-resources/assets/gardener.json @@ -9,6 +9,7 @@ "entityType": "main.account", "pathSegment": "gardener", "label": "Gardener", + "category": "Kubernetes", "virtualTree": true, "initialRoute": "namespace", "url": "https://d.ing.gardener-op.mfp-dev.shoot.canary.k8s-hana.ondemand.com", diff --git a/charts/example-resources/assets/infra.json b/charts/example-resources/assets/infra.json new file mode 100644 index 0000000..11291b0 --- /dev/null +++ b/charts/example-resources/assets/infra.json @@ -0,0 +1,28 @@ +{ + "name": "overview", + "creationTimestamp": "2022-05-17T11:37:17Z", + "luigiConfigFragment": [ + { + "data": { + "nodes": [ + { + "pathSegment": "ironcore", + "label": "Iron Core", + "entityType": "main.account", + "category": "Infrastructure", + "loadingIndicator": { + "enabled": false + }, + "keepSelectedForChildren": true, + "url": "https://fiddle.luigi-project.io/examples/microfrontends/multipurpose.html", + "children": [ ], + "context": { + "title": "Iron Core", + "content": " " + } + } + ] + } + } + ] +} \ No newline at end of file diff --git a/charts/example-resources/templates/content-configurations/infra.yaml b/charts/example-resources/templates/content-configurations/infra.yaml new file mode 100644 index 0000000..d0130fa --- /dev/null +++ b/charts/example-resources/templates/content-configurations/infra.yaml @@ -0,0 +1,12 @@ +{{- if .Values.contentConfigurations.infra }} +apiVersion: core.openmfp.io/v1alpha1 +kind: ContentConfiguration +metadata: + name: infra + namespace: {{ .Release.Namespace }} +spec: + inlineConfiguration: + content: |- + {{ .Files.Get "assets/infra.json" | nindent 6 }} + contentType: json +{{- end }} \ No newline at end of file diff --git a/charts/example-resources/tests/__snapshot__/content-configs_test.yaml.snap b/charts/example-resources/tests/__snapshot__/content-configs_test.yaml.snap index 23913d8..fa9d55d 100644 --- a/charts/example-resources/tests/__snapshot__/content-configs_test.yaml.snap +++ b/charts/example-resources/tests/__snapshot__/content-configs_test.yaml.snap @@ -62,6 +62,7 @@ matches the snapshot (gardener): "entityType": "main.account", "pathSegment": "gardener", "label": "Gardener", + "category": "Kubernetes", "virtualTree": true, "initialRoute": "namespace", "url": "https://d.ing.gardener-op.mfp-dev.shoot.canary.k8s-hana.ondemand.com", diff --git a/charts/example-resources/values.yaml b/charts/example-resources/values.yaml index ddf92ac..3002ceb 100644 --- a/charts/example-resources/values.yaml +++ b/charts/example-resources/values.yaml @@ -6,4 +6,5 @@ accounts: contentConfigurations: home: true gardener: false - providers: false \ No newline at end of file + providers: false + infra: false \ No newline at end of file