...

Text file src/github.com/GoogleCloudPlatform/k8s-config-connector/pkg/test/resourcefixture/testdata/resourceoverrides/computebackendservice/oauth2clientidcomputebackendservice/dependencies.yaml

Documentation: github.com/GoogleCloudPlatform/k8s-config-connector/pkg/test/resourcefixture/testdata/resourceoverrides/computebackendservice/oauth2clientidcomputebackendservice

     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
    15apiVersion: compute.cnrm.cloud.google.com/v1beta1
    16kind: ComputeNetwork
    17metadata:
    18  name: default
    19  annotations:
    20    cnrm.cloud.google.com/management-conflict-prevention-policy: "none"
    21    cnrm.cloud.google.com/deletion-policy: "abandon"
    22spec:
    23  description: Default network for the project
    24---
    25apiVersion: compute.cnrm.cloud.google.com/v1beta1
    26kind: ComputeInstance
    27metadata:
    28  name: computeinstance-${uniqueId}
    29spec:
    30  zone: us-central1-a
    31  machineType: n1-standard-1
    32  bootDisk:
    33    initializeParams:
    34      sourceImageRef:
    35        external: debian-cloud/debian-11
    36  networkInterface:
    37    - networkRef:
    38        name: default
    39---
    40apiVersion: compute.cnrm.cloud.google.com/v1beta1
    41kind: ComputeInstanceGroup
    42metadata:
    43  name: computeinstancegroup-${uniqueId}
    44spec:
    45  instances:
    46    - name: computeinstance-${uniqueId}
    47  namedPort:
    48    - name: http
    49      port: 8080
    50    - name: https
    51      port: 8443
    52  networkRef:
    53    name: default
    54  zone: us-central1-a
    55---
    56apiVersion: compute.cnrm.cloud.google.com/v1beta1
    57kind: ComputeHTTPHealthCheck
    58metadata:
    59  name: computehttphealthcheck-${uniqueId}
    60---
    61# It is important for this test to run in its own project because IAPBrand is a 'singleton' resource
    62apiVersion: resourcemanager.cnrm.cloud.google.com/v1beta1
    63kind: Project
    64metadata:
    65  name: iapclient-${uniqueId}
    66spec:
    67  name: ComputeProjectMetadata
    68  organizationRef:
    69    external: ${TEST_ORG_ID}
    70  billingAccountRef:
    71    external: ${TEST_BILLING_ACCOUNT_ID}
    72---
    73apiVersion: serviceusage.cnrm.cloud.google.com/v1beta1
    74kind: Service
    75metadata:
    76  annotations:
    77    cnrm.cloud.google.com/project-id: iapclient-${uniqueId}
    78  name: iap.googleapis.com
    79---
    80apiVersion: iap.cnrm.cloud.google.com/v1beta1
    81kind: IAPBrand
    82metadata:
    83  name: iapbrand-${uniqueId}
    84  annotations:
    85    cnrm.cloud.google.com/project-id: iapclient-${uniqueId}
    86spec:
    87  applicationTitle: "test brand"
    88  # This is not a valid support email, but works from testing perspective
    89  supportEmail: "integration-test@${projectId}.iam.gserviceaccount.com"
    90---
    91apiVersion: iap.cnrm.cloud.google.com/v1beta1
    92kind: IAPIdentityAwareProxyClient
    93metadata:
    94  name: iapidentityawareproxyclient-${uniqueId}
    95  annotations:
    96    cnrm.cloud.google.com/project-id: iapclient-${uniqueId}
    97spec:
    98  displayName: "Test Client"
    99  brandRef:
   100    name: iapbrand-${uniqueId}

View as plain text