...

Text file src/github.com/GoogleCloudPlatform/k8s-config-connector/scripts/resource-autogen/Makefile

Documentation: github.com/GoogleCloudPlatform/k8s-config-connector/scripts/resource-autogen

     1# Copyright 2022 Google LLC
     2#
     3# Licensed under the Apache License, Version 2.0 (the "License");
     4# you may not use this file except in compliance with the License.
     5# You may obtain a copy of the License at
     6#
     7#      http://www.apache.org/licenses/LICENSE-2.0
     8#
     9# Unless required by applicable law or agreed to in writing, software
    10# distributed under the License is distributed on an "AS IS" BASIS,
    11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12# See the License for the specific language governing permissions and
    13# limitations under the License.
    14
    15# Use autogen patches to add required configuration which can't be generated by
    16# magic-modules due to lack of metadata into the auto-generated service mappings.
    17.PHONY: apply-autogen-patches
    18apply-autogen-patches:
    19	# The patch is used to add resource references for the 'parent' field of
    20	# DataCatalogPolicyTag.
    21	# DataCatalogPolicyTag's parent is DataCatalogTaxonomy, and
    22	# DataCatalogTaxonomy has a server-generated resource ID. To inject the
    23	# resource ID of a DataCatalogTaxonomy into a DataCatalogPolicyTag during
    24	# the integration test (i.e. one-step application), we need to use the
    25	# resource reference feature.
    26	git apply ./hack/servicemappings/datacatalog_policytag_reference_fields.patch
    27	# The patch is used to add resource references for the 'parent' field of
    28	# TagsTagValue.
    29	# TagsTagValue's parent is TagsTagKey, and TagsTagKey has a server-generated
    30	# resource ID. To inject the resource ID of a TagsTagKey into a TagsTagValue
    31	# during the integration test (i.e. one-step application), we need to use
    32	# the resource reference feature.
    33	git apply ./hack/servicemappings/tags_tagvalue_parent.patch
    34	# The patch is used to add resource references for the 'parent' field and
    35	# 'tagValue' field of TagsTagBinding.
    36	# Both fields are required fields that need the server-generated resource
    37	# IDs of resources in the values. To properly inject the server-generated
    38	# resource IDs during the integration test (i.e. one-step application), we
    39	# need to use the resource reference feature.
    40	git apply ./hack/servicemappings/tags_tagbinding_reference_fields.patch
    41	# The patch is used to add resource references for the 'datasetId' field of
    42	# BigQueryRoutine.
    43	git apply ./hack/servicemappings/bigquery_routine_reference_field.patch
    44	# The patch is used to fix the targetField and valueTemplate for
    45	# 'perimeterNameRef' configuration, and to fix the metadataMapping and
    46	# resourceID configuration for AccessContextManagerServicePerimeterResource.
    47	git apply ./hack/servicemappings/accesscontextmanager_serviceperimeterresource.patch

View as plain text