apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: harbor

images:
  - name: core
    newName: ghcr.io/prskr/goharbor/core
    newTag: latest
  - name: harbor-portal
    newName: ghcr.io/prskr/goharbor/harbor-portal
    newTag: dev
  - name: jobservice
    newName: ghcr.io/prskr/goharbor/jobservice
    newTag: latest
  - name: registry-photon
    newName: ghcr.io/prskr/goharbor/registry-photon
    newTag: dev
  - name: registryctl
    newName: ghcr.io/prskr/goharbor/registryctl
    newTag: latest
  - name: trivy-adapter-photon
    newName: ghcr.io/prskr/goharbor/trivy-adapter-photon
    newTag: dev
  - name: nginx-photon
    newName: ghcr.io/prskr/goharbor/nginx-photon
    newTag: dev

resources:
  - resources/ns.yaml
  - config/secret.s3.yaml
  - config/secret.encryption.yaml
  - resources/db/db.yaml
  - resources/db/user.yaml
  - resources/dragonfly/db.yaml
  - resources/http_routes.yaml

labels:
  - includeSelectors: true
    pairs:
      app.kubernetes.io/managed-by: kustomize
      app.kubernetes.io/part-of: harbor

helmCharts:
  - name: harbor
    repo: https://helm.goharbor.io
    releaseName: harbor
    namespace: harbor
    version: "1.16.2"
    valuesFile: config/values.harbor.yaml
    skipTests: true