Conditions represent the latest available observation of the resource's current state.
conditions[]
object
conditions[].lastTransitionTime
string
Last time the condition transitioned from one status to another.
conditions[].message
string
Human-readable message indicating details about last transition.
conditions[].reason
string
Unique, one-word, CamelCase reason for the condition's last transition.
conditions[].status
string
Status is the status of the condition. Can be True, False, Unknown.
conditions[].type
string
Type is the type of the condition.
observedGeneration
integer
ObservedGeneration is the generation of the resource that was most recently observed by the Config Connector controller. If this is equal to metadata.generation, then that means that the current reported status reflects the most recent desired state of the resource.
Sample YAML(s)
Typical Use Case
# Copyright 2020 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 resource will enable the project this namespace is bound to as a Shared# VPC host. You should only create one of these resources per project. If you# have multiple namespaces mapping to the same project, ensure that only one# ComputeSharedVPCHostProject resource exists across these namespaces.apiVersion:compute.cnrm.cloud.google.com/v1beta1kind:ComputeSharedVPCHostProjectmetadata:annotations:# Replace ${HOST_PROJECT_ID?} with the ID of the project that you want to enable as a Shared VPC host.cnrm.cloud.google.com/project-id:"${HOST_PROJECT_ID?}"name:computesharedvpchostproject-sample
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eComputeSharedVPCHostProject\u003c/code\u003e resource, managed by Config Connector, enables a Google Cloud project as a Shared VPC host.\u003c/p\u003e\n"],["\u003cp\u003eThis resource has an empty Spec, with its configuration primarily managed through annotations, particularly the \u003ccode\u003ecnrm.cloud.google.com/project-id\u003c/code\u003e annotation to specify the host project ID.\u003c/p\u003e\n"],["\u003cp\u003eThe resource's status includes conditions like \u003ccode\u003elastTransitionTime\u003c/code\u003e, \u003ccode\u003emessage\u003c/code\u003e, \u003ccode\u003ereason\u003c/code\u003e, \u003ccode\u003estatus\u003c/code\u003e, and \u003ccode\u003etype\u003c/code\u003e, providing details on the resource's current state and any transitions.\u003c/p\u003e\n"],["\u003cp\u003eOnly one \u003ccode\u003eComputeSharedVPCHostProject\u003c/code\u003e resource should be created per project to avoid conflicts, especially when multiple namespaces map to the same project.\u003c/p\u003e\n"],["\u003cp\u003eThis resource cannot be referenced by IAMPolicy/IAMPolicyMember, and it has an average reconcile interval of 600 seconds.\u003c/p\u003e\n"]]],[],null,["# ComputeSharedVPCHostProject\n===========================\n\n*** ** * ** ***\n\nCustom Resource Definition Properties\n-------------------------------------\n\n### Annotations\n\n### Spec\n\n#### Schema\n\n ComputeSharedVPCHostProject has an empty Spec\n\n### Status\n\n#### Schema\n\n conditions:\n - lastTransitionTime: string\n message: string\n reason: string\n status: string\n type: string\n observedGeneration: integer\n\nSample YAML(s)\n--------------\n\n### Typical Use Case\n\n # Copyright 2020 Google LLC\n #\n # Licensed under the Apache License, Version 2.0 (the \"License\");\n # you may not use this file except in compliance with the License.\n # You may obtain a copy of the License at\n #\n # http://www.apache.org/licenses/LICENSE-2.0\n #\n # Unless required by applicable law or agreed to in writing, software\n # distributed under the License is distributed on an \"AS IS\" BASIS,\n # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n # See the License for the specific language governing permissions and\n # limitations under the License.\n\n # This resource will enable the project this namespace is bound to as a Shared\n # VPC host. You should only create one of these resources per project. If you\n # have multiple namespaces mapping to the same project, ensure that only one\n # ComputeSharedVPCHostProject resource exists across these namespaces.\n apiVersion: compute.cnrm.cloud.google.com/v1beta1\n kind: ComputeSharedVPCHostProject\n metadata:\n annotations:\n # Replace ${HOST_PROJECT_ID?} with the ID of the project that you want to enable as a Shared VPC host.\n cnrm.cloud.google.com/project-id: \"${HOST_PROJECT_ID?}\"\n name: computesharedvpchostproject-sample\n\n| **Note:** If you have any trouble with instantiating the resource, refer to [Troubleshoot Config Connector](/config-connector/docs/troubleshooting)."]]