version: 1
kind: component

requires:
  - kubernetes

parameters:
  - name: kubeflow
    parameters:
      - name: namespace
        env: NAMESPACE
        value: kubeflow
      - name: version
        value: v1.5.1
        env: VERSION
  - name: kustomize.tarball.url
    value: "https://codeload.github.com/kubeflow/manifests/tar.gz/${kubeflow.version}"
    env: HUB_KUSTOMIZE_TARBALL_URL
  - name: kustomize.tarball.dirs
    value: >-
      apps/jupyter/jupyter-web-app/upstream:../jupyter-web-app/kustomize
      apps/jupyter/notebook-controller/upstream:../notebook-controller/kustomize
    env: HUB_KUSTOMIZE_TARBALL_SUBPATHS

  - name: storage.class
    brief: |
      Configuration for storage class for the notebooks
      see: https://github.com/kubeflow/manifests/blob/v1.5.1/apps/jupyter/jupyter-web-app/upstream/base/configs/spawner_ui_config.yaml#L84


  - name: istio
    parameters:
      - name: namespace
        value: istio-system
      - name: ingressGateway
        value: istio-ingressgateway

templates:
  files:
    - "*.template"
    - "jupyter-web-app/*.template"
    - "jupyter-web-app/configs/*.template"
    - "notebook-controller/*.template"
