You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If this issue is time-sensitive, I have submitted a corresponding issue with GCP support.
Bug Description
I found the following when trying to reference a PubSubSchema from a PubSubTopic:
the 'schemaSettings.encoding' attribute is defined as optional, however the resource fails to deploy unless specified (API error)
the 'schemaSettings.encoding' attribute is listed as having a default value of 'ENCODING_UNSPECIFIED', however the resource fails to deploy unless specified (API error)
child attributes of 'schemaSettings' are immutable, but not documented as such.
'schemaSettings' cannot be added after a topic has been deployed
Additional Diagnostic Information
na
Kubernetes Cluster Version
v1.22.10-gke.600
Config Connector Version
1.90.0
Config Connector Mode
namespaced mode (default)
Log Output
schemaSettings.encoding not specified: Update call failed: error applying desired state: summary: Error creating Topic: googleapi: Error 400: Schema settings for the topic projects/project/topics/pubsubtopic-example must include both the name and the encoding.
schemaSettings.encoding set to ENCODING_UNSPECIFIED: Update call failed: error applying desired state: summary: Error creating Topic: googleapi: Error 400: Schema settings for the topic projects/project/topics/pubsubtopic-example must include both the name and the encoding.
updating any values under schemaSettings: Update call failed: error applying desired state: summary: Error updating Topic "projects/project/topics/pubsubtopic-example0": googleapi: Error 400: Invalid update_mask provided in the UpdateTopicRequest: the 'schema_settings' field in the Topic is not mutable.
Steps to reproduce the issue
noted in description
YAML snippets
# encoding attribute not defined
---
apiVersion: pubsub.cnrm.cloud.google.com/v1beta1kind: PubSubTopicmetadata:
name: pubsubtopic-examplespec:
schemaSettings:
schemaRef:
name: pubsubschema-sample# encoding value set to ENCODING_UNSPECIFIED
---
apiVersion: pubsub.cnrm.cloud.google.com/v1beta1kind: PubSubTopicmetadata:
name: pubsubtopic-examplespec:
schemaSettings:
encoding: ENCODING_UNSPECIFIEDschemaRef:
name: pubsubschema-sample
The text was updated successfully, but these errors were encountered:
npitts0811
changed the title
PubSubTopic attributes for PubSubSchema attributes optional on CRD, required by API
PubSubTopic attributes for schemaSettings optional on CRD, required by API
Aug 12, 2022
@npitts0811 Thank you for filing this issue with clear reproduction steps! I tested it out and agree that it is a bug and added it to our queue of bugs to fix. It doesn't look like the PubSubTopic API documentation indicates if that field is required or not, which is not that helpful.
Can you clarify if this bug is a blocker, friction-point, or nice-to-have for you? Because we have a pretty limited capacity, we can't provide an ETA for when this issue will be fixed. Please reach out to us via Cloud Support to prioritize your request if it is a blocker.
@caieo Glad to hear this confirmed and isn't just me :) This is not a blocker for us, I just noticed the behavior and wanted to make sure to get some eyes on it.
Checklist
Bug Description
I found the following when trying to reference a PubSubSchema from a PubSubTopic:
Additional Diagnostic Information
na
Kubernetes Cluster Version
v1.22.10-gke.600
Config Connector Version
1.90.0
Config Connector Mode
namespaced mode (default)
Log Output
schemaSettings.encoding not specified:
Update call failed: error applying desired state: summary: Error creating Topic: googleapi: Error 400: Schema settings for the topic projects/project/topics/pubsubtopic-example must include both the name and the encoding.
schemaSettings.encoding set to ENCODING_UNSPECIFIED:
Update call failed: error applying desired state: summary: Error creating Topic: googleapi: Error 400: Schema settings for the topic projects/project/topics/pubsubtopic-example must include both the name and the encoding.
updating any values under schemaSettings:
Update call failed: error applying desired state: summary: Error updating Topic "projects/project/topics/pubsubtopic-example0": googleapi: Error 400: Invalid update_mask provided in the UpdateTopicRequest: the 'schema_settings' field in the Topic is not mutable.
Steps to reproduce the issue
noted in description
YAML snippets
The text was updated successfully, but these errors were encountered: