# The kustomize base for the display operator.
#
# This base is for the cluster owner to take. liken does not apply it
# and does not name it. Take it through your own GitOps with patches
# of your own, or read it and write your own manifests.
#
# The base ships two DeviceClasses, display-gpu and display-render,
# because the claim template in operator.yaml names them and the
# operator's own pod cannot start without them: they are wiring, not
# policy. The class workloads claim through is the cluster owner's
# to create, because it is cluster policy, and the install guide at
# https://display.liken.sh/docs/guides/install/ gives the YAML for
# display-output, the one to start with. An owner who renames a
# wiring class patches both the class and the template.
#
# kustomize stamps the namespace below onto the DeviceClasses too,
# because resource.k8s.io/v1 is not in its compiled OpenAPI schema
# and an unknown kind is treated as namespaced. The stamp is
# harmless: the API server ignores a namespace on a cluster-scoped
# object, and kubectl routes the request by the scope it reads from
# discovery, not from the object.
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: liken-system

resources:
  - deviceclasses.yaml
  - rbac.yaml
  - operator.yaml

labels:
  - includeSelectors: false
    pairs:
      app.kubernetes.io/name: display-operator
      app.kubernetes.io/part-of: liken

images:
  - name: ghcr.io/liken-sh/display-operator
    newTag: latest
