...

Source file src/github.com/GoogleCloudPlatform/k8s-config-connector/pkg/test/resourcefixture/contexts/kms_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["kmskeyring"] = ResourceContext{
    19  		ResourceKind: "KMSKeyRing",
    20  		SkipUpdate:   true,
    21  	}
    22  	resourceContextMap["kmscryptokey"] = ResourceContext{
    23  		ResourceKind: "KMSCryptoKey",
    24  		// TestCreateNoChangeUpdateDelete/basic-kmscryptokey: dynamic_controller_integration_test.go:149: value
    25  		//   mismatch for label with key 'key-one': got 'value-two', want 'value-one'
    26  		// TestCreateNoChangeUpdateDelete/basic-kmscryptokey: dynamic_controller_integration_test.go:282: reconcile
    27  		//   returned unexpected error: Delete call failed: error deleting resource: googleapi: Error 400: The request
    28  		//   cannot be fulfilled. Resource projects/cnrm-test-tgooo56g38yqbn3k/locations/us-central1/keyRings/kmscryptokey-i94182u4ku0un1f0nsna/cryptoKeys/kmscryptokey-i94182u4ku0un1f0nsna/cryptoKeyVersions/1
    29  		//   has value DESTROY_SCHEDULED in field crypto_key_version.state., failedPrecondition
    30  		SkipDriftDetection: true,
    31  	}
    32  }
    33  

View as plain text