...

Source file src/github.com/GoogleCloudPlatform/k8s-config-connector/pkg/test/resourcefixture/contexts/resourcemanager_context.go

Documentation: github.com/GoogleCloudPlatform/k8s-config-connector/pkg/test/resourcefixture/contexts

     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  package contexts
    16  
    17  func init() {
    18  	resourceContextMap["folderinfolder"] = ResourceContext{
    19  		ResourceKind: "Folder",
    20  	}
    21  	resourceContextMap["folderinorg"] = ResourceContext{
    22  		ResourceKind: "Folder",
    23  	}
    24  	resourceContextMap["projectinorg"] = ResourceContext{
    25  		ResourceKind: "Project",
    26  		// TestCreateNoChangeUpdateDelete/basic-projectinorg: dynamic_controller_integration_test.go:239: reconcile returned unexpected error:
    27  		//   Update call failed: error applying desired state: error creating project project-kq4irqvgso8rud79s14j (KCC-2 kq4irqvgso8rud79s14j):
    28  		//   googleapi: Error 409: Requested entity already exists, alreadyExists. If you received a 403 error, make sure you have the
    29  		//   `roles/resourcemanager.projectCreator` permission
    30  		SkipDriftDetection: true,
    31  	}
    32  	resourceContextMap["projectinfolder"] = ResourceContext{
    33  		ResourceKind: "Project",
    34  		// TestCreateNoChangeUpdateDelete/basic-projectinfolder: dynamic_controller_integration_test.go:239: reconcile returned unexpected error:
    35  		//   Update call failed: error applying desired state: error creating project project-9cv84vufffhqgr8hlscf (KCC-2 9cv84vufffhqgr8hlscf):
    36  		//   googleapi: Error 409: Requested entity already exists, alreadyExists. If you received a 403 error, make sure you have the
    37  		//   `roles/resourcemanager.projectCreator` permission
    38  		SkipDriftDetection: true,
    39  	}
    40  	resourceContextMap["resourcemanagerlien"] = ResourceContext{
    41  		ResourceKind: "ResourceManagerLien",
    42  		SkipUpdate:   true,
    43  	}
    44  }
    45  

View as plain text