Search code examples
google-cloud-platformgoogle-cloud-storagegcp-config-connector

GCP Storage Bucket "state-into-spec". What is that?


Using Google's Config Connector, one of the annotations is "state-into-spec". This has no documentation and I couldn't find anything about it with a search. Can anyone enlighten me on what this means?

https://cloud.google.com/config-connector/docs/reference/resource-docs/storage/storagebucket#annotations


Solution

  • After a deeper search, I did manage to find the relevant documentation. I'll post it here in case others have the same problem:

    The documentation can provide better details than I can, but in short:

    • When your YAML has missing optional fields, they get populated by default values in GCP's API.
    • You might not want that at times.
    • There are examples in the documentation describing the implications and when you might want to change state-into-spec.