diff --git a/charts/example-resources/templates/content-configurations/accounts.yaml b/charts/example-resources/templates/content-configurations/accounts.yaml index 8388c9a..c4ac67c 100644 --- a/charts/example-resources/templates/content-configurations/accounts.yaml +++ b/charts/example-resources/templates/content-configurations/accounts.yaml @@ -1,3 +1,4 @@ +{{- if .Values.contentConfigurations.accounts }} apiVersion: core.openmfp.io/v1alpha1 kind: ContentConfiguration metadata: @@ -8,3 +9,4 @@ spec: content: |- {{ .Files.Get "assets/accounts.json" | nindent 6 }} contentType: json +{{- end }} \ No newline at end of file diff --git a/charts/example-resources/templates/content-configurations/home.yaml b/charts/example-resources/templates/content-configurations/home.yaml index 4cd88eb..b80e3f1 100644 --- a/charts/example-resources/templates/content-configurations/home.yaml +++ b/charts/example-resources/templates/content-configurations/home.yaml @@ -1,3 +1,4 @@ +{{- if .Values.contentConfigurations.home }} apiVersion: core.openmfp.io/v1alpha1 kind: ContentConfiguration metadata: @@ -8,3 +9,4 @@ spec: content: |- {{ .Files.Get "assets/home.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 69c5e21..75f598e 100644 --- a/charts/example-resources/tests/__snapshot__/content-configs_test.yaml.snap +++ b/charts/example-resources/tests/__snapshot__/content-configs_test.yaml.snap @@ -1,62 +1,5 @@ matches the snapshot: 1: | - apiVersion: core.openmfp.io/v1alpha1 - kind: ContentConfiguration - metadata: - name: accounts - namespace: NAMESPACE - spec: - inlineConfiguration: - content: |2- - { - "name": "overview", - "luigiConfigFragment": [ - { - "data": { - "nodes": [ - { - "entityType": "main", - "pathSegment": "accounts", - "label": "Account List", - "keepSelectedForChildren": true, - "icon": "home", - "url": "https://fiddle.luigi-project.io/examples/microfrontends/multipurpose.html", - "context": { - "title": "Welcome to Account List", - "content": " " - }, - "children": [ - { - "pathSegment": ":accountId", - "hideFromNav": true, - "keepSelectedForChildren": false, - "defineEntity": { - "id": "account" - }, - "context": { - "accountId": ":accountId" - } - } - ] - }, - { - "entityType": "main.account", - "pathSegment": "overview", - "label": "Overview", - "icon": "curriculum", - "url": "https://fiddle.luigi-project.io/examples/microfrontends/multipurpose.html?acc=:accountId", - "context": { - "title": ":accountId", - "content": " " - } - } - ] - } - } - ] - } - contentType: json - 2: | apiVersion: core.openmfp.io/v1alpha1 kind: ContentConfiguration metadata: diff --git a/charts/example-resources/values.yaml b/charts/example-resources/values.yaml index e6c056a..a91fe39 100644 --- a/charts/example-resources/values.yaml +++ b/charts/example-resources/values.yaml @@ -1,4 +1,8 @@ accounts: - enabled: false + enabled: true rootNamespace: openmfp-root - demoRootNamespace: demo-root \ No newline at end of file + demoRootNamespace: demo-root + +contentConfigurations: + home: true + accounts: false \ No newline at end of file