# Copyright 2022 Google LLC
#
# 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.

# This kustomization.yaml is not intended to be run by itself,
# since it depends on service name and namespace that are out of this kustomize package.
# It should be run by config/default
resources:
- bases/core.cnrm.cloud.google.com_configconnectors.yaml
- bases/core.cnrm.cloud.google.com_configconnectorcontexts.yaml
- bases/customize.core.cnrm.cloud.google.com_controllerresources.yaml
- bases/customize.core.cnrm.cloud.google.com_namespacedcontrollerresources.yaml
- bases/customize.core.cnrm.cloud.google.com_validatingwebhookconfigurationcustomizations.yaml
- bases/customize.core.cnrm.cloud.google.com_mutatingwebhookconfigurationcustomizations.yaml
- bases/customize.core.cnrm.cloud.google.com_controllerreconcilers.yaml
- bases/customize.core.cnrm.cloud.google.com_namespacedcontrollerreconcilers.yaml

patchesJson6902:
- target:
    group: apiextensions.k8s.io
    version: v1
    kind: CustomResourceDefinition
    name: configconnectors.core.cnrm.cloud.google.com
  path: crd_patch.yaml
- target:
    group: apiextensions.k8s.io
    version: v1
    kind: CustomResourceDefinition
    name: controllerresources.customize.core.cnrm.cloud.google.com
  path: validate_controllerresources_name_patch.yaml
- target:
    group: apiextensions.k8s.io
    version: v1
    kind: CustomResourceDefinition
    name: namespacedcontrollerresources.customize.core.cnrm.cloud.google.com
  path: validate_namespacedcontrollerresources_name_patch.yaml
- target:
    group: apiextensions.k8s.io
    version: v1
    kind: CustomResourceDefinition
    name: controllerresources.customize.core.cnrm.cloud.google.com
  path: controllerresources_required_fields_patch.yaml
- target:
    group: apiextensions.k8s.io
    version: v1
    kind: CustomResourceDefinition
    name: validatingwebhookconfigurationcustomizations.customize.core.cnrm.cloud.google.com
  path: validate_validatingwebhookconfigurationcustomizations_name_patch.yaml
- target:
    group: apiextensions.k8s.io
    version: v1
    kind: CustomResourceDefinition
    name: mutatingwebhookconfigurationcustomizations.customize.core.cnrm.cloud.google.com
  path: validate_mutatingwebhookconfigurationcustomizations_name_patch.yaml