diff --git a/charts/theia-cloud/README.md b/charts/theia-cloud/README.md index f36812d..6d69cbd 100644 --- a/charts/theia-cloud/README.md +++ b/charts/theia-cloud/README.md @@ -56,7 +56,7 @@ A Helm chart for Theia Cloud | keycloak.enable | bool | `false` | Whether keycloak authentication shall be used | | keycloak.realm | string | `"TheiaCloud"` | The Keycloak Realm. Only has to be specified when enable: true | | landingPage | object | (see details below) | Values related to the landing page | -| landingPage.additionalApps | string | `nil` | The page may show these additional apps in a drop down. This is a map. The key maps to the app definition name. The value contains the label shown in the UI and may optionally include `image` or `Image` to override the logo name/path forwarded to the landing page config. Example: different-app-definition: label: "Different App Definition" image: "different-app-definition" | +| landingPage.additionalApps | string | `nil` | The page may show these additional apps in a drop down. This is a map. The key maps to the app definition name. The value contains the label shown in the UI and may optionally include `image`/`Image`, `visible`, `buildSystems`, and `aiVariant` fields forwarded to the landing page config. Example: different-app-definition: label: "Different App Definition" image: "different-app-definition" aiVariant: "different-app-definition-ai" | | landingPage.appDefinition | string | `"theia-cloud-demo"` | the app id to launch | | landingPage.disableInfo | bool | `false` | Should showing info title and text below the launch button be disabled true hides the info title and text false shows the info title and text | | landingPage.enabled | bool | `true` | Whether the landing page shall be enabled | diff --git a/charts/theia-cloud/templates/landing-page-config-map.yaml b/charts/theia-cloud/templates/landing-page-config-map.yaml index df382f4..2433da9 100644 --- a/charts/theia-cloud/templates/landing-page-config-map.yaml +++ b/charts/theia-cloud/templates/landing-page-config-map.yaml @@ -27,6 +27,9 @@ data: { serviceAuthToken: {{ $key | quote}}, appName: {{ $val.label | quote }}, + {{- if $val.aiVariant }} + aiVariant: {{ tpl ($val.aiVariant | toString) $root | quote }}, + {{- end }} {{- if and (hasKey $val "visible") (ne (toString (get $val "visible")) "true") }} visible: {{ get $val "visible" }}, {{- end }} diff --git a/charts/theia-cloud/values.yaml b/charts/theia-cloud/values.yaml index 1bf5284..01f5b9e 100644 --- a/charts/theia-cloud/values.yaml +++ b/charts/theia-cloud/values.yaml @@ -120,13 +120,14 @@ landingPage: # -- The page may show these additional apps in a drop down. This is a map. # The key maps to the app definition name # The value contains the label shown in the UI and may optionally contain - # an image override that is forwarded to the landing page config. + # image, visible, buildSystems, and aiVariant fields forwarded to the landing page config. # # Example: # different-app-definition: # label: "Different App Definition" # image: "different-app-definition" # visible: false + # aiVariant: "different-app-definition-ai" # further-app-definition: # label: "Further App Definition" additionalApps: