# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

repositories:
- org: "aws"
  name: "eks-distro"
  extraPlugins: []
  extraExternalPlugins: []
- org: "aws"
  name: "eks-distro-build-tooling"
  extraPlugins: []
  extraExternalPlugins: [] 
- org: "aws"
  name: "eks-distro-prow-jobs"
  extraPlugins: ["config-updater"]
  extraExternalPlugins: 
  - name: eksdistroopstool
    events:
    - issue_comment
    - pull_request
    - issues
    endpoint: http://eksdistroopstool
- org: "aws"
  name: "eks-anywhere"
  extraPlugins: []
  extraExternalPlugins:
  - name: cherrypicker
    events:
    - issue_comment
    - pull_request
    endpoint: http://cherrypicker
prow:
  domain: ''
  presubmitsBucketName: ''
  tideStatusReconcilerBucketName: ''

kubeconfig: ''

dryRun: false

region: 'us-west-2'

ingress:
  create: false
  annotations: {}

crier:
  scrape_metrics: false
  image: public.ecr.aws/eks-distro-build-tooling/prow-crier:v20230324-76cde35b3d
  serviceAccount:
    create: false

deck:
  scrape_metrics: false
  image: public.ecr.aws/eks-distro-build-tooling/prow-deck:v20230324-76cde35b3d
  serviceAccount:
    create: false

ghproxy:
  scrape_metrics: false
  image: public.ecr.aws/eks-distro-build-tooling/prow-ghproxy:v20230324-76cde35b3d
  volumeSize: 100

hook:
  scrape_metrics: false
  image: public.ecr.aws/eks-distro-build-tooling/prow-hook:v20230324-76cde35b3d
  service:
    type: 'LoadBalancer'
  serviceAccount:
    create: false

horologium:
  scrape_metrics: false
  image: public.ecr.aws/eks-distro-build-tooling/prow-horologium:v20230324-76cde35b3d
  serviceAccount:
    create: false

prowControllerManager:
  scrape_metrics: false
  image: public.ecr.aws/eks-distro-build-tooling/prow-controller-manager:v20230324-76cde35b3d
  serviceAccount:
    create: false

sinker:
  scrape_metrics: false
  image: public.ecr.aws/eks-distro-build-tooling/prow-sinker:v20230324-76cde35b3d
  serviceAccount:
    create: false

statusreconciler:
  image: public.ecr.aws/eks-distro-build-tooling/prow-statusreconciler:v20230324-76cde35b3d
  serviceAccount:
    create: false

tide:
  scrape_metrics: false
  image: public.ecr.aws/eks-distro-build-tooling/prow-tide:v20230324-76cde35b3d
  serviceAccount:
    create: false

githubToken:
  Secret:
   create: false
  token: ''

hmacToken:
  Secret:
    create: false
  hmac: ''

s3Credentials:
  Secret:
    create: true

utility_images:
  clonerefs: public.ecr.aws/eks-distro-build-tooling/prow-clonerefs:v20230324-76cde35b3d
  entrypoint: public.ecr.aws/eks-distro-build-tooling/prow-entrypoint:v20230324-76cde35b3d
  initupload: public.ecr.aws/eks-distro-build-tooling/prow-initupload:v20230324-76cde35b3d
  sidecar: public.ecr.aws/eks-distro-build-tooling/prow-sidecar:v20230324-76cde35b3d
awsIamAuthenticator:
  image: public.ecr.aws/eks-distro/kubernetes-sigs/aws-iam-authenticator:v0.5.7-eks-1-21-12

# Namespace on the control plane to look for prow jobs
prowJobNamespace: "default"
# Namespace on the data plane to run pods in
dataplaneNamespace: "default"

plugins:
  configUpdaterMaps:
    config/docker-ecr-config.json:
      name: build-setup
      clusters:
        prow-postsubmits-cluster: # cluster name
        - default # namespace
        prow-presubmits-cluster: # cluster name
        - default # namespace
    scripts/buildkitd-entrypoint.sh:
      name: buildkitd-entrypoint
      clusters:
        prow-postsubmits-cluster: # cluster name
        - default # namespace
        prow-presubmits-cluster: # cluster name
        - default # namespace
    scripts/registry-entrypoint.sh:
      name: registry-entrypoint
      clusters:
        prow-postsubmits-cluster: # cluster name
        - default # namespace
        prow-presubmits-cluster: # cluster name
        - default # namespace
    scripts/disk-usage-entrypoint.sh:
      name: disk-usage-entrypoint
      clusters:
        prow-postsubmits-cluster: # cluster name
        - default # namespace
        prow-presubmits-cluster: # cluster name
        - default # namespace
    jobs/**/*.yaml:
      name: job-config
    BUILDER_BASE_TAG_FILE:
      name: builder-base-tag-file
      clusters:
        prow-postsubmits-cluster: # cluster name
        - default # namespace
        prow-presubmits-cluster: # cluster name
        - default # namespace
  approve:
  - repos:
    - aws/eks-distro
    - aws/eks-distro-build-tooling
    - aws/eks-distro-prow-jobs
    - aws/eks-anywhere
    - aws/eks-anywhere-build-tooling
    - aws/eks-anywhere-prow-jobs
    require_self_approval: true
    ignore_review_state: true
  lgtm:
  - repos:
    - aws/eks-distro
    - aws/eks-distro-build-tooling
    - aws/eks-distro-prow-jobs
    - aws/eks-anywhere
    - aws/eks-anywhere-build-tooling
    - aws/eks-anywhere-prow-jobs
    review_acts_as_lgtm: true

cherrypicker:
  serviceName: cherrypicker
  image: public.ecr.aws/eks-distro-build-tooling/prow-cherrypicker:v20230324-76cde35b3d
eksdistroopstool:
  serviceName: eksdistroopstool
  image:  public.ecr.aws/eks-distro-build-tooling/eks-distro-ops-tool:6
