version: 1
kind: component

requires:
  - kubernetes

parameters:
- name: kserve
  parameters:
  - name: namespace
    value: kserve
    env: NAMESPACE
  - name: version
    value: v0.10.0
  - name: deploymentMode
    env: DEPLOYMENT_MODE
    brief: | 
      Possible values RawDeployment or Serverless
      See more: https://github.com/kserve/kserve#standalone-installation
    value: RawDeployment
- name: knative
  parameters:
  - name: namespace
    value: knative-serving
  - name: networking.gateway.ingress
    brief: | 
      Name of istio gateway for ingress traffic to knative services 
      in the format: <namespace>/<gateway>
  - name: networking.gateway.local
    brief: | 
      Name of istio gateway for local traffic to knative services 
      in the format: <namespace>/<gateway>
- name: ingress
  empty: allow
  parameters:
  - name: hosts
  - name: class
  - name: protocol
    value: http
- name: bucket
  empty: allow
  parameters:
  - name: endpoint
  - name: region
- name: istio
  empty: allow
  parameters:
  - name: namespace
    value: istio-system
  - name: ingressGateway
    value: ingressgateway
  - name: localGateway
    value: knative-local-gateway

- name: kustomize.resources
  env: HUB_KUSTOMIZE_RESOURCES
  value: >-
    https://github.com/kserve/kserve/releases/download/${kserve.version}/kserve.yaml
    https://github.com/kserve/kserve/releases/download/${kserve.version}/kserve-runtimes.yaml

templates:
  files:
  - '*.template'
  - 'rawdeployment/*.template'
  - 'serverless/*.template'
  